mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 19:20:15 +03:00
adding bower and grunt-bower task for collection of static files
This commit is contained in:
parent
c68b71098f
commit
579c030f85
|
@ -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: {
|
||||
|
|
22
{{cookiecutter.repo_name}}/bower.json
Normal file
22
{{cookiecutter.repo_name}}/bower.json
Normal 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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user