-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.09 KB
/
package.json
File metadata and controls
71 lines (71 loc) · 2.09 KB
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
{
"name": "@moonlitworks/api",
"version": "1.3.0",
"description": "Moonlit Works API",
"main": "lib/index.js",
"author": "Eyzi <contact@eyzi.dev>",
"license": "MPL-2.0",
"mocha": {
"require": [
"ts-node/register"
],
"extension": [
"ts"
],
"spec": "test/**/*.spec.ts"
},
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"check-coverage": true,
"all": true,
"skip-full": true,
"reporter": "lcov",
"include": [
"src/**"
]
},
"scripts": {
"build": "npx -p typescript tsc && yarn build:openapi",
"build:test": "yarn build && yarn test",
"build:openapi": "npx swagger-cli bundle --dereference --type yaml --outfile lib/docs/openapi.yml src/docs/openapi.yml && yarn build:openapi:version",
"build:openapi:version": "sed -i -e \"s/%PACKAGE_VERSION%/$npm_package_version/g\" lib/docs/openapi.yml",
"release": "npx standard-version --sign",
"release:dev": "npx standard-version --sign --prerelease",
"release:dryrun": "npx standard-version --dry-run",
"start": "node .",
"start:dev": "env $(cat .env | grep -v \"#\" | xargs) ts-node src/index",
"start:dev:build": "yarn build && env $(cat .env | grep -v \"#\" | xargs) ts-node src/index",
"start:dev:lib": "env $(cat .env | grep -v \"#\" | xargs) node .",
"test": "yarn build:openapi && nyc mocha"
},
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/js-yaml": "^4.0.5",
"@types/mocha": "^9.1.1",
"@types/mongoose": "^5.11.97",
"@types/node": "^17.0.29",
"@types/sinon": "^10.0.11",
"@types/swagger-ui-express": "^4.1.3",
"chai": "^4.3.6",
"mocha": "^9.2.2",
"nyc": "^15.1.0",
"sinon": "^13.0.2",
"standard-version": "^9.3.2",
"swagger-cli": "^4.0.4",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.18.0",
"express-openapi": "^11.0.0",
"js-yaml": "^4.1.0",
"mongoose": "^6.3.1",
"swagger-ui-express": "^4.3.0"
}
}