Manage project with Grunt and Bower.
This commit is contained in:
16
grunt-config/bower.js
Normal file
16
grunt-config/bower.js
Normal file
@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
install: {
|
||||
options: {
|
||||
copy: false
|
||||
}
|
||||
},
|
||||
frontend: {
|
||||
dest: 'accountant/frontend/static/third-party',
|
||||
|
||||
options: {
|
||||
expand: true,
|
||||
stripAffix: true,
|
||||
keepExpandedHierarchy: false
|
||||
}
|
||||
}
|
||||
};
|
9
grunt-config/bower_concat.js
Normal file
9
grunt-config/bower_concat.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
main: {
|
||||
dest: 'accountant/frontend/static/build/js/vendor.js',
|
||||
cssDest: 'accountant/frontend/static/build/css/vendor.css',
|
||||
dependencies: {
|
||||
'autotype': 'jquery'
|
||||
}
|
||||
},
|
||||
};
|
5
grunt-config/clean.js
Normal file
5
grunt-config/clean.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
libs: [
|
||||
"accountant/frontend/static/build"
|
||||
]
|
||||
};
|
15
grunt-config/concat.js
Normal file
15
grunt-config/concat.js
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
options: {
|
||||
stripBanners: false,
|
||||
banner: '<%= banner %>\n',
|
||||
process: function(src, filepath) {
|
||||
// Add comments with original filename.
|
||||
return '// ### Begin: ' + filepath + ' ### //\n' + src +
|
||||
'// ### End: ' + filepath + ' ### //\n';
|
||||
}
|
||||
},
|
||||
frontend_js: {
|
||||
src: '<%= paths.frontend_js %>',
|
||||
dest: '<%= paths.frontend_build %>/js/app.js'
|
||||
}
|
||||
};
|
14
grunt-config/copy.js
Normal file
14
grunt-config/copy.js
Normal file
@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
"bootstrap-select.css.map": {
|
||||
src: 'bower_components/bootstrap-select/dist/css/bootstrap-select.css.map',
|
||||
dest: '<%= paths.frontend_build %>/css/bootstrap-select.css.map'
|
||||
},
|
||||
"fontawesome-webfont.woff": {
|
||||
src: 'bower_components/font-awesome/fonts/fontawesome-webfont.woff',
|
||||
dest: '<%= paths.frontend_build %>/fonts/fontawesome-webfont.woff'
|
||||
},
|
||||
"fontawesome-webfont.ttf": {
|
||||
src: 'bower_components/font-awesome/fonts/fontawesome-webfont.ttf',
|
||||
dest: '<%= paths.frontend_build %>/fonts/fontawesome-webfont.ttf'
|
||||
}
|
||||
};
|
9
grunt-config/jshint.js
Normal file
9
grunt-config/jshint.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
options: {
|
||||
reporter: require('jshint-stylish')
|
||||
},
|
||||
work: [
|
||||
'<%= paths.frontend_js %>/*.js',
|
||||
'Gruntfile.js'
|
||||
]
|
||||
};
|
5
grunt-config/shell.js
Normal file
5
grunt-config/shell.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
npm_install: {
|
||||
command: 'npm install'
|
||||
}
|
||||
};
|
6
grunt-config/watch.js
Normal file
6
grunt-config/watch.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
js: {
|
||||
files: '<%= paths.frontend_js %>',
|
||||
tasks: ['concat:frontend_js']
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user