aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json14
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",