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-modulefor the repository name where name is your module name (kebab-cased). - Run
npm install @allmywallets/specification --saveto configure your module. - Edit the
module.jsfile which has been created in your repository root and start developing your module. See explanations about the methods in module.js file. - Run
npm startto build your module. You should commit and push thedistfolder 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.