@swagger-api/apidom-parser-adapter-json

v0.87.0
Parser adapter for parsing JSON documents into base namespace.

lint

eslint ./

perf

cross-env NODE_ENV=test BABEL_ENV=cjs node ./test/perf/index.cjs

test

cross-env NODE_ENV=test BABEL_ENV=cjs mocha

build

npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser

clean

rimraf ./es ./cjs ./dist ./types

prepack

copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .

build:es

npm run build:wasm && npm run build:wasm:copy && cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'

lint:fix

eslint ./ --fix

postpack

rimraf NOTICE LICENSES

build:cjs

npm run build:wasm && npm run build:wasm:copy && BABEL_ENV=cjs babel src --out-dir cjs --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'

build:wasm

node ../../scripts/file-exists.js ../../node_modules/tree-sitter-json/tree-sitter-json.wasm && exit 0 || cd ../../node_modules/tree-sitter-json && tree-sitter generate --abi=13 ./grammar.js && tree-sitter build-wasm && node-gyp rebuild

build:wasm:copy

copyfiles -u 4 ../../node_modules/tree-sitter-json/tree-sitter-json.wasm wasm

build:umd:browser

npm run build:wasm && npm run build:wasm:copy && cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress

perf:lexical-analysis

cross-env NODE_ENV=test BABEL_ENV=cjs node ./test/perf/lexical-analysis.cjs

typescript:check-types

tsc --noEmit

typescript:declaration

tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js

perf:parse-syntactic-analysis-direct

cross-env NODE_ENV=test BABEL_ENV=cjs node ./test/perf/parse-syntactic-analysis-direct.cjs

perf:parse-syntactic-analysis-indirect

cross-env NODE_ENV=test BABEL_ENV=cjs node ./test/perf/parse-syntactic-analysis-indirect.cjs
npm i @swagger-api/[email protected]

Metadata

Downloads

Maintainers