1.3.2 • Published 4 months ago

create-minimal-package v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

create-minimal-package

Zero-knowledge minimalistic template for creating a new npm package.


Docs Demo: https://34j.github.io/create-minimal-package/

NPM Package Demo: https://www.npmjs.com/package/create-minimal-package

Source Code: https://github.com/34j/create-minimal-package


Features

Quickstart

  1. Click the "Use this template" button.
  2. Replace GITHUB_USER and REPO_NAME using sed:
    GITHUB_USER="johnsmith"
    REPO_NAME="my-cool-package"
    sed -i.tmp "s/\([^@]\)34j/\1$GITHUB_USER/g; s/create-minimal-package\|my-package-name/$REPO_NAME/g; package.json package-lock.json src/index.ts
    sed -i.tmp 's/"version": "[0-9.]*"/"version": "0.0.0"/' package.json
    rm *.tmp
    rm CHANGELOG.md
  3. Create and add NPM_TOKEN to Settings/Secrets and variables/Actions/Repository secrets.
  4. Create and add CODECOV_TOKEN to Settings/Secrets and variables/Actions/Repository secrets.
  5. Install GitHub Apps, pre-commit.ci lite and Codecov.
  6. Install pre-commit using uv by uv tool install pre-commit and install hooks by pre-commit install.
  7. Remove everything above ---.

Inspired by node-module-boilerplate and typescript-npm-package-template, which is great but unnecessarily complex and poorly maintained.


create-minimal-package

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release


Documentation: https://34j.github.io/create-minimal-package/

NPM Package: https://www.npmjs.com/package/create-minimal-package

Source Code: https://github.com/34j/create-minimal-package


TODO: Project Description.

Installation

npm install create-minimal-package

Usage

import { myPackage } from 'create-minimal-package'

myPackage('hello')
// => 'hello from my package'
1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.0

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago