-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
47 lines (47 loc) · 2.07 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
{
"name": "salesforce-app",
"private": true,
"version": "1.0.0",
"description": "Salesforce App",
"scripts": {
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:apex:local": "prettier --apex-standalone-parser built-in --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify:apex:local": "prettier --apex-standalone-parser built-in --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"apexdocs": "apexdocs-generate -c apexDocsConfig.json -o false -p global public private protected namespaceaccessible -s force-app/main/default/classes && rm docs/index.md",
"apex:local:start": "node node_modules/prettier-plugin-apex/bin/start-apex-server.js",
"apex:local:stop": "node node_modules/prettier-plugin-apex/bin/stop-apex-server.js",
"test:unit": "sfdx-lwc-jest --skipApiVersionCheck",
"test:unit:watch": "sfdx-lwc-jest --watch --skipApiVersionCheck",
"test:unit:debug": "sfdx-lwc-jest --debug --skipApiVersionCheck",
"test:unit:coverage": "sfdx-lwc-jest --coverage --skipApiVersionCheck",
"postinstall": "husky install",
"precommit": "npm run apex:local:start & sleep 2 && npm run prettier:apex:local && npm run apex:local:stop"
},
"devDependencies": {
"@cparra/apexdocs": "^1.11.0",
"@prettier/plugin-xml": "^0.13.1",
"@sa11y/jest": "^0.3.0",
"@salesforce/eslint-config-lwc": "^0.11.0",
"@salesforce/sfdx-lwc-jest": "^0.10.4",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"husky": "^5.2.0",
"prettier": "^2.2.1",
"prettier-plugin-apex": "^1.8.0",
"semver": "^7.3.4"
},
"husky": {
"hooks": {
"pre-commit": "precommit"
}
},
"lint-staged": {
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
"prettier --write"
],
"**/{aura|lwc}/**": [
"eslint"
]
}
}