Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package.json for mozjs grammar #539

Merged
merged 2 commits into from Mar 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions generate-grammars/generate-mozcpp.sh
Expand Up @@ -46,9 +46,6 @@ npm install --save-dev tree-sitter-cli
# Delete node_modules
rm -rf node_modules

# Delete package files
rm -rf package-lock.json package.json

# Delete tree-sitter-cpp directory
rm -rf tree-sitter-cpp

Expand Down
3 changes: 0 additions & 3 deletions generate-grammars/generate-mozjs.sh
Expand Up @@ -50,9 +50,6 @@ npm install --save-dev tree-sitter-cli
# Delete node_modules
rm -rf node_modules

# Delete package files
rm -rf package-lock.json package.json

# Delete tree-sitter-javascript directory
rm -rf tree-sitter-javascript

Expand Down
38 changes: 38 additions & 0 deletions tree-sitter-mozjs/package.json
@@ -0,0 +1,38 @@
{
"name": "tree-sitter-mozjs",
"version": "0.17.0",
"description": "Mozjs grammar for node-tree-sitter",
"main": "index.js",
"keywords": [
"parser",
"lexer"
],
"author": "Calixte Denizet",
"license": "MIT",
"dependencies": {
"nan": "^2.14.2"
},
"devDependencies": {
"tree-sitter-cli": "^0.17.3"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
"test": "tree-sitter test && tree-sitter parse examples/* --quiet --time",
"test-windows": "tree-sitter test",
"install": "node-gyp rebuild"
},
"tree-sitter": [
{
"scope": "source.js",
"file-types": [
"js",
"js2",
"jsm"
]
}
],
"gypfile": true,
"directories": {
"example": "examples"
}
}