A zero config scripts library
Last updated a year ago by itsjonq .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @itsjonq/zero 
SYNC missed versions from official npm registry.

???? Zero

Build Status

A zero config scripts library

Zero is a "zero config" tool designed to make it easy to create, develop, test, build, and publish libraries.

It comes with a bunch of modern front-end tools, like Babel, Rollup, ESLint, Prettier, and Jest - All pre-configured to let you build stuff without fiddling with configuration files, scripts and commands.

????  Zero

zero <command>

  zero build

  -V, --version     output the version number
  -h, --help        output usage information

  build [options]   Builds project with Babel, Rollup, or TypeScript
  bundle [options]  Bundles project into single files with Rollup
  contributors      Generates markdown file with all contributors
  format [options]  Formats files with Prettier
  lint [options]    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
  setup [options]   Sets up tooling in project
  test [options]    Run test with Jest
  typecheck         Check types with TypeScript
  validate          Validates project with lint, tests, and build

Table of Contents


Add Zero to your project with this command:

npm install --save-dev @itsjonq/zero

Or globally with:

npm install -g @itsjonq/zero


Zero comes with a handful of scripts that you can add to your own package.json scripts:

"scripts": {
  "prestart": "zero prestart",
  "build": "zero build",
  "format": "zero format",
  "lint": "zero lint",
  "precommit": "zero pre-commit",
  "release": "zero release",
  "test": "zero test",
  "validate": "zero validate",


To use Zero as a CLI, install it globally, then run this command:


Alternatively, you can run it with npx

npx @itsjonq/zero


Zero can build, lint, format, and release out-of-the-box!

If you need to personalize Babel, ESLint, or Jest, Zero's got you covered. Add your own adjustments by extending Zero's based configurations.


Create a babel or .babelrc file with:

{"presets": ["@itsjonq/zero/babel"]}


As of version 1.0.0, Zero is now on @babel version 7. Your project may need to install babel-core@7.0.0-bridge.0. To do so, add that package to your package.json, or run:

npm install --save-dev babel-core@7.0.0-bridge.0


Zero does not use @babel/runtime, as it is still being used to compile projects on Babel 6. If you need an ultra-modern Babel 7 ready tool, check out kcd-scripts.


Zero no longer comes with babel-plugin-react-app. The reason is because this module uses @babel/runtime with the new Babel 7 set up. If your project requires babel-plugin-react-app (e.g. building Docz), you'll need to add it yourself as a devDependencies.


Create an .eslintrc file with:

{"extends": "./node_modules/@itsjonq/zero/eslint.js"}

Note: for now, you'll have to include an .eslintignore in your project until this eslint issue is resolved.


Create a jest.config.js file with:

const jestConfig = require('@itsjonq/zero/jest');

module.exports = Object.assign(jestConfig, {
	// your overrides here


Create a .prettierrc.js file with:

module.exports = require("@itsjonq/zero/prettier");


Thanks to kcd-scripts and create-react-app for the inspiration and code!

Current Tags

  • 5.0.2                                ...           latest (6 months ago)

21 Versions

  • 5.0.2                                ...           6 months ago
  • 5.0.1                                ...           6 months ago
  • 5.0.0                                ...           6 months ago
  • 4.1.10                                ...           9 months ago
  • 4.1.9                                ...           a year ago
  • 4.1.8                                ...           a year ago
  • 4.1.7                                ...           a year ago
  • 4.1.6                                ...           a year ago
  • 4.1.5                                ...           a year ago
  • 4.1.4                                ...           a year ago
  • 4.1.3                                ...           a year ago
  • 4.1.2                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.6                                ...           a year ago
  • 4.0.5                                ...           a year ago
  • 4.0.4                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (81)
Dev Dependencies (5)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |