forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
42 lines (37 loc) · 985 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
qunit: { all: [ 'test/*.html' ] },
uglify: {
my_target: {
files: { 'dist/summernote.min.js': ['dist/summernote.js'] }
}
},
recess: {
dist: {
options: { compile: true, compress: true },
files: {
'dist/summernote.css': ['src/less/summernote.less']
}
}
},
build: {
all: {
baseUrl: 'src/js',
startFile: 'intro.js',
endFile: 'outro.js',
out: 'dist/summernote.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-recess');
// build: build summernote.js
grunt.loadTasks('build');
// test: unit test on test folder
grunt.registerTask('test', 'qunit');
// dist:
grunt.registerTask('dist', ['uglify', 'recess']);
// default: All tasks
grunt.registerTask('default', ['qunit', 'uglify', 'recess']);
};