-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
58 lines (58 loc) · 1.8 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
{
"name": "core",
"version": "1.0.0",
"license": "MIT",
"repository": "[email protected]:rareprotocol/core",
"main": "index.js",
"engines": {
"node": ">=16"
},
"scripts": {
"build": "forge build",
"fix": "concurrently -n prettier,solhint -c green,yellow \"npm run fix:prettier\" \"npm run fix:solhint\"",
"fix:prettier": "pprettier --concurrency 50 --ignore-path .prettierignore --write \"**/*\"",
"fix:solhint": "find src/ -name '*.sol' | xargs npm run solhint -- --fix",
"lint": "concurrently -n prettier,solhint -c green,yellow \"npm run lint:prettier\" \"npm run lint:solhint\"",
"lint:prettier": "pprettier --check --concurrency 50 --ignore-path .prettierignore \"**/*\"",
"lint:solhint": "find src/ -name '*.sol' | xargs npm run solhint",
"solhint": "solhint",
"test": "forge test -vvv"
},
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@hkdobrev/run-if-changed": "^0.3.1",
"@mixer/parallel-prettier": "2.0.2",
"concurrently": "^7.2.1",
"husky": "4.3.8",
"lint-staged": "^13.0.1",
"prettier": "^2.6.2",
"prettier-plugin-package": "^1.3.0",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"prettier-plugin-toml": "^0.3.1",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"post-commit": "run-if-changed",
"post-checkout": "run-if-changed",
"post-merge": "run-if-changed",
"post-rewrite": "run-if-changed"
}
},
"lint-staged": {
"*.{md,json}": [
"prettier --write"
],
"*.sol": [
"prettier --write",
"solhint --fix"
]
},
"run-if-changed": {
"package-lock.json": "npm install"
}
}