Skip to content

Commit

Permalink
Update deps, update tooling
Browse files Browse the repository at this point in the history
Also fixes #41
  • Loading branch information
Michael Weibel committed Jun 22, 2018
1 parent b82b697 commit d7c7c92
Show file tree
Hide file tree
Showing 21 changed files with 9,904 additions and 61 deletions.
10 changes: 9 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"presets": ["es2015"],
"presets": [
["env", {
"targets": {
"browsers": [">0.1%", "not op_mini all"],
"node": "current"
},
"useBuiltIns": true
}]
],
"plugins": [
"transform-runtime",
"transform-object-assign"
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- '7'
- '6'
- '8'
- '10'
sudo: false
script:
- npm run test
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

JavaScript client library for [rokka](https://rokka.io/).

rokka.js runs on node as well as [within the supported browsers](http://browserl.ist/?q=%3E0.1%25%2C+not+op_mini+all).
To use in a browser, either use a script tag using [https://unpkg.com/rokka/index.js](https://unpkg.com/rokka/index.js) or import it using the ES6 module syntax:
```js
import rokka from 'rokka'
```

## Install

```bash
Expand All @@ -11,7 +17,7 @@ $ npm install rokka babel-runtime --save
## Usage

```js
var rokka = require('rokka')({
const rokka = require('rokka')({
apiKey: 'apikey'
});

Expand All @@ -33,7 +39,7 @@ rokka.sourceimages.list('myorg')
Initializing the rokka client.

```js
var rokka = require('rokka')({
const rokka = require('rokka')({
apiKey: 'apikey', // required for certain operations
apiHost: '<url>', // default: https://api.rokka.io
apiVersion: <number>, // default: 1
Expand Down
2 changes: 1 addition & 1 deletion docs/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ markdox.process(sources, options, function () {

readmeStr = readmeStr
.replace(/(<!-- DOCS -->)(?:\r|\n|.)+(<!-- ENDDOCS -->)/gm,
'$1' + docsStr + '$2')
'$1' + docsStr + '$2')

fs.writeFileSync(readme, readmeStr)
fs.unlinkSync(tmpFile)
Expand Down
1 change: 0 additions & 1 deletion index.js

This file was deleted.

0 comments on commit d7c7c92

Please sign in to comment.