Improve Grunt integration. Wiredep.
This commit is contained in:
6
grunt-config/bgShell.js
Normal file
6
grunt-config/bgShell.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
runserver: {
|
||||
cmd: 'python -m manage runserver',
|
||||
bg: true
|
||||
}
|
||||
};
|
12
grunt-config/jscs.js
Normal file
12
grunt-config/jscs.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
options: {
|
||||
config: '.jscsrc',
|
||||
verbose: true
|
||||
},
|
||||
frontend_js: [
|
||||
'<%= paths.frontend_js %>'
|
||||
],
|
||||
toolchain: [
|
||||
'Gruntfile.js'
|
||||
]
|
||||
};
|
@ -1,5 +1,8 @@
|
||||
module.exports = {
|
||||
npm_install: {
|
||||
command: 'npm install'
|
||||
},
|
||||
bower_install: {
|
||||
command: 'bower install'
|
||||
}
|
||||
};
|
||||
|
@ -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
6
grunt-config/wiredep.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
app: {
|
||||
src: ['accountant/frontend/templates/layout.html'],
|
||||
ignorePath: /\.\.\//
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user