-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
53 lines (51 loc) · 1.24 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
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
shower: {
index: {
title: 'Understanding Git',
src: 'src/index.md',
styles: 'styles/screen.css',
scripts: [
'node_modules/shower-core/shower.min.js'
]
}
},
watch: {
shower: {
files: 'src/*',
tasks: 'shower'
},
styles: {
files: 'styles/*.scss',
tasks: ['sass', 'autoprefixer', 'csso']
}
},
sass: {
compile: {
files: {
'styles/screen.css': 'styles/screen.scss'
}
}
},
autoprefixer: {
prefix: {
src: 'styles/screen.css'
}
},
csso: {
minify: {
files: {
'styles/screen.css' : 'styles/screen.css'
},
options: {
banner: '/**\n * Bright theme for Shower HTML presentation engine: github.com/shower/bright\n * Copyright © 2010–<%= grunt.template.today("yyyy") %> Vadim Makeev, pepelsbey.net\n * Licensed under MIT license: github.com/shower/shower/wiki/MIT-License\n */\n'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shower-markdown');
grunt.registerTask('default', ['sass', 'autoprefixer', 'shower', 'watch']);
//grunt.registerTask('default', ['sass', 'autoprefixer', 'csso', 'shower', 'watch']);
};