-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 2.85 KB
/
package.json
File metadata and controls
55 lines (55 loc) · 2.85 KB
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
{
"name": "protected-campaignmember-statuses",
"private": true,
"version": "1.3.0",
"description": "Protected Campaign Member Statuses",
"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",
"docs:setup": ". doc-assets/setupApexDox.sh",
"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",
"postinstall": "husky install",
"precommit": "lint-staged",
"prepare": "husky install",
"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": {
"@prettier/plugin-xml": "^3.4.2",
"husky": "^9.1.7",
"lint-staged": "^15.5.2",
"marked": "^15.0.12",
"prettier": "^3.8.1",
"prettier-plugin-apex": "^2.2.6"
},
"lint-staged": {
"force-app/**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,yaml,yml}": [
"prettier --write"
],
"docs/assets/*.css": [
"prettier --write"
],
"docs/**/*.html": [
"prettier --write"
]
}
}