This repository is depracted by cloudify-ui-common.
- Install ruby (I used 1.8)
- gem install compass
- install node
npm -g install yo
(this installs grunt and bower as well).npm -g install generator-express-angular
- Create an empty project in github
- cd to that project
- run
yo express-angular
- I modified some "src" tags from "component/..." to "bower_component/..." - seems like a minor bug.
grunt server
- runs the server with "watch" capabilities (it reloads when you change the scss files).- IDEs should ignore the following folders
- dist
- .tmp
- .sass-cache
- node_modules
To add new angular items such as "directive" or "controller" etc.. You need to use yeoman generators. Since we used "https://npmjs.org/package/generator-express-angular" to generate this project you can freely use all supported generators for angular.
For example - a new directive should be made with
yo angular:directive myDirectiveName
This will create the directive file and a test file.
Thanks to stackoverflow's answer http://stackoverflow.com/a/13443026/1068746
You can easily remote debug node with the flag --debug-brk
.
Since Grunt is usually executed directly grunt args
- to debug it you need to do
node --debug-brk /full/path/to/grunt myTask
This does not go through a build process. When you add js-ui-infra in your project as bower dependency, it downloads the entire thing. That way, you can include only the resources you require.