I have inherited a Django site from another person and I'm trying to use Grunt.js alongside it. My app directory structure looks like:
app_name
 |__ pages
 |__ settings
 |__ static
     |__ config.rb
     |__ css
     |__ Gruntfile.js
     |__ img
     |__ js
     |__ node_modules
     |__ package.json
     |__ sass
 |__ templates
 |__ etc
Should I be using Grunt within the static directory? - i.e. Is it best practice to use Grunt in the root of the folder (in this case alongside app_name)? 
When I upload my css/scripts to production, I don't want the Gruntfile.js to be visible.
You can symlink Gruntfile and node_modules from upper folders to current, this way grunt build will works well and you will not store cfg file in static folder. Other way is to exclude it with your packaging system like deb or rpm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With