Skip to content

Commit

Permalink
ES7
Browse files Browse the repository at this point in the history
Tests
Simplified refresh
ES Imports
JSDoc
Loose ES6
Docs
Included mocks into package
Subscriptions upgrade
  • Loading branch information
kirill-konshin committed Nov 6, 2015
1 parent d418cf9 commit 6fb9325
Show file tree
Hide file tree
Showing 94 changed files with 14,454 additions and 11,597 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"stage": 0,
"loose": "all"
}
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
node_js:
- '0.12'
- '0.11'
- iojs
deploy:
provider: npm
email: [email protected]
api_key:
secure: wEPdEMw5ZYN1GvFJ50ySov+K8rDHC9w2QCqMKu202ipTU60G44/ktEP/PU5ZLN3BUCpvXeHMx+DbMhwb7S4RxdMP4CkMnju2vaIt94K7WRNHa7kcNgJFm3jUpkg1rkqqfVvcKykHeMKMMUaJNzQUm9nPSTtJex8s7tk3+SQ6bDmsQPmNt4c5r5ihIjxvkjuxgQLk48CRXT98EU9KsZf57Ri93whKbrGAJ9lo4Oq+2oFhXil8fDl3XdRyAZbLaDz5wHq4diDUkKvVnsDzDlW0rkCcYJMDrJUuUnuvD59MYlUv2QWXPzeuEe7m4eLk48AuoK+t9PqjlwLAlJdjU2ZtqaeGIY6KAWkfzpi3QlBPk0XXpUs5Jr6vlCQU8ed4xr+wAZIWQfuPx+v205JlScY3td7I2eZ5nOD8//NJ1RxVnitTm4x7vZnKku+56jCf9kHq/EB+ndMD0rSU5/pyhUYFxCmShdLNp1IV7qcwDud+SejQ3eWQ23eyf9n8e5d+QOvOCoCjENMfQVCt+oOPFGztBnd839VbYXvP1OSk2JpgQ2O1muxRCKVv+hid6d38lnMAXRJWcFIpdNy7bxpySebPIt8w3kxYNGrJm09CrCvBd0pjwNg+HagjT9olz9balAPSGpzZexg2F4C1UgoxSec0/aoKir+91MsqnkLc0E0Q8fE=
on:
tags: true
repo: ringcentral/ringcentral-js
34 changes: 12 additions & 22 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,24 @@ In the directory where a local copy of the SDK is placed:
$ npm install
```

## 3. Install Bower
## 3. Install Bower Dependencies

Bower is needed to run Karma tests.

```
$ npm install -g bower
```

## 4. Install Bower dependencies

```
$ bower install
$ npm run bower
```

# Building with GulpJS

Build schema:

```
┏━━━━━ webpack ━━━━┳━ sourcemap ━━┓
┃ ┃ ┃
clean ━╋━ webpack-bundle ━┛ ┣━ default
┃ ┃
┗━ tsc ━ wrap ━ jshint ━ version ━┛
┏━━━━━ webpack ━━━━┳━ version ━ uglify ━━┓
┃ ┃
clean ━╋━ webpack-bundle ━┛ ┣━ default
┗━ version ━┛
```

## Regular build
Expand All @@ -44,28 +38,24 @@ Build schema:
$ npm run build
```

## Watch
# Tests

```
$ npm run watch
$ npm test
```

or `watch-all` will include Webpack watchers.

***

# Tests

## Mocha (console)

```
$ npm test
$ npm run mocha
$ npm run mocha-compilers
```

## Karma (browser)

```
$ npm run karma [-- --no-single-run --auto-watch --log-level warn --browsers Chrome]
$ npm run karma-webpack [-- --no-single-run --auto-watch --log-level warn --browsers Chrome]
```

or use short-hands: `$ npm run karma-chrome` and `$ npm run karma-watch`.
Expand Down
Loading

0 comments on commit 6fb9325

Please sign in to comment.