Scaffold a Google Chrome packaged app with grunt-init
- Install
grunt-cli
andgrunt-init
latest versions. Ifgrunt
is already globally unstalled, uninstall it (npm uninstall -g grunt
). You only should havegrunt-cli
, which uses the version ofgrunt
specified in a project'spackage.json
. npm install -g grunt-init@0.2.0rc7
npm install -g grunt-cli
Once grunt-init is installed, place this template in your ~/.grunt-init/
directory. It's recommended that you use git to clone this template into that directory, as follows:
git clone git@github.com:bocoup/grunt-init-chromeapp.git ~/.grunt-init/chromeapp
(Windows users, see the documentation for the correct destination directory path)
At the command-line, cd into an empty directory, run this command and follow the prompts.
grunt-init chromeapp
Once the project has been scaffolded, you need to install the dependencies
npm install
The default grunt
task lints project JavaScript with JSHint.
Automatically run specified tasks when files change