-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
68 lines (68 loc) · 3.22 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
60
61
62
63
64
65
66
67
68
{
"name": "base-sfdx",
"private": true,
"version": "0.3.4",
"description": "DSchach packaging actions test project",
"scripts": {
"apex:test": "rm testresults/* && sf apex run test --test-level RunLocalTests --output-dir testresults --result-format human --code-coverage",
"audittrail": "sf data query --query \"SELECT Id,Action,Section,CreatedDate,CreatedBy.Name,Display FROM SetupAuditTrail ORDER BY CreatedDate DESC\" --resultformat csv > logs/SetupAuditTrail.csv",
"cpd": "$HOME/pmd/bin/pmd cpd --dir force-app --language apex --minimum-tokens 100 --format vs",
"devhub-x2od": "sf config set target-dev-hub=x2od",
"initialize": ". scripts/initialize.sh",
"lint:aura": "eslint --no-error-on-unmatched-pattern **/aura/**/*.js",
"lint:lwc": "eslint --no-error-on-unmatched-pattern **/lwc/**/*.js",
"lint": "npm run lint:lwc && npm run lint:aura",
"myinfo": "sf org display --verbose",
"pmd:scan:csv": "$HOME/pmd/bin/pmd check --dir force-app --rulesets pmd/ruleset.xml --format csv --report-file pmd/pmd.csv --cache .pmdCache --short-names",
"pmd:scan:deploy:csv": "$HOME/pmd/bin/pmd check --dir force-app --rulesets pmd/deployRules.xml --format csv --report-file pmd/deploy.csv --cache .pmdCache --short-names",
"precommit": "lint-staged",
"prepare": "husky",
"prettier:apex": "prettier --write \"force-app/**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}\"",
"prettier:docs": "prettier --write \"docs/*.html\"",
"prettier:verify:apex": "prettier --list-different \"force-app/**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}\"",
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prune": "git branch | grep -v \"main\" | xargs git branch -D",
"scratchorg": ". scripts/orginit.sh",
"test:unit:coverage": "sfdx-lwc-jest --coverage --skipApiVersionCheck -- --passWithNoTests",
"test:unit:debug": "sfdx-lwc-jest --debug --skipApiVersionCheck -- --passWithNoTests",
"test:unit:watch": "sfdx-lwc-jest --watch --skipApiVersionCheck -- --passWithNoTests",
"test:unit": "sfdx-lwc-jest --skipApiVersionCheck -- --passWithNoTests",
"test": "npm run test:unit",
"updateHighlight": ". doc-assets/updateHighlight.sh"
},
"devDependencies": {
"@lwc/eslint-plugin-lwc": "1.9.0",
"@prettier/plugin-xml": "3.4.1",
"@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.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-prettier": "5.2.2",
"highlightjs-apex": "1.4.0",
"husky": "9.1.7",
"lint-staged": "15.3.0",
"marked": "12.0.2",
"node-jq": "6.0.1",
"prettier": "3.4.2",
"prettier-plugin-apex": "2.2.2"
},
"lint-staged": {
"force-app/**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}": [
"prettier --write"
],
"force-app/**/{aura,lwc}/**": [
"eslint"
],
"docs/assets/*.css": [
"prettier --write"
],
"docs/*.html": [
"prettier --write --tab-width 2"
]
}
}