diff --git a/.travis.yml b/.travis.yml index 589efde750..91c5777bea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,8 @@ node_js: - 0.12 - 0.11 +before_script: + - typings install + after_success: - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 6138ca1e13..804355976a 100644 --- a/README.md +++ b/README.md @@ -6,24 +6,45 @@ [![Dependency Status](https://david-dm.org/pleerock/class-validator.svg)](https://david-dm.org/pleerock/class-validator) [![devDependency Status](https://david-dm.org/pleerock/class-validator/dev-status.svg)](https://david-dm.org/pleerock/class-validator#info=devDependencies) -Allows use of decorator and non-decorator based validation. Internally uses [validator.js][1] to perform validation. +Allows use of decorator and non-decorator based validation. +Internally uses [validator.js][1] to perform validation. +Class-validator works on both browser and node.js platforms. ## Installation -1. Install module: +Install module: - `npm install class-validator --save` +`npm install class-validator --save` -2. ES6 features are used, so you may want to install [es6-shim](https://github.com/paulmillr/es6-shim) too: +#### Old versions of node.js/browser - `npm install es6-shim --save` +ES6 features are used, if you are using old versions of node (or browser) you may want to install [es6-shim](https://github.com/paulmillr/es6-shim) too: - and use it somewhere in the global place of your app: +`npm install es6-shim --save` - * for nodejs: `require("es6-shim")` (or `import "es6-shim";`) in your app's entry point (for example in `app.ts`) - * for browser: `