tradie

4.0.3 • Public • Published

tradie

npm Commitizen friendly

A CLI for building web apps. Like create-react-app but configurable via templates.

The documentation for Tradie is still a little rough. Please ask questions on Github and raise PRs to fix any bugs or missing documentation!

Usage

tradie requires a template in order to know how to build, serve and test your app. Choose a template and follow its documentation to set up up your project.

Commands

tradie clean

Remove all compiled artifacts and temporary files.

tradie build

Bundle source assets into compiled artifacts.

  • --watch - watch all source files and re-compile when they change
  • --optimize - create an optimized build
tradie serve

Bundle and serve compiled artifacts with HMR.

tradie test

Run tests.

  • --watch - watch all test files and re-compile when they change
  • --coverage - collect and output test coverage

Debugging

tradie clears the screen on compilation and attempts to make Webpack messages more readable. In some instances this can make debugging more difficult. You can turn off this functionality by setting a value for the DEBUG environment variable.

For example:

#*nix
export DEBUG=1
tradie serve

#win
set DEBUG=1
tradie serve

Many of tradie's dependencies use the debug package. You can vary the value of the DEBUG environment variable to show more or less information.

For example:

#*nix
export DEBUG="tradie*"
tradie serve

#win
set DEBUG="tradie*"
tradie serve

Templates

Templates tell tradie how to build, serve and test your app. They contain configuration for Webpack and Jest.

Choose from one of the existing templates below or build your own.

Package Sidebar

Install

npm i tradie

Weekly Downloads

4

Version

4.0.3

License

MIT

Last publish

Collaborators

  • jameslnewell