Skip to content

Commit

Permalink
Add package scripts to package.json (#1752)
Browse files Browse the repository at this point in the history
* Add vsce to develop dependencies

* Add package scrips to package.json
So the developer can package vscode-cmake-tools easily.

Co-authored-by: Bob Brown <bobbrow@users.noreply.github.com>
Co-authored-by: Andreea Isac <48239328+andreeis@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 1, 2021
1 parent 390e7bf commit 975e860
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 11 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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,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",
"lint": "gulp lint",
"smokeTests": "yarn run pretest && node ./out/test/smoke/runTest.js",
Expand Down Expand Up @@ -1989,6 +1990,7 @@
"tslint": "^5.20.1",
"typedoc": "^0.20.36",
"typescript": "^4.1.5",
"vsce": "^1.95.0",
"vscode-nls-dev": "^3.3.2",
"vscode-test": "^1.5.2",
"webpack": "^5.38.1",
Expand Down
Loading

0 comments on commit 975e860

Please sign in to comment.