ranger-compiler 3.4.0 → 3.5.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 +6 -25
- package/README.md +3 -2
- package/dist/api.d.ts +393 -0
- package/dist/api.js +4140 -413
- package/dist/git-http.mjs +126 -0
- package/dist/lib/zip/Inflate.rgr +675 -0
- package/dist/lib/zip/ZipBuffer.rgr +358 -0
- package/dist/package.json +1 -1
- package/dist/rgrc.js +3540 -56
- package/package.json +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ranger-compiler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Ranger cross-language compiler - compile once, run anywhere",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"office:docs:dev": "npm run office:docs:generate && npm run office:docs:sync-playground && npm run office:docs:sync-chart-api && npm --prefix gallery/office/docs/site run dev",
|
|
63
63
|
"office:docs": "npm run office:docs:generate && npm run office:docs:sync-playground && npm run office:docs:sync-chart-api && npm --prefix gallery/office/docs/site run build",
|
|
64
64
|
"build:dist": "npm run compile && npm run build:dist:copy && npm run build:dist:module",
|
|
65
|
-
"build:dist:copy": "cp ./bin/output.js ./dist/rgrc.js && cp ./bin/Lang.rgr ./dist/Lang.rgr && cp ./bin/stdops.rgr ./dist/stdops.rgr && rm -rf dist/lib && cp -r ./lib ./dist/lib",
|
|
66
|
-
"build:dist:module": "node bin/output.js -nodemodule -es6 -typescript ./compiler/ng_Compiler.rgr -d=./compiler/bin -o=api.ts && tsc --declaration --module commonjs --target es2015 --moduleResolution node --outDir ./dist ./compiler/bin/api.ts",
|
|
65
|
+
"build:dist:copy": "cp ./bin/output.js ./dist/rgrc.js && cp ./bin/Lang.rgr ./dist/Lang.rgr && cp ./bin/stdops.rgr ./dist/stdops.rgr && cp ./bin/git-http.mjs ./dist/git-http.mjs && rm -rf dist/lib && cp -r ./lib ./dist/lib",
|
|
66
|
+
"build:dist:module": "node bin/output.js -nodemodule -es6 -typescript ./compiler/ng_Compiler.rgr -d=./compiler/bin -o=api.ts && tsc --ignoreConfig --declaration --module commonjs --target es2015 --moduleResolution node --ignoreDeprecations 6.0 --outDir ./dist ./compiler/bin/api.ts",
|
|
67
67
|
"prepublishOnly": "npm run build:dist && npm run test:publish",
|
|
68
68
|
"test-any-ts": "node bin/testcomp.js ./features/any/test_any.rgr -es6 -typescript",
|
|
69
69
|
"test-any-csharp": "node bin/testcomp.js ./features/any/test_any.rgr -l=csharp",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"jsengine:test:targets": "npm run test:tsengine",
|
|
135
135
|
"jsengine:octane": "node gallery/game_engine/v2/interp/bench/zoo_octane/run.cjs",
|
|
136
136
|
"jsengine:all": "npm run jsengine:build && npm run jsengine:bench && npm run jsengine:octane && npm run jsengine:conformance",
|
|
137
|
-
"test:publish": "cross-env
|
|
137
|
+
"test:publish": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vitest run --config tests/vitest.publish.config.ts",
|
|
138
138
|
"test:es6": "vitest run --config tests/vitest.config.ts compiler.test.ts",
|
|
139
139
|
"format:native": "python3 scripts/fmt_native.py",
|
|
140
140
|
"format:native:check": "python3 scripts/fmt_native.py --check",
|
|
@@ -682,13 +682,13 @@
|
|
|
682
682
|
"zstd:test": "bash scripts/rgr-suite.sh ./gallery/zstd/tests/ZstdTest.rgr ./gallery/zstd/bin ZstdTest.js",
|
|
683
683
|
"zstd:tool": "bash scripts/rgr-suite.sh ./gallery/zstd/src/zstd_tool.rgr ./gallery/zstd/bin zstd_tool.js",
|
|
684
684
|
"zstd:bench": "node gallery/zstd/bench/compare.mjs",
|
|
685
|
-
"pkg:fixtures": "node
|
|
686
|
-
"pkg:test": "bash scripts/rgr-suite.sh ./
|
|
687
|
-
"pkg:test:go": "RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -l=go ./
|
|
688
|
-
"pkg:test:python": "RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -l=python ./
|
|
685
|
+
"pkg:fixtures": "node pkg/tools/make-fixtures.mjs",
|
|
686
|
+
"pkg:test": "bash scripts/rgr-suite.sh ./pkg/tests/PkgTest.rgr ./pkg/bin PkgTest.js",
|
|
687
|
+
"pkg:test:go": "RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -l=go ./pkg/tests/PkgTest.rgr -d=./tmp/pkg-targets -o=PkgTest.go -nodecli && go run ./tmp/pkg-targets/PkgTest.go",
|
|
688
|
+
"pkg:test:python": "RANGER_LIB=./compiler/Lang.rgr:./lib/stdops.rgr node bin/output.js -l=python ./pkg/tests/PkgTest.rgr -d=./tmp/pkg-targets -o=PkgTest.py -nodecli && python3 ./tmp/pkg-targets/PkgTest.py",
|
|
689
689
|
"pkg:test:targets": "bash scripts/pkg-targets.sh",
|
|
690
|
-
"pkg:tool": "bash scripts/rgr-suite.sh ./
|
|
691
|
-
"pkg:clone": "node
|
|
690
|
+
"pkg:tool": "bash scripts/rgr-suite.sh ./pkg/src/pkg_tool.rgr ./pkg/bin pkg_tool.js",
|
|
691
|
+
"pkg:clone": "node pkg/tools/clone.mjs",
|
|
692
692
|
"figma:test": "bash scripts/rgr-suite.sh ./gallery/figma/tests/FigTest.rgr ./gallery/figma/bin FigTest.js",
|
|
693
693
|
"figma:cli": "bash scripts/rgr-suite.sh ./gallery/figma/src/fig_cli.rgr ./gallery/figma/bin fig_cli.js",
|
|
694
694
|
"figma:inspect": "npm run figma:cli && node gallery/figma/bin/fig_cli.js sample",
|