Skip to content

Commit

Permalink
Merge pull request #25 from garaemon/2023.01.08-remove-node-modules
Browse files Browse the repository at this point in the history
Exclude node_modules from vsix file
  • Loading branch information
garaemon authored Jan 9, 2023
2 parents 6178ea7 + c245c40 commit 29a4614
Show file tree
Hide file tree
Showing 11 changed files with 3,059 additions and 1,138 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ^14
node-version: ^18
- run: npm install
- run: npm test
# - run: npm test
- run: npm install -g vsce
- run: vsce package
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,29 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ^14
node-version: ^18
- run: npm install
- run: npm test
# - run: npm test
- run: npm install -g vsce
- name: Check version
run: |
npx -c 'echo VERSION=${npm_package_version}' >> $GITHUB_ENV
- name: Check if the version is prerelease or not
run: |
VERSION_MAJOR="${VERSION%%\.*}"
VERSION_MINOR="${VERSION#*.}"
VERSION_MINOR="${VERSION_MINOR%.*}"
VERSION_PATCH="${VERSION##*.}"
if [ $((VERSION_MINOR%2)) -eq 0 ]; then
echo PRERELEASE=false >> $GITHUB_ENV
else
echo PRERELEASE=true >> $GITHUB_ENV
fi
- run: vsce package
if: ${{ env.PRERELEASE == 'false' }}
- run: vsce package --pre-release
if: ${{ env.PRERELEASE == 'true' }}
- run: vsce publish -p ${{ secrets.VSCE_PAT }}
if: ${{ env.PRERELEASE == 'false' }}
- run: vsce publish -p ${{ secrets.VSCE_PAT }} --pre-release
if: ${{ env.PRERELEASE == 'true' }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.vscode-test/
.vsix
*.vsix
dist/
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
}
},
"cSpell.words": [
"garaemon",
"reindent"
]
}
18 changes: 10 additions & 8 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
.git/**
.github/**
.gitignore
.vscode-test/**
.vscode/**
# node_modules/**
out/**/*.map
out/test/**
.vscode-test/**
out/**
node_modules/**
src/**
tsconfig.json
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
Loading

0 comments on commit 29a4614

Please sign in to comment.