0.0.8 • Published 5 years ago
delivered4all v0.0.8
Getting Started
Project Bitbucket's Repository
Environment
At least Node v10 is required. We recommend using a version manager like nodenv or NVM.
If you are using NVM and ZSH as a CLI, you can enable automatic switch of the nvm version based on the .nvmrc file in the folder. To do it edit the zshrc file:
nano ~/.zshrcand adding at the end of the file:
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
elif [[ $(nvm version) != $(nvm version default) ]]; then
echo "Reverting to nvm default version"
nvm use default
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrcInstall and run
# Install Node dependencies
$ npm install
# Run the app
$ npm run startRun Tests
# Run tests once
$ npm run test:once
# Watch tests
$npm run test:watch
# Run tests once with coverage
$npm run test:once:coverageProduction build
$ npm run build:prodBeta build
$ npm run build:betastage build
$ npm run build:stageDevelopment Workflow
- Branching Model
- Commit forrmat should follow these rules
Tip and tricks
Avoid the following TSLint error
state is declared but its value is never readSolution: Prefix the unused parameter with an underscore (_state)