UNPKG

@wikipathways/cxml

Version:

Advanced schema-aware streaming XML parser

116 lines (115 loc) 4.82 kB
{ "name": "@wikipathways/cxml", "version": "0.2.14", "description": "Advanced schema-aware streaming XML parser", "main": "lib/cxml.js", "typings": "lib/cxml.d.ts", "files": [ "lib" ], "scripts": { "build": "npm-run-all build:*", "build:clean": "mkdir -p lib && rm -rf lib/", "build:pegjs": "mkdir -p lib/spinoffs && pegjs -o lib/spinoffs/XPathParser.js src/spinoffs/XPathParser.pegjs", "build:typescript": "cp src/spinoffs/XPathParser.d.ts lib/spinoffs/XPathParser.d.ts; tsc -p tsconfig.json", "prepare": "ALLE_DIR='../../../../'; if [ ! -d ./node_modules ] && [ -d \"$ALLE_DIR\"/node_modules ]; then echo 'Alle configuration detected. Testing from the top-level alle directory...' && (cd \"$ALLE_DIR\" && npm run '@wikipathways/cxml:build'); else npm run build; fi", "prepublishOnly": "npm i --package-lock-only && ALLE_DIR='../../../../'; if [ ! -d ./node_modules ] && [ -d \"$ALLE_DIR\"/node_modules ]; then echo 'Alle configuration detected. Testing from the top-level alle directory...' && (cd \"$ALLE_DIR\" && npm run '@wikipathways/cxml:test'); else npm run test; fi", "postpublish": "TAG=\"v$(jq -r .version package.json)\" && git commit -am \"Bumped to version $TAG\" && git tag -a $TAG -m \"Published version $TAG\" && git push origin $TAG", "test": "npm-run-all --silent test:* && rm ./test/**/*.js # In case of error, remove --silent to debug.", "test:build": "npm-run-all test:build:*", "test:build:clean": "cd test && mkdir -p cache && rm -rf cache && mkdir -p xmlns && rm -rf xmlns && cd ..", "test:build:compile": "npm-run-all test:build:compile:*", "test:build:compile:dir-example": "cd test && cxsd \"file://$PWD/input/dir-example.xsd\" >/dev/null && cd ..", "test:build:compile:GPML2013a": "cd test && cxsd \"file://$PWD\"'/input/GPML2013a.xsd' >/dev/null && cd ..", "test:build:compile:GPML2013a-remote": "cd test && cxsd https://raw.githubusercontent.com/ariutta/GPML/master/GPML2013a.xsd >/dev/null && cd ..", "test:build:ts": "tsc -p test.tsconfig.json >/dev/null # In case of error, remove >/dev/null to debug.", "test:localize": "npm-run-all test:localize:*", "test:localize:dir-example": "cd test/xmlns && sed -i'' 's#@wikipathways\\/cxml#..\\/..\\/lib\\/cxml#' dir-example.js && cd ../..", "test:localize:2013a": "cd ./test/xmlns/pathvisio.org/GPML && sed -i'' 's#@wikipathways\\/cxml#..\\/..\\/..\\/..\\/lib\\/cxml#' 2013a.js && cd ../../../../", "test:localize:biopax-level3.owl": "cd ./test/xmlns/www.biopax.org/release/ && sed -i'' 's#@wikipathways\\/cxml#..\\/..\\/..\\/..\\/lib\\/cxml#' biopax-level3.owl.js && cd ../../../../", "test:localize:22-rdf-syntax-ns": "cd ./test/xmlns/www.w3.org/1999/02/ && sed -i'' 's#@wikipathways\\/cxml#..\\/..\\/..\\/..\\/..\\/lib\\/cxml#' 22-rdf-syntax-ns.js && cd ../../../../../", "test:localize:xml-primitives": "cd ./test/xmlns/ && sed -i'' 's#@wikipathways\\/cxml#..\\/..\\/lib\\/cxml#' xml-primitives.js && cd ../../", "test:run": "jest" }, "jest": { "moduleFileExtensions": [ "jsx", "js" ], "testEnvironment": "node", "testPathIgnorePatterns": [ "<rootDir>/(node_modules)/" ], "transformIgnorePatterns": [ "<rootDir>/(node_modules)/" ], "haste": { "providesModuleNodeModules": [ ".*" ] }, "testRegex": "((/src/.*\\.test\\.(ts|tsx|js))|(/test/spec/.*\\.(js|jsx)))$" }, "jestts": { "moduleFileExtensions": [ "ts", "tsx", "js", "jsx" ], "testEnvironment": "node", "transform": { "\\.(ts|tsx|.js|.jsx)$": "ts-jest" }, "testPathIgnorePatterns": [ "<rootDir>/(node_modules)/" ], "transformIgnorePatterns": [ "<rootDir>/(node_modules)/" ], "haste": { "providesModuleNodeModules": [ ".*" ] }, "testRegex": "((/src/.*\\.test\\.(ts|tsx|js))|(/test/spec/.*\\.(ts|tsx|js)))$" }, "author": "Juha Järvi", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ariutta/cxml.git" }, "bugs": { "url": "https://github.com/charto/cxml/issues" }, "homepage": "https://github.com/charto/cxml#readme", "keywords": [ "xml", "streaming", "schema", "parser", "xsd", "dts", "typescript" ], "dependencies": { "@types/bluebird": "^3.5.28", "@types/lodash": "^4.14.144", "@types/node": "^10.17.0", "@types/sax": "^1.2.0", "bluebird": "^3.7.1", "lodash": "^4.17.15", "sax": "^1.2.4" }, "devDependencies": { "@types/jest": "^24.0.21", "@wikipathways/cxsd": "0.2.9", "jest": "^24.9.0", "npm-run-all": "^4.1.5", "pegjs": "^0.10.0", "source-map-support": "^0.5.16", "ts-jest": "^24.1.0", "typescript": "^3.6.4" } }