This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
42 lines (39 loc) · 1.49 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
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*Minified JavaScript of wbruno */\n'
},
my_target: {
files: {
'javascript/all.min.js': ['src/javascript/prettify.js', 'src/javascript/all.js']
}
}
},
cssmin: {
with_banner: {
options: {
banner: '/* \n' +
'Theme Name: <%= pkg.name %> \n' +
'Theme URI: <%= pkg.homepage %>\n' +
'Description: <%= pkg.title %>\n' +
'Author: William Bruno \n' +
'Author URI: <%= pkg.repository.url %> \n' +
'Version: <%= pkg.version %> \n' +
'Tags: light, two-columns, left-sidebar, fluid-layout, sticky-post \n' +
'License: GNU General Public License v2 or later \n' +
'License URI: http://www.gnu.org/licenses/gpl-2.0.html \n' +
'*/'
},
files: {
'style.css': ['src/style.css', 'src/prettify.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['uglify', 'cssmin']);
};