Skip to content

Zero - v2.0.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 11 Feb 15:14
· 30 commits to master since this release

Solo! (Zero v2)

This update forks Zero from kcd-scripts to provide finer grain control over the build process, especially for Babel.

πŸ“¦  Zero

Usage: zero <command> [--flags]

Commands:
πŸ›   build           Builds project with Babel (7)
πŸ“¦  bundle          Bundles project into single files with Rollup
πŸ€—  contributors    Generates markdown file with all contributors
πŸ’…  format          Formats files with Prettier
πŸ”  lint            Lints files with ESLint
✨  new             Generate a new module
☝️  pre-commit      Lints files before staging for commit
πŸ”‘  prestart        Automatically install dependencies before starting
🚒  release         Publish to npm
🀞  test            Run tests with Jest
πŸ’ͺ  validate        Validates project with lint, tests, and build

New commands

This update adds bundle (kcd's Rollup), release (Sindre's np), and prestart (Help Scout's own prestart)!

New prompt

The prompt help message has been customized to be a little bit more helpful.

Babel: Browser by default

A bunch of stuff has been tweaked to Babel to fine-tune it for our needs. Specifically, it prioritizes browser over node builds, which ensures things like async/await are automatically taken care of.

Less scaffolding

With this update, your project no longer needs to extend Babel, ESLint, or Jest (unless you really do have overrides).


Resolves:

#9
#10