Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.53 KB

workingWithCode.md

File metadata and controls

50 lines (33 loc) · 1.53 KB

Working with the volo code

Contributing

Pull requests/code that is more than a simple one or two line change will not be accepted unless you have signed a Dojo Foundation CLA.

More information on why there is a CLA and the code style to use, see the RequireJS Contributing page since that info generally applies to volo too.

Developing

npm uninstall -g volo
git clone git://github.com/volojs/volo.git
cd volo
npm link volo

Now any development changes you do should show up in your next volo command. You can run volo as you normally would as a global command.

Switch branches to try out different versions of volo.

Debugging

Make sure to npm install node-inspector then you can do this:

node --debug-brk `which volo` [command]

That will drop you into the debugger. It is best to put a debugger statement in the code where you want to stop execution, otherwise it will be time consuming to step through the individual statements and modules.

If you are on Windows using a git-bash shell, this command may work better:

node --debug-brk "`dirname "\`which volo\`"`/node_modules/volo/bin/volo"

Running Tests

cd tests
./all.js

Runs the tests. You will need a network connection with access to GitHub to run the tests.