forked from Kris-B/nanoGALLERY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
38 lines (33 loc) · 1.26 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
target: {
files: {
'dist/css/nanogallery.min.css': 'css/nanogallery.css',
'dist/css/nanogallery.woff.min.css': 'css/nanogallery.woff.css',
'dist/css/themes/clean/nanogallery_clean.min.css': 'css/themes/clean/nanogallery_clean.css',
'dist/css/themes/clean/nanogallery_clean.woff.min.css': 'css/themes/clean/nanogallery_clean.woff.css',
'dist/css/themes/light/nanogallery_light.min.css': 'css/themes/light/nanogallery_light.css',
'dist/css/themes/light/nanogallery_light.woff.min.css': 'css/themes/light/nanogallery_light.woff.css'
}
}
},
uglify: {
options: {
//banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
preserveComments: 'some'
},
build: {
src: 'jquery.<%= pkg.name %>.js',
dest: 'dist/jquery.<%= pkg.name %>.min.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default task(s).
grunt.registerTask('default', ['uglify','cssmin']);
};