forked from isnowfy/simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (28 loc) · 815 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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
minify: {
src: 'src/template/css/*.css',
dest: 'src/template/main.css'
}
},
concat: {
dist: {
src: ['src/lib/jquery.js', "src/template/js/prism.js", "src/template/js/hogan.min.js", 'src/lib/spine.js', 'src/lib/route.js', 'src/lib/manager.js'],
dest: 'src/template/main.js'
}
},
uglify: {
build: {
src: 'src/template/main.js',
dest: 'src/template/main.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['cssmin', 'concat', 'uglify']);
};