This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
62 lines (61 loc) · 2.63 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
53
54
55
56
57
58
59
60
61
62
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
css: {
src: [
'bower_components/bootstrap/dist/css/bootstrap.css',
'bower_components/jquery-ui/themes/base/jquery-ui.css',
'bower_components/jquery-ui/themes/base/autocomplete.css',
'public/css/mysecrets.css',
],
dest: 'public/css/combined.css'
},
js : {
src : [
'bower_components/jquery/dist/jquery.js',
'bower_components/jquery-ui/jquery-ui.js',
'bower_components/jquery-simulate/jquery.simulate.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/bootbox/bootbox.js',
'bower_components/jQuery-Storage-API/jquery.storageapi.js',
'bower_components/cryptojslib/components/core.js',
'bower_components/cryptojslib/components/enc-base64.js',
'bower_components/cryptojslib/rollups/md5.js',
'bower_components/cryptojslib/components/evpkdf.js',
'bower_components/cryptojslib/components/cipher-core.js',
'bower_components/cryptojslib/rollups/aes.js',
'bower_components/cryptojslib/rollups/sha1.js',
'bower_components/cryptojslib/rollups/hmac.js',
'bower_components/cryptojslib/rollups/pbkdf2.js',
'bower_components/mustache/mustache.js',
'bower_components/clipboard/dist/clipboard.js',
'bower_components/firebase/firebase-app.js',
'bower_components/firebase/firebase-auth.js',
'bower_components/firebase/firebase-database.js'
],
dest : 'public/js/combined.js'
}
},
cssmin : {
options: {
rebase: false
},
css:{
src: 'public/css/combined.css',
dest: 'public/css/combined.min.css'
}
},
uglify : {
js: {
files: {
'public/js/combined.min.js' : [ 'public/js/combined.js' ]
}
}
},
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', [ 'concat:css', 'cssmin:css', 'concat:js', 'uglify:js' ]);
};