closure-rab
v0.0.1
Published
looks in rally-app-builder config file to search for closure dependencies
Downloads
2
Readme
This is if you want to use closure library with the rally-app-builder.
REQUIREMENTS: - currently only works with windows environment variables. e.g.: %PATH% - you must git clone the google closure library somewhere in your filesystem and then set %CLOSURE_LIBRARY% to the root of the installed directory. - you must add %CLOSURE_LIBRARY%/closure/bin/build in your %PATH%
INSTALL: npm install -g closure-rab
RUNNING: go to root of project directory (where config.json is located), and type in closure-rab
Right now all closure-rab does is calculate the dependencies to add to your config.json file by searching through all your source. When it completes, it will spit out a bunch files. You then just add the closure files to your config.json. MAKE SURE TO change the paths to start with %CLOSURE_LIBRARY%. Then you can run rally-app-builder build and it will include the closure dependencies.
Example config.json after running closure-rab and then copying paths into cfg:
{ "name": "ExampleApp", "className": "Example App", "server": "https://rally1.rallydev.com", "sdk": "2.0", "javascript": [ "%CLOSURE_LIBRARY%/closure/goog/base.js", "%CLOSURE_LIBRARY%/closure/goog/dom/nodetype.js", "%CLOSURE_LIBRARY%/closure/goog/debug/error.js", "%CLOSURE_LIBRARY%/closure/goog/string/string.js", "%CLOSURE_LIBRARY%/closure/goog/asserts/asserts.js", "%CLOSURE_LIBRARY%/closure/goog/array/array.js", "%CLOSURE_LIBRARY%/closure/goog/math/math.js", "%CLOSURE_LIBRARY%/closure/goog/math/matrix.js", "file-that-uses-closure-Matrix.js", "App.js" ], "css": [ "../lib/css/base.css", "app.css" ] }