-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
77 lines (72 loc) · 1.84 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = function(grunt) {
var browserifyHelper = require('./build/helpers/browserify.js')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'app/public/stylesheets/style.css' : 'app/public/stylesheets/**/*.scss'
}
}
},
bower_concat: {
all: {
dest: 'app/public/javascripts/bower.js',
// dependencies: {
// 'bootstrap': 'jquery'
// }
}
},
browserify: {
dist: {
files: browserifyHelper('index.js', [
{ path: 'bower.js' },
{ path: '**/*.js' },
{ path: '!index.js' }
])
}
},
cssmin: {
combine: {
files: {
'app/public/stylesheets/app.min.css': [
'app/public/components/**/bootstrap.min.css',
'app/public/stylesheets/**/*.scss',
'app/public/stylesheets/**/*.css'
]
}
}
},
watch: {
files: [
'app/public/javascripts/**/*.js',
'!app/public/javascripts/index.js',
'app/public/stylesheets/**/*.css',
'build/**/*.js',
'package.json'
],
css: {
files: 'app/public/stylesheets/**/*.scss',
tasks: ['sass']
},
tasks: ['default']
},
g: {
config: 'configs',
controller: 'controllers',
directive: 'directives',
factory: 'factories',
service: 'services',
provider: 'providers',
constant: 'constants',
value: 'values',
decorator: 'decorators'
}
});
// grunt.loadNpmTasks('grunt-contrib-sass');
// grunt.loadNpmTasks('grunt-contrib-watch');
// grunt.loadNpmTasks('grunt-bower-concat');
// https://github.com/sindresorhus/load-grunt-tasks
require('load-grunt-tasks')(grunt);
grunt.loadTasks('build/tasks');
}