forked from wikipathways/cxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
115 lines (115 loc) · 4.71 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"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"
}
}