forked from ksato9700/pubserver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
42 lines (42 loc) · 1 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) {
grunt.initConfig({
coffee: {
glob_to_multiple: {
expand: true,
flatten: true,
cwd: './',
src: ['src/*.coffee', 'scraper/*.coffee'],
dest: 'lib/',
ext: '.js'
}},
uglify: {
my_target: {
files: {
'public/js/aozora.min.js': [
'src/js/jquery.columns.js',
'src/js/mustache.js',
'src/js/aozora.js'
]
}
}},
sass: {
dist: {
options: {
style: 'compressed',
sourcemap: 'none'
},
files: {
'public/css/aozora.css': 'src/scss/aozora.scss'
}
}},
watch: {
files: ["src/js/*.js"],
tasks: ['uglify']
}
});
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['coffee', 'uglify', 'sass']);
};