-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
60 lines (56 loc) · 2.02 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
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*Minified JavaScript of Pinceladas da Web */\n'
},
my_target: {
files: {
'javascript/all.min.js': ['src/javascript/social.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: Comunidade PW \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/reset.css',
'src/grid.css',
'src/style.css',
'src/menu.css',
'src/advertising.css',
'src/prettify.css'
]
}
}
},
watch: {
css: {
files: 'src/*.css',
tasks: ['cssmin'],
options: {
livereload: true,
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['uglify', 'cssmin']);
};