Development environment - GeoSmartCity-CIP/gsc-client GitHub Wiki
The following should describe the complete setup you will need for developing the GSC javascript framework.
Installing and configuring Git
Download and install GIT
After installation, a few git settings must be configured correctly.
# This is very important!
git config --global push.default simple
# This is included in all your commits
git config --global user.name "Your Name"
git config --global user.email [email protected]
You can see all configs with git config --list
- Install a proper diff tool, kdiff is recommended on Window (see http://davesquared.net/2010/03/easier-way-to-set-up-diff-and-merge.html)
Install and setup your favorite editor
Sublime is recommended, but any editor that support our coding style will do.
Configure your client to use two spaces for indentation - NO tabulators!
Install node.js
Node.js is supported on all relevant platform. See https://nodejs.org/en/.
Install and configure grunt
Clone the gsc-client repository. Go to your local file folder where you have the cloned files (in windows, open a command prompt and iterate to the main folder). Write the following commands:
npm update -g npm
npm install -g grunt
npm install -g grunt-cli
npm install grunt-contrib-concat --save-dev
npm install grunt-contrib-uglify --save-dev
npm install grunt-contrib-nodeunit --save-dev
npm install grunt-contrib-jshint --save-dev
npm install grunt-jscs --save-dev
npm install grunt-contrib-watch --save-dev
npm install grunt-jsdoc --save-dev