This is a fork of the Ekito/koin project that targets JavaScript.
KoinJS is available from jcenter, make sure you have it in your repositories list:
repositories {
jcenter()
}Then just add the dependency:
dependencies {
compile "co.zsmb:koinjs:0.9.1"
}Please refer to the original library's readme, wiki / website for documentation.
Tests have been ported from the original library, and they use Kotlin-test and mocha. You can run them with the gradlew test command.
Alternatively, you can in IntelliJ if you have the NodeJS plugin installed:
- Create a new Mocha run configuration
- Use
...\KoinJS\node_modules\mochaas the Mocha package - Set
...\KoinJS\build\classes\testas the Test directory, make sure to include subdirectories - Run tests by executing the run config