Skip to content

Commit 18fe44d

Browse files
authored
feat: vscode plugin format (#2)
* feat: vscode plugin format * fix format * add logo
1 parent a6b0bd5 commit 18fe44d

File tree

8 files changed

+57
-15
lines changed

8 files changed

+57
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,5 @@ dist
104104
.tern-port
105105

106106
package-lock.json
107+
108+
.vscode-test/*

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": [
9+
"test.js",
10+
"--disable-extensions",
11+
"--extensionDevelopmentPath=${workspaceFolder}"
12+
]
13+
}
14+
]
15+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# fastify-snippet
22

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

5-
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
5+
Install it from your VSCODE plugin page!
66

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

images/logo-256.png

8.51 KB
Loading

package.json

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,50 @@
11
{
2-
"name": "fastify-snippet",
2+
"name": "fastify-snippets",
33
"version": "1.0.0",
4-
"description": "Some VSCode snippet about Fastify",
5-
"main": "index.js",
4+
"icon": "images/logo-256.png",
5+
"displayName": "Fastify Snippets",
6+
"description": "Make your Fastify developing even faster",
7+
"publisher": "fastify",
68
"scripts": {
7-
"build:toc": "node toc"
9+
"build:toc": "node toc",
10+
"vscode:login": "vsce login fastify",
11+
"vscode:publish": "vsce publish",
12+
"test": "tap --no-timeout test/**.test.js"
13+
},
14+
"engines": {
15+
"vscode": "^1.40.0"
16+
},
17+
"categories": [
18+
"Snippets"
19+
],
20+
"contributes": {
21+
"snippets": [
22+
{
23+
"language": "javascript",
24+
"path": "./snippets-js.json"
25+
},
26+
{
27+
"language": "typescript",
28+
"path": "./snippets-ts.json"
29+
}
30+
]
831
},
932
"repository": {
1033
"type": "git",
1134
"url": "git+https://github.com/Eomm/fastify-snippet.git"
1235
},
13-
"keywords": [],
36+
"keywords": [
37+
"vscode",
38+
"vscode-snippet",
39+
"snippet",
40+
"snippets",
41+
"fastify",
42+
"productivity"
43+
],
1444
"author": "Manuel Spigolon <[email protected]> (https://github.com/Eomm)",
1545
"license": "MIT",
1646
"bugs": {
1747
"url": "https://github.com/Eomm/fastify-snippet/issues"
1848
},
19-
"homepage": "https://github.com/Eomm/fastify-snippet#readme",
20-
"dependencies": {
21-
"fastify": "^3.14.2"
22-
},
23-
"devDependencies": {
24-
"standard": "^16.0.3"
25-
}
49+
"homepage": "https://github.com/Eomm/fastify-snippet#readme"
2650
}
File renamed without changes.

snippets/snippets-ts.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs')
44

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

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

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

0 commit comments

Comments
 (0)