1.5.21 • Published 4 months ago

makepack v1.5.21

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

MakePack is a command-line interface (CLI) tool that helps you to quickly set up, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for use in npm projects. With just a few simple commands, you can generate your own libraries, start a development server, or build and publish your project to the npm repository.

šŸ“„ Installation

Install makepack globally to get started:

npm install -g makepack

šŸŽÆ Why Choose makepack?

  • Zero-Config Setup – Instantly scaffold a structured project.
  • TypeScript Support – Seamlessly work with modern JavaScript.
  • Integrated Dev Server – Run your package with Vite and Express.
  • Efficient Build System – Generate optimized ESM and CJS outputs.
  • One-Command Publish – Deploy your package to npm effortlessly.

šŸ“œ CLI Commands

✨ makepack create – Scaffold a New Project

Quickly initialize a structured package with the following setup:

src/index.ts or tsx or js or jsx
.gitignore
package.json
README.md

Run:

makepack create

Follow the interactive prompts to configure your project.

šŸš€ makepack start – Launch the Development Server

Run a Vite + Express server to develop and test your package in real-time.

makepack start

šŸ—ļø makepack build – Compile Your Package

Builds and optimizes your package into the build directory.

makepack build

šŸ“¦ makepack publish – Deploy to NPM

Publish your package to the npm registry in one command.

makepack publish

āš™ļø Configuration

Customize your project by creating a makepack.js file in the root directory. This file allows full control over the build and dev environment.

šŸ”§ Default Configuration

module.exports = (prevConfig) => ({
  build: {
    outdir: "build",
    types: true,
    formatPackageJson: (p) => p,
    configs: [
      {
        entryPoints: "src/**/*.{tsx,ts,js,jsx}",
        outdir: "esm",
        format: "esm",
        sourcemap: true,
        jsx: 'automatic',
        loader: {
          '.ts': 'ts',
          '.tsx': 'tsx'
        },
      },
      {
        entryPoints: "src/**/*.{tsx,ts,js,jsx}",
        outdir: "",
        format: "cjs",
        sourcemap: true,
        jsx: 'automatic',
        loader: {
          '.ts': 'ts',
          '.tsx': 'tsx'
        },
      }
    ]
  },
  start: {
    port: 5000,
    entry: "App.tsx",
  }
});

šŸ“œ License

makepack is released under the MIT License, allowing free usage in both open-source and commercial projects.


šŸš€ Start building your next NPM package with makepack today!

1.5.21

4 months ago

1.5.20

4 months ago

1.5.19

4 months ago

1.5.18

5 months ago

1.5.17

5 months ago

1.5.16

5 months ago

1.5.15

5 months ago

1.5.14

5 months ago

1.5.13

5 months ago

1.5.12

5 months ago

1.5.11

5 months ago

1.5.10

5 months ago

1.5.9

5 months ago

1.5.8

5 months ago

1.5.7

5 months ago

1.5.6

5 months ago

1.5.5

5 months ago

1.5.4

5 months ago

1.5.3

5 months ago

1.5.2

5 months ago

1.5.1

5 months ago

1.5.0

5 months ago

1.4.0

6 months ago

1.3.9

6 months ago

1.3.8

6 months ago

1.3.7

6 months ago

1.3.6

6 months ago

1.3.5

6 months ago

1.3.4

7 months ago

1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.9

7 months ago

1.2.8

7 months ago

1.2.7

7 months ago

1.2.6

7 months ago

1.2.5

7 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago