Skip to content

Commit 8ad52d0

Browse files
committed
Add extension build script
1 parent ba8ce0c commit 8ad52d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ for Visual Studio Code.
99
Make sure you have the following binaries installed:
1010

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

@@ -50,7 +48,7 @@ changes.
5048
```bash
5149
yarn install
5250
yarn build
53-
vsce package
51+
5452
# replace `*` below with the version of the generated vsix file
5553
code --install-extension scala-*.vsix
5654
```

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
"scripts": {
5555
"vscode:prepublish": "test -f ./syntaxes/Scala.tmLanguage.json",
5656
"vscode:publish": "vsce publish --yarn",
57-
"build": "ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json",
57+
"build": "npm-run-all build:syntax build:extension",
58+
"build:syntax": "ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json",
59+
"build:extension": "vsce package",
5860
"test": "npm-run-all test:*",
5961
"test:unit": "vscode-tmgrammar-test -s source.scala -g syntaxes/Scala.tmLanguage.json -t 'tests/unit/**/*.test.scala'",
6062
"test:snap": "vscode-tmgrammar-snap -s source.scala -g syntaxes/Scala.tmLanguage.json -t 'tests/snap/**/*.test.scala'"

0 commit comments

Comments
 (0)