Skip to content

Commit

Permalink
Add pre-package check. Add proper build script. Updated .vscodeignore…
Browse files Browse the repository at this point in the history
…. Updated README.
  • Loading branch information
PanAeon committed May 2, 2019
1 parent f3aca62 commit c9a4a36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions syntax/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.gitignore
tests/**
src/**
node_modules
.gitkeep
2 changes: 0 additions & 2 deletions syntax/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ To generate the ouput file either use build command or run:

```bash
npm install
npm build
npx ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json
```

The output file is validated against the json schema before being written.
Expand Down
6 changes: 0 additions & 6 deletions syntax/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@
"ts-node": "^8.0.2",
"tsc": "^1.20150623.0",
"typescript": "^3.3.3"
},
"scripts": {
"vscode:prepublish": "test -f ./syntaxes/Scala.tmLanguage.json",
"prepare": "npx ts-node src/typescript/GenerateTmLanguageFile.ts > ./syntaxes/Scala.tmLanguage.json"
}
}

0 comments on commit c9a4a36

Please sign in to comment.