-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
73 lines (73 loc) · 3.16 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"name": "tree-sitter-sfapex",
"version": "2.4.1",
"description": "A tree-sitter grammer for Salesforce's Apex, SOQL, and SOSL",
"homepage": "https://github.com/aheber/tree-sitter-sfapex",
"bugs": {
"url": "https://github.com/aheber/tree-sitter-sfapex/issues"
},
"license": "MIT",
"author": {
"name": "Anthony Heber"
},
"repository": {
"type": "git",
"url": "https://github.com/aheber/tree-sitter-sfapex.git"
},
"dependencies": {
"node-addon-api": "^7.1.0",
"node-gyp-build": "^4.8.0"
},
"peerDependencies": {
"tree-sitter": "^0.22.4"
},
"peerDependenciesMeta": {
"tree_sitter": {
"optional": true
}
},
"devDependencies": {
"prebuildify": "^6.0.1",
"tree-sitter-cli": "^0.24.0",
"web-tree-sitter": "^0.24.0"
},
"main": "bindings/node",
"scripts": {
"build": "npm run build-generate && npm run build-wasm",
"build-generate": "npm run build-apex && npm run build-soql && npm run build-sosl && npm run build-sflog",
"build-apex": "cd apex && npx tree-sitter generate",
"build-soql": "cd soql && npx tree-sitter generate",
"build-sosl": "cd sosl && npx tree-sitter generate",
"build-sflog": "cd sflog && npx tree-sitter generate",
"build-wasm": "npm run build-apex-wasm && npm run build-soql-wasm && npm run build-sosl-wasm && npm run build-sflog-wasm",
"build-apex-wasm": "cd apex && npx tree-sitter build --wasm && cp tree-sitter-apex.wasm ../docs/playground/js/ && cp tree-sitter-apex.wasm ../bindings/web/",
"build-soql-wasm": "cd soql && npx tree-sitter build --wasm && cp tree-sitter-soql.wasm ../docs/playground/js/ && cp tree-sitter-soql.wasm ../bindings/web/",
"build-sosl-wasm": "cd sosl && npx tree-sitter build --wasm && cp tree-sitter-sosl.wasm ../docs/playground/js/ && cp tree-sitter-sosl.wasm ../bindings/web/",
"build-sflog-wasm": "cd sflog && npx tree-sitter build --wasm && cp tree-sitter-sflog.wasm ../docs/playground/js/ && cp tree-sitter-sflog.wasm ../bindings/web/",
"test-load": "npm run test-load-rust && npm run test-load-node",
"test-load-rust": "cargo test",
"test-load-node": "node -e \"console.log(require('./apex').name), console.log(require('./soql').name), console.log(require('./sosl').name), console.log(require('./sflog').name)\"",
"test": "npm run test-apex && npm run test-soql && npm run test-sosl && npm run test-sflog && npm run test-load",
"test-apex": "cd apex && npx tree-sitter test",
"test-soql": "cd soql && npx tree-sitter test",
"test-sosl": "cd sosl && npx tree-sitter test",
"test-sflog": "cd sflog && npx tree-sitter test",
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi",
"prebuildify-all": "npm run prebuildify-mac && npm run prebuildify-windows",
"prebuildify-mac": "prebuildify --napi --arch x64+arm64 --platform darwin",
"prebuildify-windows": "prebuildify --napi --arch x64+arm64 --platform win32"
},
"files": [
"*/queries/*",
"*/src/grammar.json",
"*/src/node-types.json",
"*/src/parser.c",
"*/src/tree_sitter/parser.h",
"bindings/node/*.js",
"bindings/node/*.ts",
"bindings/node/binding.cc",
"binding.gyp",
"prebuilds/**"
]
}