package-template

📋 A template for JS packages with my common tooling

MIT License

Stars
0
Committers
1

package-template

JS package template repository


package-template is a template repository for my JavaScript modules.

Some standout features include...

All this clocks in at around kB gzipped.

Requires Node >= 8.0.0.

Installation

Install @madebyconnor/package-template with your favorite package manager.

# yarn
yarn add @madebyconnor/package-template
# npm
npm i @madebyconnor/package-template

Getting started

@madebyconnor/package-template exports a function

import { sayHello } from '@madebyconnor/package-template';

sayHello('Tessa');

/*
    returns:

    Hello Tessa
 */

Getting the smallest possible bundle size

Many development conveniences are placed behind process.env.NODE_ENV !== "production" conditionals. When bundling your app, it's a good idea to replace these code snippets such that a minifier (like uglify) can sweep them away and leave a smaller overall bundle.

Here are instructions for some of the popular bundlers:

Changelog

See GitHub Releases.