Ubuntu Common YUI Module Library
Simple Usage
''' npm install online-services-common-js '''
Link YUI and the Online Services YUI module config in your HTML document: '''
<script src="node_modules/online-services-common-js/build/config.js"></script> <script> // the group name is 'os' YUI.GlobalConfig.groups.os.combine = false; YUI.GlobalConfig.groups.os.base = 'node_modules/build/'; </script>'''
Hacking
Install nodejs:
''' sudo apt-get update sudo apt-get install -y python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs '''
Install dev dependencies, either from within module in node_modules or within a online-services-common-js branch:
''' npm install bower install '''
(Bower is used to install YUI for testing purposes)
Available Grunt tasks ''' grunt build grunt test grunt run # will watch src/ dir and lint, build and test any changed module '''