forked from trailheadapps/apex-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
59 lines (59 loc) · 2.68 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
59
{
"name": "apex-recipes",
"private": true,
"version": "1.0.0",
"description": "A sample app demonstrating various aspects of the Apex programming language and the Salesforce Platform",
"scripts": {
"lint": "eslint **/lwc/**/*.js",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:apex:local": "prettier --plugin=@prettier/plugin-xml --plugin=prettier-plugin-apex --apex-standalone-parser built-in --apex-standalone-host 127.0.0.1 --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify:apex:local": "prettier --plugin=@prettier/plugin-xml --plugin=prettier-plugin-apex --apex-standalone-parser built-in --apex-standalone-host 127.0.0.1 --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"apexdocs": "sh bin/generate-apex-docs.sh",
"apex:local:start": "start-apex-server --host 127.0.0.1",
"apex:local:stop": "stop-apex-server --host 127.0.0.1",
"test:unit": "sfdx-lwc-jest",
"test:unit:watch": "sfdx-lwc-jest --watch ",
"test:unit:debug": "sfdx-lwc-jest --debug ",
"test:unit:coverage": "sfdx-lwc-jest --coverage ",
"prepare": "husky || true",
"precommit": "npm run apexdocs && git add force-app/main/default/staticresources/documentation && lint-staged"
},
"lint-staged": {
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
"prettier --write"
],
"**/lwc/**/*.js": [
"eslint"
],
"**/lwc/**": [
"sfdx-lwc-jest -- --bail --findRelatedTests --passWithNoTests"
]
},
"author": "salesforce.com",
"license": "CC0-1.0",
"repository": {
"type": "git",
"url": "git+https://github.com/trailheadapps/apex-recipes"
},
"devDependencies": {
"@cparra/apexdocs": "^2.25.0",
"@lwc/eslint-plugin-lwc": "^1.8.2",
"@prettier/plugin-xml": "^3.4.1",
"@sa11y/jest": "^6.11.0",
"@salesforce/eslint-config-lwc": "^3.6.0",
"@salesforce/eslint-plugin-aura": "^2.1.0",
"@salesforce/eslint-plugin-lightning": "^1.0.0",
"@salesforce/sfdx-lwc-jest": "^5.1.0",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest": "^28.8.3",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"prettier-plugin-apex": "^2.1.4"
},
"volta": {
"node": "20.15.0"
}
}