forked from j-fischer/rflib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
43 lines (36 loc) · 1.1 KB
/
Gruntfile.js
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
module.exports = function(grunt) {
// load all grunt tasks needed for this run
require('jit-grunt')(grunt);
// build configuration
var config = {
alias: 'rflib'
};
grunt.initConfig({
config: config,
env: process.env,
shell: {
'force-create-org': {
command: 'sfdx force:org:create -s -f config/project-scratch-def.json -d 30 -a <%= config.alias %>'
},
'force-assign-permset': {
command:
'sfdx force:user:permset:assign --permsetname rflib_Log_Monitor_Access --targetusername <%= config.alias %>'
},
'force-push': {
command: 'sfdx force:source:push -u <%= config.alias %>'
},
'force-open': {
command: 'sfdx force:org:open -u <%= config.alias %>'
}
}
});
/*
* BUILD TARGETS
*/
grunt.registerTask('create-scratch', [
'shell:force-create-org',
'shell:force-push',
'shell:force-assign-permset',
'shell:force-open'
]);
};