Skip to content

Commit

Permalink
Add package scrips to package.json
Browse files Browse the repository at this point in the history
So the developer can package vscode-cmake-tools easily.
  • Loading branch information
lygstate committed Apr 11, 2021
1 parent 0c51cfd commit eed0a88
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:

- name: Build the VSIX
run: |
npm install
npm install -g vsce
vsce package --yarn -o cmake-tools.vsix
yarn install
yarn run package
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2.1.4
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"onCommand:cmake.outline.buildAll",
"workspaceContains:**/CMakeLists.txt",
"workspaceContains:.vscode/cmake-kits.json"
],
],
"main": "./dist/main",
"contributes": {
"commands": [
Expand Down Expand Up @@ -1742,6 +1742,7 @@
"translations-export": "gulp translations-export",
"translations-generate": "gulp translations-generate",
"translations-import": "gulp translations-import",
"package": "vsce package --yarn -o cmake-tools.vsix",
"pretest": "tsc -p test.tsconfig.json",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "node ./node_modules/tslint/bin/tslint -p . --fix",
Expand Down Expand Up @@ -1783,7 +1784,8 @@
"tslint": "^5.20.1",
"typedoc": "^0.20.25",
"typescript": "^4.1.5",
"vscode": "^1.1.36",
"vsce": "^1.87.1",
"vscode": "^1.1.37",
"vscode-nls-dev": "^3.3.2",
"webpack": "^5.22.0",
"webpack-cli": "^4.5.0"
Expand Down
Loading

0 comments on commit eed0a88

Please sign in to comment.