mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-08 14:04:52 +03:00
add convenience run script to grunt and gulp configurations
This commit is contained in:
parent
c975d0a2eb
commit
803616879a
|
@ -15,7 +15,7 @@ If you don't already have it, install `compass` (doesn't hurt if you run this co
|
||||||
|
|
||||||
Now you just need::
|
Now you just need::
|
||||||
|
|
||||||
$ grunt serve
|
$ npm run dev
|
||||||
|
|
||||||
The base app will now run as it would with the usual ``manage.py runserver`` but with live reloading and Sass compilation enabled.
|
The base app will now run as it would with the usual ``manage.py runserver`` but with live reloading and Sass compilation enabled.
|
||||||
|
|
||||||
|
|
|
@ -52,5 +52,13 @@
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8.0"
|
"node": ">=0.8.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
{% if cookiecutter.js_task_runner == 'Grunt' %}
|
||||||
|
"dev": "grunt serve"
|
||||||
|
{% elif cookiecutter.js_task_runner == 'Gulp' %}
|
||||||
|
"dev": "gulp"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user