Skip to content

Commit

Permalink
Add extension build script
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeKjaer committed Jul 2, 2020
1 parent ba8ce0c commit 8ad52d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ for Visual Studio Code.
Make sure you have the following binaries installed:

- [`yarn`](https://yarnpkg.com/en/): to build the project
- [`vsce`](https://code.visualstudio.com/api/working-with-extensions/publishing-extension):
to package the extension for VS Code.
- [`code`](https://code.visualstudio.com/docs/setup/mac): to launch VS Code from
the terminal.

Expand Down Expand Up @@ -50,7 +48,7 @@ changes.
```bash
yarn install
yarn build
vsce package

# replace `*` below with the version of the generated vsix file
code --install-extension scala-*.vsix
```
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
"scripts": {
"vscode:prepublish": "test -f ./syntaxes/Scala.tmLanguage.json",
"vscode:publish": "vsce publish --yarn",
"build": "ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json",
"build": "npm-run-all build:syntax build:extension",
"build:syntax": "ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json",
"build:extension": "vsce package",
"test": "npm-run-all test:*",
"test:unit": "vscode-tmgrammar-test -s source.scala -g syntaxes/Scala.tmLanguage.json -t 'tests/unit/**/*.test.scala'",
"test:snap": "vscode-tmgrammar-snap -s source.scala -g syntaxes/Scala.tmLanguage.json -t 'tests/snap/**/*.test.scala'"
Expand Down

0 comments on commit 8ad52d0

Please sign in to comment.