jitsu-configurator-ui
v1.0.1-alpha.4055
Published
**Note**: DO NOT USE NPM!
Downloads
2
Readme
Available Scripts
Note: DO NOT USE NPM!
yarn install
- get all dependencies (run before any script)yarn start
- dev application (with hot reload) will be started on http://localhost:9876yarn build
- build prod app, see build/ folder for resultsyarn add (-D)
- install and add package (-D - optional, use to install devDependency)yarn stats
- create a production build that can be further picked by bundle analyzersyarn explore
- analyze the bundle usingsource-map-explorer
which is a recommended tool for CRAyarn bundle
- analyze the bundle usingwebpack-bundle-analyzer
which has better UI but may fail to represent tree-shaking; for more info, refer to this discussionyarn prettier:check
- check all *.ts|tsx files in src directory for complianceyarn prettier:write
- fix all mistakes in *.ts|tsx files in src directory
Application configuration
The app recognize following environment variables. Those marked with '*' must be provided
before building the app (or running it with yarn start
)
Note: for adding new environment varialbles please list them in _webpack.config.js
(look for webpack.DefinePlugin
) and in env.js (look for getClientEnvironment
)
Troubleshooting
rm -rf yarn.lock ./node_modules && yarn install
Initial development setup setup
ESLint
ESLint helps us to maintain the code style. Please, configure your IDE (or make sure you format code according the config in other way).
JetBrains IDE's (IDEA, WebStorm etc) config
There're two ways on how to configure IDEA
- Configure it to reformat code after saving the file each time:
- Import ESLint setting to internal IDEA formatter