You need to install Node.js and then the development tools. Node.js comes with a package manager called npm for installing NodeJS applications and libraries.
-
Install node.js (requires node.js version >= 0.8.4)
-
Install Grunt-CLI as global npm modules:
npm install -g grunt-cli
-
Install dependencies
npm install
-
Start application
npm start
Grunt development tasks:
protractor
run integration tests (E2E scenarios)karma:unit
run the unit tests once (specifications)karma:watch
monitor sources and run unit tests on every file changewatch:build
monitor sources and build the app on every file changerelease
build the application, run unit and integration tests
While development, you then may have three terminals:
npm start
grunt karma:watch
grunt watch:build
The only none optimal thing is that a change triggers a unit test run and a build that triggers a change that also triggers a test run due to a change.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.