Skip to content
Permalink
Browse files

Initial commit.

  • Loading branch information...
nickytonline committed Dec 20, 2017
0 parents commit afceffb3cd2c679249ad4b7cd70a58aae3d8bb49
Showing with 141 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +13 −0 .vscode/launch.json
  3. +4 −0 .vscodeignore
  4. +7 −0 CHANGELOG.md
  5. +21 −0 LICENSE
  6. +28 −0 README.md
  7. BIN images/snippet-in-action.gif
  8. +25 −0 package.json
  9. +21 −0 snippets/snippets.json
  10. +20 −0 vsc-extension-quickstart.md
@@ -0,0 +1,2 @@
node_modules
.vsix
@@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}
@@ -0,0 +1,4 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
@@ -0,0 +1,7 @@
# Change Log
All notable changes to the "gatsby-snippets" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]
- Initial release
21 LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Nick Taylor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,28 @@
# vscode-gatsby-snippets README

Creates all the boilerplate for an article/blog post required by GatsbyJS.

![Gatsby JS snippets in action](images/snippet-in-action.gif)

## Release Notes

### 1.0.0

Initial release.

-----------------------------------------------------------------------------------------------------------

## Working with Markdown

**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets

### For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)

**Enjoy!**
Binary file not shown.
@@ -0,0 +1,25 @@
{
"name": "vscode-gatsby-snippets",
"displayName": "vscode-gatsby-snippets",
"description": "Visual Studio Code code snippets for use with the GatsbyJS static site generator for React.",
"version": "1.0.0",
"publisher": "nickytonline",
"repository": {
"type": "git",
"url": "https://github.com/nickytonline/vscode-gatsby-snippets.git"
},
"engines": {
"vscode": "^1.19.0"
},
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"language": "markdown",
"path": "./snippets/snippets.json"
}
]
}
}
@@ -0,0 +1,21 @@
{
"Markdown templates for GatsbyJS": {
"prefix": "ga",
"body": [
"---",
"title: \"${1:Title}\"",
"date: \"20${2:17}-${3:01}-${4:01}T${5:00}:00:00Z\"",
"layout: post",
"draft: ${6|true,false|}",
"path: \"${7:${TM_DIRECTORY/\\/.+\\/(.+)$/$1/}}\"",
"category: \"${8:Category}\"",
"description: \"${9:Description}\"",
"tags:",
" - \"${10:Tag}\"",
"---",
"",
"${11:An article about ${1}}"
],
"description": "Markdown templates for GatsbyJS"
}
}
@@ -0,0 +1,20 @@
# Welcome to your VS Code Extension

## What's in the folder
* This folder contains all of the files necessary for your extension.
* `package.json` - this is the manifest file that defines the location of the snippet file
and specifies the language of the snippets.
* `snippets/snippets.json` - the file containing all snippets.

## Get up and running straight away
* Press `F5` to open a new window with your extension loaded.
* Create a new file with a file name suffix matching your language.
* Verify that your snippets are proposed on intellisense.

## Make changes
* You can relaunch the extension from the debug toolbar after making changes to the files listed above.
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.

## Install your extension
* To start using your extension with Visual Studio Code copy it into the `<user home>/.vscode/extensions` folder and restart Code.
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.

0 comments on commit afceffb

Please sign in to comment.
You can’t perform that action at this time.