Skip to content

Commit eaaef06

Browse files
committed
Initial commit
0 parents  commit eaaef06

File tree

20 files changed

+4189
-0
lines changed

20 files changed

+4189
-0
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 9
22+
23+
- name: Set node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: lts/*
27+
cache: pnpm
28+
29+
- name: Install
30+
run: pnpm install
31+
32+
- name: Lint
33+
run: pnpm lint
34+
35+
typecheck:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v4
42+
43+
- name: Set node
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: lts/*
47+
cache: pnpm
48+
49+
- name: Install
50+
run: pnpm install
51+
52+
- name: Typecheck
53+
run: pnpm typecheck

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.cache
2+
.DS_Store
3+
.idea
4+
*.log
5+
*.tgz
6+
*.vsix
7+
coverage
8+
dist
9+
lib-cov
10+
logs
11+
node_modules
12+
temp
13+
src/generated

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-workspace-root-check=true
2+
node-linker=hoisted

.vscode/tasks.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "dev",
9+
"isBackground": true,
10+
"presentation": {
11+
"reveal": "never"
12+
},
13+
"problemMatcher": [
14+
{
15+
"base": "$ts-webpack-watch",
16+
"background": {
17+
"activeOnStart": true,
18+
"beginsPattern": "Build start",
19+
"endsPattern": "Build success"
20+
}
21+
}
22+
],
23+
"group": "build"
24+
}
25+
]
26+
}

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Anthony Fu <https://github.com/antfu>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SnipNest VSCode Extension
2+
3+
A VSCode extension to easily discover and paste code snippets from [SnipNest](https://snipnest.dev/). Simply search for a snippet and paste it into your editor.
4+
5+
[![License](https://badgen.net/github/license/itsbrunodev/snipnest?color=green&label=License)](LICENSE)
6+
[![Stars](https://badgen.net/github/stars/itsbrunodev/snipnest?color=orange&label=Stars)](https://github.com/itsbrunodev/snipnest/stargazers)
7+
[![Issues](https://badgen.net/github/open-issues/itsbrunodev/snipnest?label=Open+Issues)](https://github.com/itsbrunodev/snipnest/issues)
8+
9+
## License
10+
11+
SnipNest's VSCode extension is under the [MIT license](./LICENSE).

biome.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"files": {
4+
"ignore": ["node_modules", "dist", "build", "public", ".next"]
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"formatWithErrors": false,
9+
"attributePosition": "multiline",
10+
"indentStyle": "space",
11+
"indentWidth": 2,
12+
"lineWidth": 80,
13+
"lineEnding": "lf"
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"trailingCommas": "es5"
18+
}
19+
},
20+
"organizeImports": {
21+
"enabled": false
22+
},
23+
"linter": {
24+
"rules": {
25+
"correctness": {
26+
"noUnusedImports": "error"
27+
},
28+
"complexity": {
29+
"noBannedTypes": "off"
30+
},
31+
"style": {
32+
"noNonNullAssertion": "off"
33+
},
34+
"suspicious": {
35+
"noEmptyInterface": "off"
36+
}
37+
}
38+
}
39+
}

package.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"publisher": "itsbrunodev",
3+
"name": "snipnest",
4+
"displayName": "SnipNest",
5+
"version": "1.0.0-rc.1",
6+
"private": true,
7+
"packageManager": "pnpm@9.15.3",
8+
"description": "",
9+
"author": "itsbrunodev <contact@itsbruno.dev>",
10+
"license": "MIT",
11+
"funding": "https://ko-fi.com/brunodev",
12+
"homepage": "https://github.com/itsbrunodev/snipnest-vscode#readme",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/itsbrunodev/snipnest-vscode"
16+
},
17+
"bugs": {
18+
"url": "https://github.com/itsbrunodev/snipnest-vscode/issues"
19+
},
20+
"sponsor": {
21+
"url": "https://ko-fi.com/brunodev"
22+
},
23+
"categories": ["Other"],
24+
"main": "./dist/index.js",
25+
"icon": "res/icon.png",
26+
"files": ["LICENSE.md", "dist/*", "res/*"],
27+
"engines": {
28+
"vscode": "^1.92.0"
29+
},
30+
"activationEvents": ["onStartupFinished"],
31+
"contributes": {
32+
"commands": [
33+
{
34+
"command": "snipnest.browse",
35+
"title": "Browse Collection",
36+
"category": "SnipNest"
37+
},
38+
{
39+
"command": "snipnest.search",
40+
"title": "Search for Snippets",
41+
"category": "SnipNest"
42+
}
43+
],
44+
"configuration": {
45+
"type": "object",
46+
"title": "SnipNest",
47+
"properties": {}
48+
}
49+
},
50+
"scripts": {
51+
"build": "tsup src/index.ts --external vscode",
52+
"dev": "pnpm build --watch",
53+
"prepare": "pnpm run update",
54+
"update": "vscode-ext-gen --output src/generated/meta.ts",
55+
"lint": "biome check .",
56+
"vscode:prepublish": "pnpm build",
57+
"publish": "vsce publish --no-dependencies",
58+
"pack": "vsce package --no-dependencies",
59+
"test": "vitest",
60+
"typecheck": "tsc --noEmit"
61+
},
62+
"devDependencies": {
63+
"@types/node": "^22.10.5",
64+
"@types/vscode": "^1.96.0",
65+
"@vscode/vsce": "^3.2.1",
66+
"esno": "^4.8.0",
67+
"pnpm": "^9.15.3",
68+
"reactive-vscode": "^0.2.9",
69+
"tsup": "^8.3.5",
70+
"typescript": "^5.7.3",
71+
"vite": "^6.0.7",
72+
"vitest": "^2.1.8",
73+
"vscode-ext-gen": "^0.5.5"
74+
}
75+
}

0 commit comments

Comments
 (0)