vuex-module-configuration-composer
v1.0.0
Published
[](https://travis-ci.org/lyonlai/vuex-module-configuration-composer) [
const context = require.context('./modules', // search in the ./modules directory
true, // recursive search in any sub directory
/index\.js$/ // look for index.js file
)
export default new Vuex.Store(Object.assign({
// here is your module configuration,
// you can feed your root state, getters, actions, mutations in
}, generateVuexStoreModuleConfiguration()))
Maintaining this module.
Tests
There are unit tests and also integration tests covers this module. Integration test simply build a modules configuration, create a Vuex store with it then put in Vue component and verify the namespaced modules are actually working.
Tests are written using ava. To run the test, simply write yarn install then run yarn test
