Hi! I’m really excited that you are interested in contributing to Vue.js. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
dev and merge back against dev.src folder and DO NOT checkin dist in the commits.Break long ternary conditionals:
var a = superLongConditionalStatement
? 'yep'
: 'nope'
You will need Node, Grunt, PhantomJS and CasperJS.
# in case you don’t already it:
# npm install -g grunt-cli
$ npm install
To watch and auto-build dist/vue.js during development:
$ grunt watch
To lint:
grunt jshint
To build:
$ grunt build
To test:
# if you don’t have these yet:
# npm install -g phantomjs casperjs
$ grunt test
The unit tests are written with Mocha + Chai and run with Karma. The functional tests are written and run with CasperJS.
If you are not using a Mac
You can modify the Gruntfile to only run Karma tests in browsers that are available on your system. Just make sure don’t check in the Gruntfile for the commit.