Skip to content

Commit 29a4614

Browse files
authored
Merge pull request #25 from garaemon/2023.01.08-remove-node-modules
Exclude node_modules from vsix file
2 parents 6178ea7 + c245c40 commit 29a4614

File tree

11 files changed

+3059
-1138
lines changed

11 files changed

+3059
-1138
lines changed

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/naming-convention": "warn",
13+
"@typescript-eslint/semi": "warn",
14+
"curly": "warn",
15+
"eqeqeq": "warn",
16+
"no-throw-literal": "warn",
17+
"semi": "off"
18+
},
19+
"ignorePatterns": [
20+
"out",
21+
"dist",
22+
"**/*.d.ts"
23+
]
24+
}

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: ^14
14+
node-version: ^18
1515
- run: npm install
16-
- run: npm test
16+
# - run: npm test
1717
- run: npm install -g vsce
1818
- run: vsce package

.github/workflows/release.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,29 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: ^14
15+
node-version: ^18
1616
- run: npm install
17-
- run: npm test
17+
# - run: npm test
1818
- run: npm install -g vsce
19+
- name: Check version
20+
run: |
21+
npx -c 'echo VERSION=${npm_package_version}' >> $GITHUB_ENV
22+
- name: Check if the version is prerelease or not
23+
run: |
24+
VERSION_MAJOR="${VERSION%%\.*}"
25+
VERSION_MINOR="${VERSION#*.}"
26+
VERSION_MINOR="${VERSION_MINOR%.*}"
27+
VERSION_PATCH="${VERSION##*.}"
28+
if [ $((VERSION_MINOR%2)) -eq 0 ]; then
29+
echo PRERELEASE=false >> $GITHUB_ENV
30+
else
31+
echo PRERELEASE=true >> $GITHUB_ENV
32+
fi
1933
- run: vsce package
34+
if: ${{ env.PRERELEASE == 'false' }}
35+
- run: vsce package --pre-release
36+
if: ${{ env.PRERELEASE == 'true' }}
2037
- run: vsce publish -p ${{ secrets.VSCE_PAT }}
38+
if: ${{ env.PRERELEASE == 'false' }}
39+
- run: vsce publish -p ${{ secrets.VSCE_PAT }} --pre-release
40+
if: ${{ env.PRERELEASE == 'true' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
.vscode-test/
44
.vsix
55
*.vsix
6+
dist/

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
},
66
"search.exclude": {
77
"out": true // set this to false to include "out" folder in search results
8-
}
8+
},
9+
"cSpell.words": [
10+
"garaemon",
11+
"reindent"
12+
]
913
}

.vscodeignore

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
.git/**
2-
.github/**
3-
.gitignore
4-
.vscode-test/**
51
.vscode/**
6-
# node_modules/**
7-
out/**/*.map
8-
out/test/**
2+
.vscode-test/**
3+
out/**
4+
node_modules/**
95
src/**
10-
tsconfig.json
6+
.gitignore
7+
.yarnrc
8+
webpack.config.js
119
vsc-extension-quickstart.md
10+
**/tsconfig.json
11+
**/.eslintrc.json
12+
**/*.map
13+
**/*.ts

0 commit comments

Comments
 (0)