Skip to content

Commit

Permalink
Merge pull request #7 from cesarenaldi/babeljs
Browse files Browse the repository at this point in the history
Babeljs
  • Loading branch information
cesarenaldi committed Jun 7, 2015
2 parents 1ec8df4 + 4a771a2 commit 3d40970
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 4,346 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- 0.12
- 0.11
- 0.10
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
[![Build Status](https://travis-ci.org/cesarenaldi/iniettore.svg?branch=master)](https://travis-ci.org/cesarenaldi/iniettore)
[![GitHub version](https://badge.fury.io/gh/cesarenaldi%2Finiettore.svg)](http://badge.fury.io/gh/cesarenaldi%2Finiettore)
[![NPM dependencies](https://david-dm.org/cesarenaldi/iniettore.svg)](https://david-dm.org/cesarenaldi/iniettore)
[![Coverage Status](https://img.shields.io/coveralls/cesarenaldi/iniettore.svg)](https://coveralls.io/r/cesarenaldi/iniettore?branch=master)
[![Coverage Status](https://img.shields.io/coveralls/cesarenaldi/iniettore.svg)](https://coveralls.io/r/cesarenaldi/iniettore?branch=babeljs)

## WARNING: APIs are going to significantly change in v2.0
## WARNING: API is significantly changed in v2.0
See documentation in tagged versions for previous usage.

## TODO
Expand Down Expand Up @@ -122,9 +122,9 @@ var childContext = rootContext.createChild(function (map) {

var question = childContext.get('question')

console.log(question)
console.log(question)
/*
{
{
question: 'What is the Answer to the Ultimate Question of Life, the Universe, and Everything?',
answer: 42
}
Expand Down Expand Up @@ -315,7 +315,7 @@ var rootContext = iniettore.create(function (map) {
map('bar').to(42).as(VALUE)

// NOTE: baz is not registered here
map('foo').to(fooProvider).as(PROVIDER).injecting('bar', 'baz')
map('foo').to(fooProvider).as(PROVIDER).injecting('bar', 'baz')
})

var transientDependencies = {
Expand Down Expand Up @@ -503,7 +503,7 @@ class Bar {
}

function fooProvider(bar) {
return {
return {
bar,
method: function () {}
}
Expand All @@ -523,8 +523,8 @@ console.log(foo1.bar === foo2.bar) // true
// assuming that we don't need foo anymore
// we have to release it as many times as it as been acquired
rootContext.release('foo')
// also bar gets released
rootContext.release('foo')
// now also bar gets released
rootContext.release('foo')

// when requesting foo again we receive
// a new instance of it and a new instance of bar as well
Expand Down
10 changes: 4 additions & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function(config) {

basePath: '.',

frameworks: ['mocha', 'chai', 'sinon', 'sinon-chai', 'es5-shim'],
frameworks: [ 'mocha', 'chai', 'sinon', 'sinon-chai', 'es5-shim' ],

exclude: [],

Expand All @@ -14,11 +14,9 @@ module.exports = function(config) {
watch: true
},

reporters: ['spec', 'coverage'],
reporters: [ 'spec', 'coverage' ],

coverageReporter: {
type: 'lcov'
},
coverageReporter: { type: 'lcovonly' },

// web server port
port: 9876,
Expand All @@ -29,7 +27,7 @@ module.exports = function(config) {

autoWatch: false,

browsers: ['PhantomJS'],
browsers: [ 'PhantomJS' ],

singleRun: true,
})
Expand Down
Loading

0 comments on commit 3d40970

Please sign in to comment.