EquitySim's Simulation Platform
npm install simulation-platformnvm to manage node versions)``sh`
$ nvm use && npm i && npm start
This will install all defined module dependencies into a /node_modules folder and start the development server (localhost:9000 by default).
NOTE for npm linking of react-uikit you must first go to the react-uikit directory and:
`sh`
$ npm link ../simulation-platform/node_modules/react
otherwise you will not be able to run the development server without it telling you that there are multiple instances of React being used.
, staging, and qa environments.
To build a bundle, run one of the following commands:
`sh
Build a production bundle
$ npm run build:prodBuild a staging build
$ npm run build:devBuild a qa bundle
$ npm run build:qa
`This will inject the appropriate environment variables defined in the .env-cmdrc file, bundle the project dependencies, transpile the source code, and output the build into
/build.NOTE: You can visually analyze a bundle by adding the following flag to your build command
-a | --analyze.
`sh
$ npm run build:prod -- --analyze
`$3
To run unit tests for the project, run the following command:
`sh
$ npm test
`A task runner will scan the project for
test.js` files and execute the tests.