Module to develop Electrum and its components.
npm install
All modules are installed in the node_modules
directory of electrum-dev
.
All other node_modules
directories are symlinks on this directory. Note
that electrum
and electrum-arc
are symlinks in the node_modules
directory.
npm start
It starts the watchers on electrum
and electrum-arc
in order to compile
the src/
directory in /lib
every time that a file is changed in src/
.
And it starts the webpack hot reload for electrum-starter-3
: whenever a
lib/
directory is changing in electrum
or electrum-arc
, the hot
reload is triggered.
Changes in electrum/src
, electrum-arc/src
or electrum-starter-3/src
trigger a full hot reload.
To add a dependency as a submodule:
- Import module with
git submodule add https://github.com/url-to-git-repository.git
- Edit
.scrc
and add the relative module path to the list ofmodules
; dependencies should be listed before their consumers (e.g.electrum
is needed byelectrum-arc
, so placeelectrum
beforeelectrum-arc
in the list). - Edit
start.js
to include the module. - Edit aliasing in
electrum-starter-3
filewebpack.config.js
, by adding an entry to theresolve
.alias
section, so that the module will be picked up properly by Webpack.