@herb-tools/node 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/bin/vendor.cjs +103 -0
- package/dist/herb-node.esm.js +1 -1
- package/extension/extension_helpers.cpp +2 -3
- package/extension/herb.cpp +9 -0
- package/extension/libherb/analyze.c +138 -43
- package/extension/libherb/analyze.h +39 -0
- package/extension/libherb/analyze_helpers.c +44 -1
- package/extension/libherb/analyze_helpers.h +49 -0
- package/extension/libherb/analyzed_ruby.c +10 -1
- package/extension/libherb/analyzed_ruby.h +36 -0
- package/extension/libherb/array.h +33 -0
- package/extension/libherb/ast_node.h +35 -0
- package/extension/libherb/ast_nodes.c +103 -1
- package/extension/libherb/ast_nodes.h +335 -0
- package/extension/libherb/ast_pretty_print.c +60 -0
- package/extension/libherb/ast_pretty_print.h +17 -0
- package/extension/libherb/buffer.c +60 -27
- package/extension/libherb/buffer.h +39 -0
- package/extension/libherb/errors.h +125 -0
- package/extension/libherb/extract.c +57 -20
- package/extension/libherb/extract.h +20 -0
- package/extension/libherb/herb.h +32 -0
- package/extension/libherb/html_util.h +13 -0
- package/extension/libherb/include/analyze.h +3 -0
- package/extension/libherb/include/analyze_helpers.h +6 -0
- package/extension/libherb/include/analyzed_ruby.h +3 -0
- package/extension/libherb/include/ast_nodes.h +32 -0
- package/extension/libherb/include/buffer.h +5 -2
- package/extension/libherb/include/lexer_peek_helpers.h +2 -2
- package/extension/libherb/include/macros.h +2 -2
- package/extension/libherb/include/version.h +1 -1
- package/extension/libherb/io.h +9 -0
- package/extension/libherb/json.h +28 -0
- package/extension/libherb/lexer.c +1 -1
- package/extension/libherb/lexer.h +13 -0
- package/extension/libherb/lexer_peek_helpers.h +23 -0
- package/extension/libherb/lexer_struct.h +32 -0
- package/extension/libherb/location.h +25 -0
- package/extension/libherb/macros.h +10 -0
- package/extension/libherb/memory.h +12 -0
- package/extension/libherb/parser.c +17 -7
- package/extension/libherb/parser.h +22 -0
- package/extension/libherb/parser_helpers.h +33 -0
- package/extension/libherb/position.h +22 -0
- package/extension/libherb/pretty_print.h +53 -0
- package/extension/libherb/prism_helpers.h +18 -0
- package/extension/libherb/range.h +23 -0
- package/extension/libherb/ruby_parser.h +6 -0
- package/extension/libherb/token.c +1 -1
- package/extension/libherb/token.h +25 -0
- package/extension/libherb/token_matchers.h +21 -0
- package/extension/libherb/token_struct.h +51 -0
- package/extension/libherb/util.c +3 -1
- package/extension/libherb/util.h +25 -0
- package/extension/libherb/version.h +6 -0
- package/extension/libherb/visitor.c +36 -0
- package/extension/libherb/visitor.h +11 -0
- package/extension/nodes.cpp +117 -0
- package/extension/nodes.h +3 -0
- package/package.json +12 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herb-tools/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://herb-tools.dev",
|
|
@@ -24,16 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"install": "yarn vendor
|
|
27
|
+
"install": "yarn vendor && node-pre-gyp install --fallback-to-build",
|
|
28
28
|
"dev": "rollup -c -w",
|
|
29
|
-
"build": "yarn rebuild",
|
|
29
|
+
"build": "yarn templates && yarn vendor && yarn rebuild",
|
|
30
30
|
"build:javascript": "rollup -c",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
31
|
+
"templates": "rake templates",
|
|
32
|
+
"revendor": "yarn clean && yarn templates && yarn vendor",
|
|
33
|
+
"vendor": "node ./bin/vendor.cjs",
|
|
34
|
+
"rebuild": "node-pre-gyp rebuild && yarn build:javascript",
|
|
34
35
|
"configure": "node-pre-gyp configure",
|
|
35
36
|
"package": "node-pre-gyp package",
|
|
36
|
-
"clean": "node-pre-gyp clean && rimraf dist/ && rimraf extension/libherb/ && rimraf
|
|
37
|
+
"clean": "node-pre-gyp clean && rimraf dist/ && rimraf build/ && rimraf extension/libherb/ && rimraf extension/prism/",
|
|
37
38
|
"test": "vitest run",
|
|
38
39
|
"test:watch": "vitest --watch",
|
|
39
40
|
"prepublishOnly": "yarn clean && yarn build && yarn test"
|
|
@@ -46,25 +47,16 @@
|
|
|
46
47
|
"host": "https://github.com/marcoroth/herb/releases/download/"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@herb-tools/core": "0.
|
|
50
|
-
"@mapbox/node-pre-gyp": "^2.0.0"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
54
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
55
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
50
|
+
"@herb-tools/core": "0.3.0",
|
|
51
|
+
"@mapbox/node-pre-gyp": "^2.0.0",
|
|
56
52
|
"node-addon-api": "^5.1.0",
|
|
57
|
-
"node-pre-gyp-github": "^2.0.0"
|
|
58
|
-
"rimraf": "^6.0.1",
|
|
59
|
-
"rollup": "^4.35.0",
|
|
60
|
-
"tslib": "^2.8.1",
|
|
61
|
-
"typescript": "^5.8.2",
|
|
62
|
-
"vitest": "^3.0.0"
|
|
53
|
+
"node-pre-gyp-github": "^2.0.0"
|
|
63
54
|
},
|
|
64
55
|
"files": [
|
|
65
56
|
"package.json",
|
|
66
57
|
"README.md",
|
|
67
58
|
"binding.gyp",
|
|
59
|
+
"bin/vendor.cjs",
|
|
68
60
|
"dist/",
|
|
69
61
|
"src/",
|
|
70
62
|
"extension/**/*.c",
|