Skip to content

Commit

Permalink
Add NPM package to simplify usage (#1)
Browse files Browse the repository at this point in the history
* Add NPM package to simplify usage

Add a simple NPM package for usage.

* Add private

* Set private package and add gitignore
  • Loading branch information
yageek authored and staltz committed May 10, 2016
1 parent 19811b7 commit 9ac6057
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions npm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
11 changes: 11 additions & 0 deletions npm/ex1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var Rx = require('rx');


// Ex 1
var ex1 = Rx.Observable.of(1, 4, 9, 16, 25);

ex1.subscribe(function onNext(x){ console.log("Next:", x);})

// Ex 2


18 changes: 18 additions & 0 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "intro_exercices",
"version": "1.0.0",
"description": "First session exercices",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"rx"
],
"author": "Yannick Heinrich",
"license": "MIT",
"dependencies": {
"rx": "^4.1.0"
},
"private": true
}

0 comments on commit 9ac6057

Please sign in to comment.