aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-api/package.json')
-rw-r--r--packages/sra-api/package.json19
1 files changed, 13 insertions, 6 deletions
diff --git a/packages/sra-api/package.json b/packages/sra-api/package.json
index 8cbe911f3..61fa392fb 100644
--- a/packages/sra-api/package.json
+++ b/packages/sra-api/package.json
@@ -8,16 +8,20 @@
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"scripts": {
+ "serve": "redoc-cli serve lib/api.json --watch",
+ "develop": "run-p build-json:watch serve",
"lint": "tslint --project .",
"test": "yarn run_mocha",
+ "redoc-cli": "redoc-cli",
"rebuild_and_test": "run-s clean build test",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"test:circleci": "yarn test:coverage",
- "run_mocha":
- "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit",
- "clean": "shx rm -rf lib test_temp scripts",
- "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts"
+ "run_mocha": "mocha lib/test/**/*_test.js --exit",
+ "clean": "shx rm -rf lib",
+ "build": "tsc && yarn build-json",
+ "build-json": "ts-node scripts/buildJson.ts",
+ "build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' "
},
"repository": {
"type": "git",
@@ -34,14 +38,17 @@
"@0xproject/tslint-config": "^1.0.4",
"@loopback/openapi-v3-types": "^0.8.2",
"@types/mocha": "^2.2.42",
+ "@types/node": "^10.5.3",
"chai": "^4.0.1",
- "copyfiles": "^1.2.0",
+ "chokidar-cli": "^1.2.0",
"dirty-chai": "^2.0.1",
- "make-promises-safe": "^1.1.0",
"mocha": "^4.0.1",
+ "npm-run-all": "^4.1.3",
"nyc": "^11.0.1",
"openapi-schema-validation": "^0.4.1",
+ "redoc-cli": "^0.6.1",
"shx": "^0.2.2",
+ "ts-node": "^7.0.0",
"tslint": "5.11.0",
"typescript": "2.7.1"
},