Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

Commit 7c31302

Browse files
committed
add shorthand npm scripts for creating org, deploying source, etc
1 parent 42ffcb0 commit 7c31302

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"version": "2.1.0",
44
"description": "Promise-based service component for calling REST API from Lightning Aura Components without Named Credentials.",
55
"scripts": {
6-
"deploy": "sfdx force:source:deploy -p force-app,force-demo -w 10"
6+
"org:create": "sfdx force:org:create --setalias lapi --setdefaultusername --definitionfile config/project-scratch-def.json",
7+
"org:delete": "sfdx force:org:delete --targetusername lapi",
8+
"org:open": "sfdx force:org:open --targetusername lapi --path //lightning/n/LC_Demo",
9+
"source:deploy": "sfdx force:source:deploy --sourcepath force-app,force-demo --wait 10",
10+
"permset:assign": "sfdx force:user:permset:assign --permsetname LC_Demo",
11+
"apex:test": "sfdx force:apex:test:run --targetusername lapi --codecoverage --resultformat human --wait 10"
712
},
813
"repository": {
914
"type": "git",

0 commit comments

Comments
 (0)