-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
165 lines (165 loc) · 7.03 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "bridgedb",
"version": "6.2.6",
"description": "JS client for BridgeDb.org ID mapping framework webservices",
"main": "es5/index.js",
"module": "esnext/index.js",
"jsnext:main": "esnext/index.js",
"typings": "es5/index.d.ts",
"bin": "./bin/bridgedb",
"files": [
"es5/",
"src/",
"dist/",
"esnext/",
"bin/",
"package.json",
"package-lock.json",
"tsconfig.json",
"tsconfig.base.json",
"tsconfig.demo.json",
"tsconfig.esnext.json",
"typings/index.d.ts",
"typings/organism.d.ts"
],
"scripts": {
"assets": "css_path=$(node -p 'require.resolve(\"react-select/dist/react-select.css\")') && mkdir -p es5/components && mkdir -p esnext/components && cp \"$css_path\" ./es5/components/react-select.css && cp \"$css_path\" ./src/components/react-select.css && cp \"$css_path\" ./esnext/components/react-select.css && echo ok || echo not ok",
"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 'bridgedb: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 'bridgedb:test'); else npm run test; fi",
"postpublish": "TAG=\"$(jq -r .version package.json)\" && git commit -am \"Bumped to version $TAG\" && git tag -a $TAG -m \"Published version $TAG\" && git push origin $TAG",
"build": "npm run compile && mkdir -p dist && rm -rf dist/* && browserify ./es5/index.js -o ./dist/index.js -d -t cssify",
"build-demo": "npm run compile:es5:ui && npm run compile:es5:ui:test && browserify ./test/e2e/ui-components-local.test.js -o ./demo/ui-combo.bundle.js -d",
"compile": "npm-run-all -p compile:*",
"compile:es5": "mkdir -p es5 && rm -rf es5/* && npm run assets && tsc --project tsconfig.json && echo ok || echo not ok",
"compile:esnext": "mkdir -p esnext && rm -rf esnext/* && npm run assets && tsc --project tsconfig.esnext.json && echo ok || echo not ok",
"compile-demo:es5:ui": "tsc src/components/react-demo.tsx --jsx react --sourceMap --lib dom,es5,scripthost --module commonjs --outDir components/ && echo ok || echo not ok",
"compile-demo:es5:ui:test": "tsc --project tsconfig.demo.json && echo ok || echo not ok",
"dev": "npm run build:es5",
"start": "npm-run-all -p start:*",
"start:mockserver": "pm2 --silent start ./es5/spinoffs/mockserverPM/mockserverPM.js --name mockserverPM # Get mockserver working for xrefsBatch queries. Get --name param working for 'pm2 start' on NixOS. ",
"start:ui": "webpack-dev-server --config webpack.config.js --progress --colors --watch",
"stop": "npm-run-all -p stop:*",
"stop-broken-on-nixos:mockserver": "echo 'Stopping mockserver' && pm2 --silent stop mockserverPM && pm2 --silent delete mockserverPM # Broken because 'pm2 start --name' not setting app name on NixOS.",
"stop:mockserver": "pms_running=$(pm2 list -m | awk '/+---/ {print $2}' | wc -l) && if [ $pms_running -eq 1 ]; then pm2 --silent kill; elif [ $pms_running -gt 1 ]; then bash bin/mockserver_confirm_stop.sh; fi",
"test": "npm-run-all --silent -p test:*",
"test:cli": "export NODE_ENV=development && export MOCK_SERVER_WARNING_GIVEN='yes' && npm-run-all -s stop:mockserver start:mockserver -p test:cli:datasource test:cli:dsvXrefs test:cli:jsonXrefs test:cli:noneXrefs -s stop:mockserver",
"test:cli:datasource": "sh ./test/datasource.sh && sh ./bin/datasource.help.sh >/dev/null && echo 'Completed test:cli:datasource' || exit 1",
"test:cli:dsvXrefs": "sh ./test/dsvXrefs.sh && sh ./bin/dsvXrefs.help.sh >/dev/null && echo 'Completed test:cli:dsvXrefs' || exit 1",
"test-cli-jsonXrefsManual": "sh ./test/jsonXrefs.sh && sh ./bin/jsonXrefs.help.sh >/dev/null && echo 'Completed test:cli:jsonXrefs' || exit 1",
"test:cli:jsonXrefs": "echo 'TODO: Run test-cli-jsonXrefsManual manually until you have mocked its requests' && echo 'Completed test:cli:jsonXrefs' || exit 1",
"test-cli-noneXrefsManual": "sh ./test/noneXrefs.sh && sh ./bin/noneXrefs.help.sh >/dev/null && echo 'Completed test:cli:noneXrefs' || exit 1",
"test:cli:noneXrefs": "sh ./bin/noneXrefs.help.sh >/dev/null && echo 'TODO: Run test-cli-noneXrefsManual manually until you have mocked its requests' && echo 'Completed test:cli:noneXrefs' || exit 1",
"test:ui": "echo 'TODO: Add tests for UI!'",
"watch": "npm-run-all -p start:mockserver watch:*",
"watch:client": "npm-watch",
"watch:ui": "npm run start:ui"
},
"watch": {
"dev": [
"index.d.ts",
"src/*.{ts,tsx}",
"test/*.{ts,tsx,js,jsx}"
],
"test": [
"index.js",
"ui/*.{js,jsx}",
"test/*.{js,jsx}"
]
},
"browserify": {
"transform": [
"cssify"
]
},
"repository": {
"type": "git",
"url": "https://github.com/bridgedb/bridgedbjs.git"
},
"keywords": [
"bridgedb",
"biology"
],
"author": "BridgeDb team",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/bridgedb/bridgedbjs/issues"
},
"homepage": "https://bridgedb.github.io/bridgedbjs/docs/",
"dependencies": {
"JSONStream": "^1.3.5",
"browserfs": "^1.4.3",
"commander": "^2.20.3",
"csstips": "^0.2.3",
"fast-csv": "^3.4.0",
"highland": "^2.13.5",
"insert-css": "^2.0.0",
"lodash": "^4.17.15",
"ndjson": "^1.5.0",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-icons-kit": "^1.3.1",
"react-select": "^1.3.0",
"rx-extra": "2.1.4",
"rxjs": "^5.5.12",
"source-map-support": "^0.5.16",
"typestyle": "^0.22.3",
"verror": "^1.10.0",
"xhr2": "^0.2.0"
},
"devDependencies": {
"@types/lodash": "^4.14.144",
"@types/node": "^10.17.0",
"@types/react": "^16.9.3",
"@types/react-dom": "^16.9.3",
"@types/rx": "^4.1.1",
"browserify": "^16.5.0",
"colors": "^1.4.0",
"css-loader": "^3.2.0",
"cssify": "^1.0.3",
"global": "^4.4.0",
"html-webpack-plugin": "^3.2.0",
"inquirer": "^3.3.0",
"jsdoc": "^3.6.3",
"jsonld-markup": "^0.2.1",
"mockserver": "^3.1.1",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.6.0",
"pm2": "^3.5.1",
"through": "^2.3.8",
"tower-strcase": "^0.5.0",
"ts-loader": "^6.2.2",
"tsify": "^3.0.4",
"typescript": "^3.8.3",
"watchify": "^3.11.1",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.9.0",
"webpack-hot-middleware": "^2.25.0",
"yargs": "^14.2.0"
},
"semverBumper": {
"jsonFiles": [
{
"filepath": "package.json",
"key": "version"
}
],
"grepOptions": {
"include": [],
"exclude": [
".git",
"jsdoc-conf.json",
"npm-debug.log"
],
"excludeDir": [
"./docs",
"./test",
"./bower_components",
"./es5",
"./esnext",
"./demo",
"./dist"
]
}
}
}