diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-11-15 14:10:15 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-11-15 14:10:16 +0100 |
commit | 3e9e6f2f14fda845e6000cfada07d1bfb176bd21 (patch) | |
tree | c8ab535f0f5ff0454b1e1df36ce4d8473846d676 /package.json | |
parent | 6cb3482ceba2e0564a05b525699f29a1f5ff20a2 (diff) | |
download | PeerTube-3e9e6f2f14fda845e6000cfada07d1bfb176bd21.tar.gz PeerTube-3e9e6f2f14fda845e6000cfada07d1bfb176bd21.tar.zst PeerTube-3e9e6f2f14fda845e6000cfada07d1bfb176bd21.zip |
migrate Swagger 2.0 spec to OpenAPI 3.0.0
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/package.json b/package.json index 40d0214c9..391e1ff90 100644 --- a/package.json +++ b/package.json | |||
@@ -49,14 +49,12 @@ | |||
49 | "create-import-video-file-job": "node ./dist/scripts/create-import-video-file-job.js", | 49 | "create-import-video-file-job": "node ./dist/scripts/create-import-video-file-job.js", |
50 | "test": "scripty", | 50 | "test": "scripty", |
51 | "help": "scripty", | 51 | "help": "scripty", |
52 | "generate-api-doc": "scripty", | ||
53 | "generate-cli-doc": "scripty", | 52 | "generate-cli-doc": "scripty", |
54 | "parse-log": "node ./dist/scripts/parse-log.js", | 53 | "parse-log": "node ./dist/scripts/parse-log.js", |
55 | "prune-storage": "node ./dist/scripts/prune-storage.js", | 54 | "prune-storage": "node ./dist/scripts/prune-storage.js", |
56 | "optimize-old-videos": "node ./dist/scripts/optimize-old-videos.js", | 55 | "optimize-old-videos": "node ./dist/scripts/optimize-old-videos.js", |
57 | "postinstall": "cd client && yarn install --pure-lockfile", | 56 | "postinstall": "cd client && yarn install --pure-lockfile", |
58 | "tsc": "tsc", | 57 | "tsc": "tsc", |
59 | "spectacle-docs": "node_modules/spectacle-docs/bin/spectacle.js", | ||
60 | "commander": "commander", | 58 | "commander": "commander", |
61 | "ng": "ng", | 59 | "ng": "ng", |
62 | "nodemon": "nodemon", | 60 | "nodemon": "nodemon", |
@@ -72,13 +70,21 @@ | |||
72 | }, | 70 | }, |
73 | "husky": { | 71 | "husky": { |
74 | "hooks": { | 72 | "hooks": { |
75 | "pre-commit": "lint-staged && ./scripts/openapi-peertube-version.sh" | 73 | "pre-commit": "./scripts/openapi-peertube-version.sh && lint-staged" |
76 | } | 74 | } |
77 | }, | 75 | }, |
78 | "lint-staged": { | 76 | "lint-staged": { |
79 | "*.scss": [ | 77 | "*.scss": [ |
80 | "sass-lint -c client/.sass-lint.yml", | 78 | "sass-lint -c client/.sass-lint.yml", |
81 | "git add" | 79 | "git add" |
80 | ], | ||
81 | "support/doc/api/*.yaml": [ | ||
82 | "node ./node_modules/swagger-cli/bin/swagger-cli.js validate support/doc/api/openapi.yaml", | ||
83 | "git add" | ||
84 | ], | ||
85 | "server/tools/README.md": [ | ||
86 | "npm run generate-cli-doc", | ||
87 | "git add" | ||
82 | ] | 88 | ] |
83 | }, | 89 | }, |
84 | "resolutions": { | 90 | "resolutions": { |
@@ -200,8 +206,8 @@ | |||
200 | "nodemon": "^1.11.0", | 206 | "nodemon": "^1.11.0", |
201 | "sass-lint": "^1.12.1", | 207 | "sass-lint": "^1.12.1", |
202 | "source-map-support": "^0.5.0", | 208 | "source-map-support": "^0.5.0", |
203 | "spectacle-docs": "^1.0.2", | ||
204 | "supertest": "^3.0.0", | 209 | "supertest": "^3.0.0", |
210 | "swagger-cli": "^2.2.0", | ||
205 | "ts-node": "7.0.1", | 211 | "ts-node": "7.0.1", |
206 | "tslint": "^5.7.0", | 212 | "tslint": "^5.7.0", |
207 | "tslint-config-standard": "^8.0.1", | 213 | "tslint-config-standard": "^8.0.1", |