Skip to content

Commit

Permalink
feat(#9): add component.json
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Aug 12, 2014
1 parent 02b0fc6 commit 9fb8175
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ It exploits functional programming common patterns such as lambda lifting, pure
#### Node.js

```bash
npm install injecty --save
npm install injecty
```

#### Browser

Via Bower package manager
Via [Bower](http://bower.io)
```bash
bower install injecty --save
bower install injecty
```

Via [Component](http://component.io)
```bash
component install injecty
```

Or loading the script remotely
Expand Down Expand Up @@ -159,7 +164,7 @@ console.log(time) // -> 1405170246959

Inject dependencies and return the partial function

```
```js
var time = injecty.inject(['Date', function (D) {
return new D().getTime()
}])
Expand Down Expand Up @@ -209,7 +214,7 @@ injecty.remove('Math').injectable('Math') // -> false

#### injecty.flush(name)

Flush all the container registered dependencies
Flush all the registered dependencies in the container

```js
injecty.flush().injectable('Math') // -> false
Expand All @@ -230,12 +235,12 @@ You should follow the Wisp language coding conventions

Only [node.js](http://nodejs.org) is required for development

Clone/fork this repository
Clone this repository
```
$ git clone https://github.com/h2non/injecty.git && cd injecty
```

Install package dependencies
Install dependencies
```
$ npm install
```
Expand All @@ -255,11 +260,6 @@ Browser sources bundle generation
$ make browser
```

Release a new version
```
$ make release
```

## License

[MIT](http://opensource.org/licenses/MIT) - Tomas Aparicio
Expand Down
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependency",
"injection",
"ioc",
"di",
"aop",
"dependency inversion",
"application composition",
Expand Down
25 changes: 25 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "injecty",
"version": "0.1.3",
"description": "Micro library for dependency injection and inversion of control containers in node and browsers",
"license": "MIT",
"author": "Tomas Aparicio",
"main": "./injecty.js",
"repository": "h2non/injecty",
"scripts": [
"injecty.js",
"injecty.min.js"
],
"license": "MIT",
"keywords": [
"dependency",
"injection",
"di",
"ioc",
"aop",
"dependency inversion",
"application composition",
"wisp",
"clojure"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dependency",
"injection",
"ioc",
"di",
"aop",
"dependency inversion",
"application composition",
Expand Down
3 changes: 3 additions & 0 deletions test/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"success": true
}

0 comments on commit 9fb8175

Please sign in to comment.