forked from DPGAlliance/publicgoods-candidates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
33 lines (33 loc) · 1.18 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
{
"name": "dpgs",
"version": "0.0.1",
"description": "JSON schema validation for Digital Public Goods nominees",
"main": "index.js",
"scripts": {
"test": "ajv validate -s nominee-schema.json -d \"nominees/*.json\" && ajv validate -s screening-schema.json -d \"screening/*.json\"",
"check": "./scripts/check-filenames.bash",
"check:fix": "./scripts/check-filenames.bash --fix",
"lint": "for f in ./nominees/*.json ./screening/*.json; do jsonlint \"$f\" > tempfile.tmp; if diff $f tempfile.tmp; then echo \"Linting of $f passed\"; else echo \"Linting of $f failed\" && exit 1; fi; done",
"lint:fix": "for f in ./nominees/*.json ./screening/*.json; do echo \"$f\"; jsonlint \"$f\" -i; echo >> \"$f\"; done",
"order": "node scripts/order-fields.js",
"order:fix": "node scripts/order-fields.js --fix"
},
"author": "",
"license": "MIT",
"devDependencies": {
"ajv-cli": "^3.1.0",
"btoa": "^1.2.1",
"csvtojson": "^2.0.10",
"husky": "^4.2.3",
"jsonlint": "^1.6.3",
"request": "^2.88.2"
},
"husky": {
"hooks": {
"pre-commit": "npm test && npm run order && npm run check"
}
},
"dependencies": {
"minimist": "^1.2.3"
}
}