forked from mozbrick/brick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
48 lines (41 loc) · 1.32 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
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
connect: {
demo: {
options:{
port: 3001,
base: '',
keepalive: true
}
}
},
pkg: grunt.file.readJSON('package.json'),
bumpup: ['bower.json', 'package.json'],
tagrelease: {
file: 'package.json',
prefix: '',
commit: true
},
clean: {
dist: ['dist/brick.js','dist/brick.css'],
alldist: ['dist/*'],
site: ['download.html','docs.html','index.html','demos']
}
});
grunt.task.loadTasks('./tasks/');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bumpup');
grunt.loadNpmTasks('grunt-tagrelease');
grunt.registerTask('default', ['site']);
grunt.registerTask('bump:patch', ['bumpup:patch', 'tagrelease']);
grunt.registerTask('fastcompile', ['clean:dist','build']);
grunt.registerTask('fastcompile-dev', ['clean:dist','build-dev']);
grunt.registerTask('site', ['clean:site','build','demos','docs','homepage','downloadpage']);
grunt.registerTask('release', ['build','zip']);
};