adding bower and grunt-bower task for collection of static files

This commit is contained in:
Burhan Khalid 2014-08-06 14:28:32 +03:00
parent c68b71098f
commit 579c030f85
3 changed files with 40 additions and 1 deletions

View File

@ -75,6 +75,22 @@ module.exports = function (grunt) {
}
},
bower: {
dev: {
dest: '{{cookiecutter.project_name}}/static/',
js_dest: '{{cookiecutter.project_name}}/static/js/',
css_dest: '{{cookiecutter.project_name}}/static/css/',
eot_dest: '{{cookiecutter.project_name}}/static/fonts/',
svg_dest: '{{cookiecutter.project_name}}/static/fonts/',
ttf_dest: '{{cookiecutter.project_name}}/static/fonts/',
woff_dest: '{{cookiecutter.project_name}}/static/fonts/',
options: {
expand: true
}
}
},
// see: https://npmjs.org/package/grunt-bg-shell
bgShell: {
_defaults: {

View File

@ -0,0 +1,22 @@
{
"name": "{{cookiecutter.repo_name}}",
"version": "{{cookiecutter.version}}",
"authors": [
"{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
],
"description": "{{cookiecutter.repo_name}}",
"main": "{{cookiecutter.project_name}}/static/css/main.css",
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"{{cookiecutter.project_name}}/static/",
"test",
"tests"
],
"dependencies": {
"bootstrap": "~3.2.0"
}
}

View File

@ -9,7 +9,8 @@
"connect-livereload": "~0.3.2",
"grunt-contrib-compass": "~0.7.0",
"time-grunt": "~0.2.7",
"load-grunt-tasks": "~0.2.1"
"load-grunt-tasks": "~0.2.1",
"grunt-bower": "^0.13.4"
},
"engines": {
"node": ">=0.8.0"