build: execute pub get
and dart analyzer
When chaining a `pubspec.yaml` we automatically run `pub get`. In `gulp build` we also run `dartanalyzer` for all files that have the pattern: `<module>/lib/<module>.dart` Closes #13 Closes #5 Closes #2
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import {Type} from 'facade/lang';
|
||||
import {Map, MapWrapper wraps Map} from 'facade/collection';
|
||||
|
||||
/// becouse we need to know when toValue was not set.
|
||||
/// (it could be that toValue is set to null or undefined in js)
|
||||
var _UNDEFINED = {}
|
||||
/// becouse we need to know when toValue was not set.
|
||||
/// (it could be that toValue is set to null or undefined in js)
|
||||
var _UNDEFINED = {}
|
||||
|
||||
export class Module {
|
||||
|
||||
@ -12,12 +12,12 @@ export class Module {
|
||||
this.bindings = new MapWrapper();
|
||||
}
|
||||
|
||||
bind(type:Type,
|
||||
{toValue=_UNDEFINED, toFactory, toImplementation, inject, toInstanceOf, withAnnotation}/*:
|
||||
bind(type:Type,
|
||||
{toValue/*=_UNDEFINED*/, toFactory, toImplementation, inject, toInstanceOf, withAnnotation}/*:
|
||||
{toFactory:Function, toImplementation: Type, inject: Array, toInstanceOf:Type}*/) {}
|
||||
|
||||
bindByKey(key:Key,
|
||||
{toValue=_UNDEFINED, toFactory, toImplementation, inject, toInstanceOf}/*:
|
||||
bindByKey(key:Key,
|
||||
{toValue/*=_UNDEFINED*/, toFactory, toImplementation, inject, toInstanceOf}/*:
|
||||
{toFactory:Function, toImplementation: Type, inject: Array, toInstanceOf:Type}*/) {}
|
||||
|
||||
install(module:Module) {}
|
||||
|
Reference in New Issue
Block a user