Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ dist
.tern-port

package-lock.json

.vscode-test/*
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"test.js",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# fastify-snippet

Some [VSCode](https://code.visualstudio.com/) snippet about Fastify
Some [VSCode](https://code.visualstudio.com/) snippets about Fastify

Look at the [`.vscode/fastify-snippet.code-snippets`](./.vscode/fastify-snippet.code-snippets) file and COPY-PASTE it in your project or your global configuration
Install it from your VSCODE plugin page!

For more information, take a look a the [VSCode documentation](https://code.visualstudio.com/docs/editor/userdefinedsnippets)

Expand Down
43 changes: 32 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
{
"name": "fastify-snippet",
"version": "1.0.0",
"description": "Some VSCode snippet about Fastify",
"main": "index.js",
"displayName": "Fastify Snippets",
"description": "Make your Fastify developing even faster",
"publisher": "fastify",
"scripts": {
"build:toc": "node toc"
"build:toc": "node toc",
"test": "tap --no-timeout test/**.test.js"
},
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"language": "javascript",
"path": "./snippets-js.json"
},
{
"language": "typescript",
"path": "./snippets-ts.json"
}
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/Eomm/fastify-snippet.git"
},
"keywords": [],
"keywords": [
"vscode",
"vscode-snippet",
"snippet",
"snippets",
"fastify",
"productivity"
],
"author": "Manuel Spigolon <[email protected]> (https://github.com/Eomm)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Eomm/fastify-snippet/issues"
},
"homepage": "https://github.com/Eomm/fastify-snippet#readme",
"dependencies": {
"fastify": "^3.14.2"
},
"devDependencies": {
"standard": "^16.0.3"
}
"homepage": "https://github.com/Eomm/fastify-snippet#readme"
}
File renamed without changes.
1 change: 1 addition & 0 deletions snippets/snippets-ts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')

const readme = fs.readFileSync('./README.md', 'utf8')

const snippet = JSON.parse(fs.readFileSync('./.vscode/fastify-snippet.code-snippets'))
const snippet = require('./snippets/snippets-js.json')
const content = Object.entries(snippet)

const rows = content.map(([snippet, descriptor]) => {
Expand Down