├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── benchmark └── index.html ├── dist ├── bundle.js └── bundle.js.map ├── esdoc.json ├── examples ├── simple-amd-module │ ├── List.js │ ├── ListModel.js │ ├── ListView.js │ ├── README.md │ ├── config.js │ ├── esl.js │ ├── index.html │ ├── main.js │ └── package.json └── simple-es6-module │ ├── README.md │ ├── dist │ ├── bundle.js │ └── bundle.js.map │ ├── index.html │ ├── list.json │ ├── package.json │ ├── src │ ├── List.js │ ├── Loader.js │ ├── ThirdLoader.js │ ├── config.js │ ├── main.js │ └── third │ │ └── sdk.js │ └── webpack.config.js ├── karma.conf.js ├── package.json ├── scripts └── build.js ├── src ├── CircularError.js ├── DependencyTree.js ├── Injector.js ├── IoC.js ├── Loader.js ├── main.js ├── meta.js ├── plugins │ ├── AopPlugin.js │ ├── AutoPlugin.js │ ├── BasePlugin.js │ ├── ImportPlugin.js │ ├── ListPlugin.js │ ├── MapPlugin.js │ └── PropertyPlugin.js └── util.js └── test ├── assets ├── A.js ├── AutoInject.js ├── AutoInject1.js ├── B.js ├── C.js ├── D.js ├── E.js ├── F.js ├── MyFactory.js ├── MyUtil.js ├── aop │ ├── Fixture.js │ └── FixtureAspect.js ├── config.js ├── esl.js ├── import │ ├── A.js │ ├── Nest.js │ └── config.js ├── list │ ├── A.js │ ├── config.js │ └── list.js └── map │ ├── A.js │ └── config.js ├── spec ├── aop.js ├── auto.js ├── circular.js ├── import.js ├── integration.js ├── list.js └── map.js └── test-main.js /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .DS_Store 3 | node_modules 4 | test/coverage -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | demo/ 2 | scripts/ 3 | test/ 4 | .travis.yml 5 | karma.conf.js 6 | 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/benchmark/index.html -------------------------------------------------------------------------------- /dist/bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/dist/bundle.js -------------------------------------------------------------------------------- /dist/bundle.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/dist/bundle.js.map -------------------------------------------------------------------------------- /esdoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/esdoc.json -------------------------------------------------------------------------------- /examples/simple-amd-module/List.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/List.js -------------------------------------------------------------------------------- /examples/simple-amd-module/ListModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/ListModel.js -------------------------------------------------------------------------------- /examples/simple-amd-module/ListView.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/ListView.js -------------------------------------------------------------------------------- /examples/simple-amd-module/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/README.md -------------------------------------------------------------------------------- /examples/simple-amd-module/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/config.js -------------------------------------------------------------------------------- /examples/simple-amd-module/esl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/esl.js -------------------------------------------------------------------------------- /examples/simple-amd-module/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/index.html -------------------------------------------------------------------------------- /examples/simple-amd-module/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/main.js -------------------------------------------------------------------------------- /examples/simple-amd-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-amd-module/package.json -------------------------------------------------------------------------------- /examples/simple-es6-module/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/README.md -------------------------------------------------------------------------------- /examples/simple-es6-module/dist/bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/dist/bundle.js -------------------------------------------------------------------------------- /examples/simple-es6-module/dist/bundle.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/dist/bundle.js.map -------------------------------------------------------------------------------- /examples/simple-es6-module/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/index.html -------------------------------------------------------------------------------- /examples/simple-es6-module/list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/list.json -------------------------------------------------------------------------------- /examples/simple-es6-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/package.json -------------------------------------------------------------------------------- /examples/simple-es6-module/src/List.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/List.js -------------------------------------------------------------------------------- /examples/simple-es6-module/src/Loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/Loader.js -------------------------------------------------------------------------------- /examples/simple-es6-module/src/ThirdLoader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/ThirdLoader.js -------------------------------------------------------------------------------- /examples/simple-es6-module/src/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/config.js -------------------------------------------------------------------------------- /examples/simple-es6-module/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/main.js -------------------------------------------------------------------------------- /examples/simple-es6-module/src/third/sdk.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/src/third/sdk.js -------------------------------------------------------------------------------- /examples/simple-es6-module/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/examples/simple-es6-module/webpack.config.js -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/karma.conf.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/package.json -------------------------------------------------------------------------------- /scripts/build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/scripts/build.js -------------------------------------------------------------------------------- /src/CircularError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/CircularError.js -------------------------------------------------------------------------------- /src/DependencyTree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/DependencyTree.js -------------------------------------------------------------------------------- /src/Injector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/Injector.js -------------------------------------------------------------------------------- /src/IoC.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/IoC.js -------------------------------------------------------------------------------- /src/Loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/Loader.js -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/main.js -------------------------------------------------------------------------------- /src/meta.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/meta.js -------------------------------------------------------------------------------- /src/plugins/AopPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/AopPlugin.js -------------------------------------------------------------------------------- /src/plugins/AutoPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/AutoPlugin.js -------------------------------------------------------------------------------- /src/plugins/BasePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/BasePlugin.js -------------------------------------------------------------------------------- /src/plugins/ImportPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/ImportPlugin.js -------------------------------------------------------------------------------- /src/plugins/ListPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/ListPlugin.js -------------------------------------------------------------------------------- /src/plugins/MapPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/MapPlugin.js -------------------------------------------------------------------------------- /src/plugins/PropertyPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/plugins/PropertyPlugin.js -------------------------------------------------------------------------------- /src/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/src/util.js -------------------------------------------------------------------------------- /test/assets/A.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/A.js -------------------------------------------------------------------------------- /test/assets/AutoInject.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/AutoInject.js -------------------------------------------------------------------------------- /test/assets/AutoInject1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/AutoInject1.js -------------------------------------------------------------------------------- /test/assets/B.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/B.js -------------------------------------------------------------------------------- /test/assets/C.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/C.js -------------------------------------------------------------------------------- /test/assets/D.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/D.js -------------------------------------------------------------------------------- /test/assets/E.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/E.js -------------------------------------------------------------------------------- /test/assets/F.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/F.js -------------------------------------------------------------------------------- /test/assets/MyFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/MyFactory.js -------------------------------------------------------------------------------- /test/assets/MyUtil.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/MyUtil.js -------------------------------------------------------------------------------- /test/assets/aop/Fixture.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/aop/Fixture.js -------------------------------------------------------------------------------- /test/assets/aop/FixtureAspect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/aop/FixtureAspect.js -------------------------------------------------------------------------------- /test/assets/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/config.js -------------------------------------------------------------------------------- /test/assets/esl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/esl.js -------------------------------------------------------------------------------- /test/assets/import/A.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/import/A.js -------------------------------------------------------------------------------- /test/assets/import/Nest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/import/Nest.js -------------------------------------------------------------------------------- /test/assets/import/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/import/config.js -------------------------------------------------------------------------------- /test/assets/list/A.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/list/A.js -------------------------------------------------------------------------------- /test/assets/list/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/list/config.js -------------------------------------------------------------------------------- /test/assets/list/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/list/list.js -------------------------------------------------------------------------------- /test/assets/map/A.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/map/A.js -------------------------------------------------------------------------------- /test/assets/map/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/assets/map/config.js -------------------------------------------------------------------------------- /test/spec/aop.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/aop.js -------------------------------------------------------------------------------- /test/spec/auto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/auto.js -------------------------------------------------------------------------------- /test/spec/circular.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/circular.js -------------------------------------------------------------------------------- /test/spec/import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/import.js -------------------------------------------------------------------------------- /test/spec/integration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/integration.js -------------------------------------------------------------------------------- /test/spec/list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/list.js -------------------------------------------------------------------------------- /test/spec/map.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/spec/map.js -------------------------------------------------------------------------------- /test/test-main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ecomfe/uioc/HEAD/test/test-main.js --------------------------------------------------------------------------------