1 | {
|
2 | "name": "bridgedb",
|
3 | "version": "6.1.2",
|
4 | "description": "JS client for BridgeDb.org ID mapping framework webservices",
|
5 | "main": "es5/index.js",
|
6 | "module": "esnext/index.js",
|
7 | "jsnext:main": "esnext/index.js",
|
8 | "typings": "es5/index.d.ts",
|
9 | "bin": "./bin/bridgedb",
|
10 | "files": [
|
11 | "es5/",
|
12 | "src/",
|
13 | "dist/",
|
14 | "esnext/",
|
15 | "bin/",
|
16 | "package.json",
|
17 | "package-lock.json",
|
18 | "tsconfig.json",
|
19 | "tsconfig.base.json",
|
20 | "tsconfig.demo.json",
|
21 | "tsconfig.esnext.json",
|
22 | "typings/index.d.ts",
|
23 | "typings/organism.d.ts"
|
24 | ],
|
25 | "scripts": {
|
26 | "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",
|
27 | "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",
|
28 | "prepublishOnly": "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",
|
29 | "build": "npm run compile && mkdir -p dist && rm -rf dist/* && browserify ./es5/index.js -o ./dist/index.js -d -t cssify -t deglobalify",
|
30 | "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 -t deglobalify",
|
31 | "compile": "npm-run-all -p compile:*",
|
32 | "compile:es5": "mkdir -p es5 && rm -rf es5/* && npm run assets && tsc --project tsconfig.json && echo ok || echo not ok",
|
33 | "compile:esnext": "mkdir -p esnext && rm -rf esnext/* && npm run assets && tsc --project tsconfig.esnext.json && echo ok || echo not ok",
|
34 | "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",
|
35 | "compile-demo:es5:ui:test": "tsc --project tsconfig.demo.json && echo ok || echo not ok",
|
36 | "dev": "npm run build:es5",
|
37 | "start": "npm-run-all -p start:*",
|
38 | "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. ",
|
39 | "start:ui": "webpack-dev-server --config webpack.config.js --progress --colors --watch",
|
40 | "stop": "npm-run-all -p stop:*",
|
41 | "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.",
|
42 | "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",
|
43 | "test": "npm-run-all --silent -p test:*;",
|
44 | "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",
|
45 | "test:cli:dsvXrefs": "sh ./test/dsvXrefs.sh; (unset NODE_ENV; echo 'TODO: Mock requests in dsvXrefs-no-test-server.sh'; sh ./test/dsvXrefs-no-test-server.sh); sh ./bin/dsvXrefs.help.sh > /dev/null; echo 'Completed test:cli:dsvXrefs'",
|
46 | "test:cli:datasource": "sh ./test/datasource.sh; sh ./bin/datasource.help.sh > /dev/null; echo 'Completed test:cli:datasource'",
|
47 | "test:cli:jsonXrefs": "(unset NODE_ENV; echo 'TODO: Mock requests in jsonXrefs.sh'; sh ./test/jsonXrefs.sh; sh ./bin/jsonXrefs.help.sh > /dev/null); echo 'Completed test:cli:jsonXrefs'",
|
48 | "test:cli:noneXrefs": "(unset NODE_ENV; echo 'TODO: Mock requests in noneXrefs.sh'; sh ./test/noneXrefs.sh; sh ./bin/noneXrefs.help.sh > /dev/null); echo 'Completed test:cli:noneXrefs'",
|
49 | "test:ui": "echo 'TODO: Add tests for UI!'",
|
50 | "watch": "npm-run-all -p start:mockserver watch:*",
|
51 | "watch:client": "npm-watch",
|
52 | "watch:ui": "npm run start:ui"
|
53 | },
|
54 | "watch": {
|
55 | "dev": ["index.d.ts", "src/*.{ts,tsx}", "test/*.{ts,tsx,js,jsx}"],
|
56 | "test": ["index.js", "ui/*.{js,jsx}", "test/*.{js,jsx}"]
|
57 | },
|
58 | "browserify": {
|
59 | "transform": ["deglobalify", "cssify"]
|
60 | },
|
61 | "repository": {
|
62 | "type": "git",
|
63 | "url": "https://github.com/bridgedb/bridgedbjs.git"
|
64 | },
|
65 | "keywords": ["bridgedb", "biology"],
|
66 | "author": "BridgeDb team",
|
67 | "license": "Apache-2.0",
|
68 | "bugs": {
|
69 | "url": "https://github.com/bridgedb/bridgedbjs/issues"
|
70 | },
|
71 | "homepage": "https://bridgedb.github.io/bridgedbjs/docs/",
|
72 | "dependencies": {
|
73 | "JSONStream": "^1.3.5",
|
74 | "browserfs": "^1.4.3",
|
75 | "commander": "^2.20.0",
|
76 | "csstips": "^0.2.3",
|
77 | "csv-streamify": "^3.0.4",
|
78 | "highland": "^2.13.4",
|
79 | "insert-css": "^2.0.0",
|
80 | "lodash": "^4.17.15",
|
81 | "ndjson": "^1.5.0",
|
82 | "react": "^16.6.3",
|
83 | "react-dom": "^16.6.3",
|
84 | "react-icons-kit": "^1.3.1",
|
85 | "react-select": "^1.3.0",
|
86 | "replacestream": "^4.0.3",
|
87 | "rx-extra": "^2.1.1",
|
88 | "rxjs": "^5.5.12",
|
89 | "source-map-support": "^0.5.12",
|
90 | "typestyle": "^0.22.3",
|
91 | "verror": "^1.10.0",
|
92 | "xhr2": "^0.1.4"
|
93 | },
|
94 | "devDependencies": {
|
95 | "@types/lodash": "^4.14.136",
|
96 | "@types/node": "^8.9.0",
|
97 | "@types/react": "^15.6.26",
|
98 | "@types/react-dom": "^15.5.8",
|
99 | "@types/rx": "^4.1.1",
|
100 | "browserify": "^16.3.0",
|
101 | "colors": "^0.6.2",
|
102 | "css-loader": "^3.1.0",
|
103 | "cssify": "^1.0.3",
|
104 | "deglobalify": "^0.2.0",
|
105 | "global": "^4.3.2",
|
106 | "html-webpack-plugin": "^2.30.1",
|
107 | "inquirer": "^3.3.0",
|
108 | "jsdoc": "^3.6.3",
|
109 | "jsonld-markup": "^0.2.1",
|
110 | "mockserver": "^3.1.0",
|
111 | "npm-run-all": "^4.1.5",
|
112 | "npm-watch": "^0.3.0",
|
113 | "pm2": "^2.10.4",
|
114 | "react-addons-test-utils": "^15.6.2",
|
115 | "through": "^2.3.8",
|
116 | "tower-strcase": "^0.5.0",
|
117 | "ts-loader": "^2.3.7",
|
118 | "tsify": "^3.0.4",
|
119 | "typescript": "^3.5.3",
|
120 | "watchify": "^3.11.1",
|
121 | "webpack": "^3.12.0",
|
122 | "webpack-dev-server": "^3.7.2",
|
123 | "webpack-hot-middleware": "^2.24.3",
|
124 | "yargs": "^9.0.1"
|
125 | },
|
126 | "semverBumper": {
|
127 | "jsonFiles": [
|
128 | {
|
129 | "filepath": "package.json",
|
130 | "key": "version"
|
131 | }
|
132 | ],
|
133 | "grepOptions": {
|
134 | "include": [],
|
135 | "exclude": [".git", "jsdoc-conf.json", "npm-debug.log"],
|
136 | "excludeDir": [
|
137 | "./docs",
|
138 | "./test",
|
139 | "./bower_components",
|
140 | "./es5",
|
141 | "./esnext",
|
142 | "./demo",
|
143 | "./dist"
|
144 | ]
|
145 | }
|
146 | }
|
147 | }
|