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.functionBreak long ternary conditionals like this:
var a = superLongConditionalStatement
? 'yep'
: 'nope'
You will need Node.js & Grunt.
# npm install -g grunt-cli
$ npm install
To watch and auto-build dist/vue.js during development:
$ npm run dev
To lint:
$ grunt jshint
To build:
$ grunt build
To test:
$ grunt test
The default task (by simply running grunt) will do the following: lint -> build -> unit tests -> e2e tests. It is required to have this pass successfully for a PR to be considered.
The unit tests are written with Jasmine and run with Karma. The e2e tests are written for and run with CasperJS.
Note that the unit tests will automatically be run in Chrome, Firefox and Safari. If you are not on a Mac, or don't have one of the browsers installed on your system, you can modify the karma config in gruntfile.js to only run Karma tests in browsers that are available on your system. Just make sure don’t check in the gruntfile changes for the commit.