-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
45 lines (45 loc) · 1.45 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
{
"name": "projecttemplate",
"version": "1.0.0",
"description": "Bootstrap a new Tython SFDX project",
"author": "Tython",
"private": true,
"devDependencies": {
"@salesforce/eslint-config-lwc": "^0.3.0",
"@salesforce/lwc-jest": "^0.4.10",
"acorn": "^6.1.1",
"eslint": "^5.15.1",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"prettier": "^1.16.4"
},
"scripts": {
"lint": "npm run lint:lwc && npm run lint:aura",
"lint:lwc": "eslint **/lwc/**",
"lint:aura": "sfdx force:lightning:lint **/aura/** --exit",
"test": "npm run lint && npm run test:unit",
"test:unit": "lwc-jest",
"test:unit:watch": "lwc-jest --watch",
"test:unit:debug": "lwc-jest --debug",
"prettier": "prettier --write '**/*.{cmp,component,css,html,js,json,md,page,yaml,yml}'",
"prettier:verify": "prettier --list-different '**/*.{cmp,component,css,html,js,json,md,page,yaml,yml}'",
"spinup": "bash scripts/create-scratch-org.sh"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run lint:aura"
}
},
"lint-staged": {
"linters": {
"**/*.{cmp,component,css,html,js,json,md,page,yaml,yml}": [
"prettier --write",
"git add"
],
"**/lwc/**": [
"eslint",
"git add"
]
}
}
}