Improve Grunt integration. Wiredep.

This commit is contained in:
Alexis Lahouze
2016-01-29 13:42:25 +01:00
parent a68f834006
commit aa4e2d9d6f
9 changed files with 88 additions and 12 deletions

6
grunt-config/bgShell.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
runserver: {
cmd: 'python -m manage runserver',
bg: true
}
};

12
grunt-config/jscs.js Normal file
View File

@ -0,0 +1,12 @@
module.exports = {
options: {
config: '.jscsrc',
verbose: true
},
frontend_js: [
'<%= paths.frontend_js %>'
],
toolchain: [
'Gruntfile.js'
]
};

View File

@ -1,5 +1,8 @@
module.exports = {
npm_install: {
command: 'npm install'
},
bower_install: {
command: 'bower install'
}
};

View File

@ -1,6 +1,13 @@
module.exports = {
bower: {
files: 'bower.json',
tasks: ['wiredep']
},
js: {
files: '<%= paths.frontend_js %>',
tasks: ['jshint:frontend_js', 'concat:frontend_js']
tasks: ['devjs']
},
gruntfile: {
files: ['Gruntfile.js']
}
};

6
grunt-config/wiredep.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
app: {
src: ['accountant/frontend/templates/layout.html'],
ignorePath: /\.\.\//
}
};