0.0.8 • Published 4 years ago

delivered4all v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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 ~/.zshrc

and 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-nvmrc

Install and run

# Install Node dependencies
$ npm install

# Run the app
$ npm run start

Run Tests

# Run tests once
$ npm run test:once

# Watch tests
$npm run test:watch

# Run tests once with coverage
$npm run test:once:coverage

Production build

$ npm run build:prod

Beta build

$ npm run build:beta

stage build

$ npm run build:stage

Development Workflow

Tip and tricks

Avoid the following TSLint error

state is declared but its value is never read

Solution: Prefix the unused parameter with an underscore (_state)