0.1.7 • Published 2 months ago

create-opub-app v0.1.7

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

Create OPub App

A CLI tool to create a new OPub app.

Why

We need a way for anyone to start a new personalized OPub app as fast and easily as possible. They should be able to choose a project name, theme, or a template while starting. A CLI checks those boxes.

Get Started

npm create opub-app@latest

Arguments

The CLI takes optinal arguments

npm create opub-app@latest [package-name] -- [options]

eg: npm create opub-app@latest my-opub-app -- -e d4d -m pnpm

Options

  • -e, --example - An example to bootstrap the app with. [d4d | data-exchange]
  • -m, --manager - Explicitly tell the CLI to bootstrap the application using specific package manager. [npm | pnpm | yarn | bun]
  • --noGit - Explicitly tell the CLI to not initialize a new git repo in the project
  • --noInstall - Explicitly tell the CLI to not run the package manager's install command

Tech Stack

  • commander - backbone of the CLI
  • clack - used for interactive prompt
  • got - HTML request library
  • tar - extract tar compressed file
  • @vercel/ncc - compile Node.js modules into a single file

Design

The CLI is designed to be as simple as possible. It asks for the project name, options and does some validations. It then fetches the template from the OPub GitHub repository and extracts it to the current working directory.

OPub CLI Design

Next Steps

  • Test in various environments

    • Windows (WSL2)
    • Linux
    • Mac
  • Add option to choose theme

  • Ask for new name if the provided one is not unique
  • Add option to select template based on initiative
  • Add support for multiple package managers

    • npm
    • yarn
    • pnpm
    • bun
0.1.7

2 months ago

0.1.6

2 months ago

0.1.5

2 months ago

0.1.4

2 months ago

0.1.2

3 months ago

0.1.3

3 months ago

0.1.1

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago