Create workflow for building single webpage products.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-webapps --save-dev
In your project's Gruntfile, add a section named
webapps to the data object passed into
This will setup various task for you to development of your single page web apps. The workflow requires you to have your main application in
app folder and client modifications in
To start development on local server on port 9000 just run
To build the project for deployment run
and then to test if build is correct run local server as in
Finally, to deploy run
grunt deploy: --client= --user=
You can skip client/user flags if defaults are good. By default staging environment is used so if you are all lazy(like me) run:
grunt deploy --client=
root value is used to determine the root directory from which all tasks are executed.
client will determine the default client to use when building the assets.
A string value that is used to do something else with whatever else.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.