preact-init

0.1.1 • Public • Published

Preact Init

npm npm

Overview

Initiate Preact projects from different starting points, fast and easy.

This tool makes use of preact-roller, a Rollup/Bublé alternative to preact-cli, to start new Preact projects.

Preact Init is highly inspired by create-react-app and vue-cli and tries to merge good ideas from both approaches while keeping it as simple as possible.

If Rollup or Bublé aren't your thing, I recommend you to look at preact-cli.

Features

  • Begin Preact projects from different starting points (templates).
  • Templates can be installed from public or private Git repositories.
  • One-command option: preact-init

Requirements

Preact Init requires at least Node 6 but an 8 version is highly recommended.

Installation

Install it once globally:

npm install -g preact-init

Usage

There’s only 1 command that you can run in 3 different ways:

  • preact-init - Assists you to start a new Preact project.
  • preact-init <project-name> - Starts a project with a custom name and default template.
  • preact-init <project-name> <template-repo> - Starts a project with a custom name from a specific repo.

template-repo must follow the shorthand repo notation of download-git-repo. Example: github:churris/preact-simple-template

Additionally, you can pass the available options:

Options Alias Description
--ssh -s Clones the template repo with SSH
--help -h Shows additional help
--version -v Shows the version of preact-init

Example: preact-init my-app -s

Package Sidebar

Install

npm i preact-init

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • renemonroy