Our application is still quite small and not complicated, but we will begin by setting up an automated process for packaging our application up for deployment.
We will use the Grunt JavaScript task runner to set up some automated tasks to package up our files for deployment. There's not a lot for us to do here, but you'll get a sense of what can be done and be able to explore the rich selection of Grunt plugins to further customize your automated tasks.
If you haven't already, install the grunt CLI using NPM:
$ npm install -g grunt-cli [email protected] /usr/local/lib/node_modules/grunt-cli |- [email protected] |- [email protected] ([email protected]) |_ [email protected] ([email protected], [email protected])
For Grunt to run correctly, you'll need two files in your project root directory. The first one is a package.json
file to declare dependencies. You already have one in your root directory. The next file you need is Gruntfile.js
, where you...