Daedalus - cryptocurrency wallet
$ npm install
run with one command:
$ npm run dev
Or run these two commands simultaneously in different console tabs.
$ npm run hot-server
$ npm run start-hot
Note: requires a node version >= 4 and an npm version >= 3. This project defaults to 6.x
Build and run daedalus-bridge using instructions in the repo
Symlink the npm package in the subfolder pos-haskell-prototype/daedalus
:
npm link
(inside the daedalus sub folder of the Cardano client)npm link daedalus-client-api
(inside this daedalus frontend app)
Run with CARDANO_API=true npm run dev
You can run the test suite in two different modes during development
(Currently you always need to run npm run dev
before that)
One-time run:
$ npm run test
Watch & Rerun on file changes:
$ npm run test-watch
This boilerplate out of the box is configured to use css-modules.
All .css
file extensions will use css-modules unless it has .global.css
.
If you need global styles, stylesheets with .global.css
will not go through the
css-modules loader. e.g. app.global.css
$ npm run package
To package apps for all platforms:
$ npm run package-all
To package apps with options:
$ npm run package -- --[option]
- --name, -n: Application name (default: ElectronReact)
- --version, -v: Electron version (default: latest version)
- --asar, -a: asar support (default: false)
- --icon, -i: Application icon
- --all: pack for all platforms
Use electron-packager
to pack your app with --all
options for darwin (osx), linux and win32 (windows) platform. After build, you will find them in release
folder. Otherwise, you will only find one for your os.
If you use any 3rd party libraries which can't or won't be built with webpack, you must list them in your webpack.config.base.js
๏ผ
externals: [
// put your node 3rd party libraries which can't be built with webpack here (mysql, mongodb, and so on..)
]
For a common example, to install Bootstrap, npm i --save bootstrap
and link them in the head of app.html
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css" />
<link rel="image/svg+xml" href="../node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.eot" />
...
Make sure to list bootstrap in externals in webpack.config.base.js
or the app won't include them in the package:
externals: ['bootstrap']