Socket
Socket
Sign inDemoInstall

packsy

Package Overview
Dependencies
757
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    packsy

Start development of a package with pre-defined eslint, prettier, babel and rollup configuration


Version published
Weekly downloads
13
increased by1200%
Maintainers
1
Install size
91.2 MB
Created
Weekly downloads
 

Readme

Source

📦 Packsy

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.

Installation

npm install packsy

# or
yarn add packsy

Commands

NameDescription
packsy buildBuilds production ready bundles with Rollup. Output directory is dist.
packsy devCompiles files for development with Babel. Output directory is lib.
packsy formatFormats all files. All Prettier cli options can be used.
packsy lintLints all files. All ESLint cli options can be used.
packsy pre-commitFormats and lints all staged files, validates package.json.
packsy validateLints all files. validates package.json.

Prettier and ESLint configs

The package provides a default Prettier and ESLint configuration. See .prettierrc.js and .eslintrc.js in packsy-starter for usage.

Development workflow (linked package)

Link the package as usual using yarn's or npm's link/unlink commands first. Then execute packsy dev.

packsy dev compiles all files with babel in watch mode, so that a file will be compiled every time that you change it.

Projects that use Packsy

FAQ

What is the difference between packsy build and packsy dev?

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.

Inspiration

This package is inspired by Kent C. Dodds's awesome package kcd-scripts.

License

This package is released under the MIT License.

Keywords

FAQs

Last updated on 25 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc