esnext-scripts
Opinionated ESNext application scripts and configurations.
Install
npm install esnext-scripts
or yarn
yarn add esnext-scripts
What?
esnext-scripts
is set of pre-configured helpers for your next generation Javascript application. With it, you can now fully focus on your valuable implementations instead of playing around with various settings & helpers over and over again. Batteries included:
- Latest EMACScript supports backed by Babel.
- A mostly reasonable approach to JavaScript by:
- Delightful JavaScript Testing with
Why?
How much time you spend on configuring your application boilerplate to make it support the "future" JavaScript spec. each time you start a new project?
How many times you had been confused by the obsolete
babel
settings (plugins, presets) or even worse, your applications got broken?
How?
Available commands
-
esnext build <src> <out>
- compile an input directory of modules into an output directory. -
esnext run <script> [--watch] [--env]
- execute a Node.js script with ESNext supports (For Development ONLY). -
esnext format <glob>
- format files find by the givenglob
pattern viaprettier
. -
esnext lint [--fix] [optional-folder]
- start linting withairbnb
rules set. -
esnext test
- start executing yourJest
test specs, custom settings supported via (by order):<cwd>/jest.config.js
<cwd>/package.json#jest
License
MIT License 2020 © Jim Zhan