add convenience run script to grunt and gulp configurations

This commit is contained in:
Eric Groom 2018-03-05 15:54:59 -08:00
parent c975d0a2eb
commit 803616879a
2 changed files with 9 additions and 1 deletions

View File

@ -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::
$ 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.

View File

@ -52,5 +52,13 @@
},
"engines": {
"node": ">=0.8.0"
},
"scripts": {
{% if cookiecutter.js_task_runner == 'Grunt' %}
"dev": "grunt serve"
{% elif cookiecutter.js_task_runner == 'Gulp' %}
"dev": "gulp"
{% endif %}
}
}