The first time, install dependencies :
npm i
To start the application :
npm start
The application is accessible at this location : https://localhost:8083?isFromInfoEx=true
When code is changed, it's automatically built and the web page refresh by its own (thanks webpack dev server).
When running in dev, copy file /build/env-config.js.example to /build/env-config.js and modify accordingly for dev or prod.
Install the following vs-code extensions :
- "TSLint (deprecated)" extention
- "Prettier - Code formatter" extention (Author : Esben Petersen)
- "vscode-styled-components" extention (Author : Julien Poissonier)
Configure vscode
- Create or edit app/.vscode/settings.json
- Add the following content :
{
"tslint.autoFixOnSave": true,
"tslint.enable": true,
"tslint.configFile": "./build/tslint.json",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.detectIndentation": false
}
Publish new version to NPM
- If not logged to npm (use 1pass): npm login
- Update extension the version in package.json
- npm install
- rename /build/env-config.js to /build/_env-config.js
- to publish, npm run build or for windows: npm run build-win