Skip to content

Commit

Permalink
Rework build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Smith authored and Kevin Smith committed Feb 9, 2018
1 parent 9192592 commit 2f25bf5
Show file tree
Hide file tree
Showing 28 changed files with 2,343 additions and 213 deletions.
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": [
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
"transform-es2015-block-scoping",
"transform-es2015-classes",
"transform-es2015-computed-properties",
"transform-es2015-destructuring",
"transform-es2015-duplicate-keys",
"transform-es2015-for-of",
"transform-es2015-literals",
"transform-es2015-modules-commonjs",
"transform-es2015-parameters",
"transform-es2015-shorthand-properties",
"transform-es2015-spread",
"transform-es2015-template-literals"
]
}
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
},

"parserOptions": {
"sourceType": "script"
"sourceType": "module"
},

"rules": {
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
_*
node_modules
zen-observable.js
lib
23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,8 @@ An implementation of Observables for Javascript. Requires Promises or a Promise
npm install zen-observable
```

## Download

https://unpkg.com/zen-observable/zen-observable.js

## Usage

Node:

```js
var Observable = require('zen-observable');

Observable.of(1, 2, 3).subscribe(x => console.log(x));
```

Browser:

```html
<script src='zen-observable.js'></script>
<script>
Observable.of(1, 2, 3).subscribe(x => console.log(x));
</script>
```

Modules:

```js
import Observable from 'zen-observable';

Expand Down
1 change: 1 addition & 0 deletions extras.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./lib/extras.js');
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./zen-observable.js");
module.exports = require('./lib/Observable.js');
Loading

0 comments on commit 2f25bf5

Please sign in to comment.