Investor web-site
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.storybook
e2e-tests
flow-typed
source
webpack
.babelrc
.editorconfig
.eslintrc
.flowconfig
.gitignore
.prettierignore
.prettierrc
LICENSE
browserslist
config.js
jest.config.js
jsconfig.json
package-lock.json
package.json
pom.xml
postcss.config.js
readme.md
theme.js
wdio.config.js
webpack.config.js

readme.md

Daonomic client

In order to develop and build this project you need Node.js ^8.9.0 and NPM ^5.5.1 installed.

Development

Start development server:

npm start
# or
PORT=8080 npm start

Build

Build project for production:

npm run build

Options

Build options are specified using environment variables:

  • DEBUG_ENABLED=true enables sourcemaps for debugging
  • ENVIRONMENT (production by default, may be staging or development) specifies in which environment the app will be used

Example usage:

DEBUG_ENABLED=true ENVIRONMENT=staging npm run build

i18n

All translations can be edited at ./source/i18n/translations.

Testing

Linters

npm run test:lint

Typecheck

npm run test:types

Unit

npm run test:unit

End-to-end

npm run test:e2e

Running a specific test sute

npm run test:e2e -- --suite happyPath

Test suites are defined in suites option of wdio.config.js.

Debugging

Run tests on local development server:

E2E_TEST=true npm start # start dev server in E2E mode
E2E_MODE=development npm run test:e2e

Run tests for production but with visible browser window (disable headless mode):

DEBUG_ENABLED=true npm run test:e2e

If you want to add a breakpoint, just add await browser.debug(); at the desired point of a test file.