This repository defines the specification which should be followed when creating AMW modules.
- Create a Git repository (only GitHub is supported for now). Standard naming
conventions are
name-module
for the repository name where name is your module name (kebab-cased). - Run
npm install @allmywallets/specification --save
to configure your module. - Edit the
module.js
file which has been created in your repository root and start developing your module. See explanations about the methods in module.js file. - Run
npm start
to build your module. You should commit and push thedist
folder along with your code.
You should not install Vue as a dependency in your NPM dependencies, it is bundled with @allmywallets/specification
.
You can directly load it using import Vue from 'vue'
statement. You can add any dependency you need.
You should not edit the configuration of the user and should always use Vuex to dispatch modifications, so they are reactive. See the statistics module for an example.