-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathGruntfile.js
49 lines (45 loc) · 1.36 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
module.exports = function(grunt) {
// Do grunt-related things in here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
// define a string to put between each file in the concatenated output
separator: '\n'
},
core: {
src: ['lib/gyronorm.js'],
dest: 'dist/gyronorm.js'
},
complete: {
src: ['bower_components/fulltilt/dist/fulltilt.js', 'lib/gyronorm.js'],
dest: 'dist/gyronorm.complete.js'
},
complete_minified: {
src: ['bower_components/fulltilt/dist/fulltilt.min.js', 'dist/gyronorm.min.js'],
dest: 'dist/gyronorm.complete.min.js'
}
},
uglify: {
options: {
// the banner is inserted at the top of the output
banner: '\n/* gyronorm.js v2.0.6 - https://github.com/dorukeker/gyronorm.git*/\n'
},
dist: {
files: {
'dist/gyronorm.min.js': ['lib/gyronorm.js']
}
}
},
clean: {
core: 'dist/gyronorm.js',
core_min: 'dist/gyronorm.min.js',
complete: 'dist/gyronorm.complete.js',
complete_min: 'dist/gyronorm.complete.min.js'
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('build', ['clean' , 'uglify' , 'concat']);
};