This package helps you to set up a new npm package blazing fast. Use eslint, prettier, babel and rollup with zero configuration.
???? See packsy-starter for usage example and starter kit.
npm install packsy # or yarn add packsy
||Builds production ready bundles with Rollup. Output directory is
||Compiles files for development with Babel. Output directory is
||Formats all files. All Prettier cli options can be used.|
||Lints all files. All ESLint cli options can be used.|
||Formats and lints all staged files, validates
||Lints all files. validates
The package provides a default Prettier and ESLint configuration. See
.eslintrc.js in packsy-starter for usage.
Link the package as usual using yarn's or npm's
unlink commands first. Then execute
packsy dev compiles all files with babel in watch mode, so that a file will be compiled every time that you change it.
What is the difference between
packsy build and
First the output folders are different (
dist for build and
lib for dev command). Second the build command uses Rollup (with Babel) while dev uses only Babel. Using only Babel leads to faster compile times, which is useful for development. Also the dev command uses the watch mode of Babel.
This package is inspired by Kent C. Dodds's awesome package kcd-scripts.
This package is released under the MIT License.