forked from maasglobal/maas-tsp-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
73 lines (73 loc) · 2.85 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
{
"name": "maas-tsp-api",
"version": "1.1.0",
"description": "MaaS TSP (Transport Service Provider) API",
"private": true,
"main": "src/index.js",
"scripts": {
"preinstall": "npx npm-force-resolutions",
"postinstall": "cp -f ./node_modules/mermaid/dist/mermaid.min.js ./node_modules/@mermaid-js/mermaid-cli/",
"clean": "shx rm -Rf dist node_modules",
"build": "node utils/adopt-schemas.js && node utils/bundle-spec.js && node utils/compile-workflows.js && node utils/compile-md.js",
"start": "npm run build && nodemon src/index.js -w specs -w docs -w assets -w schemas -w src -w specs/workflow -w utils -e js,md,mmd,yml,yaml,json",
"prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
"lint": "npm run lint-code && npm run lint-schemas && npm run lint-spec",
"lint-code": "eslint .",
"lint-spec": "npm run build && cross-env NODE_OPTIONS=--max_old_space_size=4096 spectral lint specs/booking.yml",
"lint-schemas": "npm run build && cross-env NODE_OPTIONS=--max_old_space_size=4096 spectral lint schemas",
"copy-resources": "shx cp -r assets dist/ && shx cp -r assets dist/ && shx cp docs/* dist && shx cp -r examples dist/ && shx cp -r schemas dist/ && shx cp -r specs dist/ && shx cp node_modules/redoc/bundles/redoc.standalone* dist/ && shx mkdir -p dist/swagger-ui && shx cp -r node_modules/swagger-ui-dist/* dist/swagger-ui/ && shx cp -r node_modules/github-markdown-css/*.css dist/",
"dist": "npm run build && npm run copy-resources",
"deploy": "gh-pages -d dist",
"test": "mocha"
},
"keywords": [
"maas",
"tsp",
"transport",
"api",
"openapi"
],
"author": "Lauri Svan <lauri.svan@sc5.io> (https://github.com/laurisvan), Ruslan Gainutdinov (https://github.com/huksley), tech@maas.global",
"license": "MIT",
"devDependencies": {
"@mermaid-js/mermaid-cli": "^8.4.8",
"@stoplight/spectral": "^5.2.0",
"cross-env": "^6.0.3",
"eslint": "^5.16.0",
"eslint-config-maasglobal": "^3.0.1",
"eslint-plugin-import": "^2.18.2",
"express": "^4.17.1",
"fp-ts": "^2.1.2",
"gh-pages": "^2.1.1",
"github-markdown-css": "^4.0.0",
"husky": "^3.0.9",
"io-ts": "^2.0.1",
"io-ts-promise": "^2.0.1",
"maas-schemas-ts": "10.6.0",
"marked": "^0.8.0",
"mermaid": "^8.4.7",
"mobx": "^5.15.4",
"mocha": "^7.1.1",
"nodemon": "^1.19.4",
"prettier": "^1.18.2",
"pretty-quick": "^2.0.1",
"redoc": "^2.0.0-rc.23",
"redoc-cli": "^0.9.6",
"shx": "^0.3.2",
"swagger-ui-dist": "^3.24.2"
},
"dependencies": {
"maas-schemas": "^10.6.0"
},
"mocha": {
"exit": true,
"extension": "js",
"watch-extensions": "js",
"recursive": true
},
"husky": {
"hooks": {
"pre-commit": "npm run test && npm run lint-code && pretty-quick --staged --pattern \"**/*.*(js|jsx|ts|tsx)\""
}
}
}