Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.24 KB

CONTRIBUTING.md

File metadata and controls

37 lines (25 loc) · 1.24 KB

Build Setup

Grunt is used for building, including concatenating, minimizing, documenting, linting, and testing.

Bower is used for downloading and managing client-side needed js libraries (e.g. JQuery).

Install Grunt, Bower and their Dependencies

  1. Install Node.js and its package manager, NPM
  • wget -qO- https://deb.nodesource.com/setup | bash -
  • sudo apt-get install nodejs
  1. Install Grunt and Bower
  • sudo -H npm install -g grunt-cli bower
  1. Install other dependencies
  • sudo apt-get install libgif-dev
  1. For each gui, install their dependencies
  • roscd tue_mobile_ui/(FOLDER)
  • npm install
  • bower install

Build with Grunt

Before proceeding, please confirm you have installed the dependencies above.

To run the build tasks:

  1. roscd tue_mobile_ui/(FOLDER)/
  2. grunt build

grunt build will build the app in the build directory. It will also run the linter and test cases.

grunt serve will watch for any changes to any of the src/ files and automatically build the files. This is ideal for those developing as you should only have to run grunt serve once.

In robot-api (~/ros/kinetic/system/src/robot-api)

npm run watch_global