forked from roots/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
52 lines (49 loc) · 1.41 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
44
45
46
47
48
49
50
51
52
/*jslint node: true*/
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-shipit');
grunt.loadNpmTasks('shipit-git-update');
grunt.loadNpmTasks('shipit-composer-simple');
grunt.loadNpmTasks('grunt-jsonlint');
grunt.loadNpmTasks('grunt-fixpack');
grunt.initConfig({
jslint: {
Gruntfile: {
src: 'Gruntfile.js'
}
},
jsonlint: {
manifests: {
src: '*.json',
options: {
format: true
}
}
},
shipit: {
options: {
servers: '[email protected]',
composer: {
noDev: true
}
},
staging: {
deployTo: '/home/quai10/public_html/preprod/',
branch: 'develop'
},
prod: {
deployTo: '/home/quai10/public_html/wordpress/',
branch: 'master'
}
},
fixpack: {
package: {
src: 'package.json'
}
}
});
grunt.registerTask('lint', ['jslint', 'fixpack', 'jsonlint']);
grunt.registerTask('staging', ['shipit:staging', 'update', 'composer:install']);
grunt.registerTask('prod', ['shipit:prod', 'update', 'composer:install']);
};