npm.io
0.2.1 • Published 5 years agoCLI

@janiscommerce/create

Licence
ISC
Version
0.2.1
Deps
9
Size
21 kB
Vulns
0
Weekly
0

JanisCommerce Package Initializer

Build Status npm version

A package initializer for @janiscommerce npm packages

Usage

npx @janiscommerce/create <package-name>

Or

npm init @janiscommerce <package-name>

Get help on the CLI

You can also see the following docs within the CLI by running npx @janiscommerce/create --help

Positional arguments

package-name

Defines the name of the package to create. It will be automatically prefixed with the scope @janiscommerce/.

Example npx @janiscommerce/create cool-demo

This will create the @janiscommerce/cool-demo package

Options

Every named option can be passed as a command line argument or set as an environment variable (prefixed with JANISCOMMERCE_CREATE_).

For example, verbose option can be passed as --verbose as a CLI argument or set as JANISCOMMERCE_CREATE_VERBOSE=true env var.

--description (alias -d)

Sets the package description both in the package.json and README.md

Example npx @janiscommerce/create cool-demo --description 'A cool package for a simple demo' Example npx @janiscommerce/create cool-demo -d 'A cool package for a simple demo'

remote-type (alias -r)

Selects how will the git remote be configured. Options are ssh (default) or http.

Example npx @janiscommerce/create cool-demo --remote-type http Example npx @janiscommerce/create cool-demo -r http

github-username (alias -u)

You can set you github username in the remote so you don't have to type it each time (http remote type only).

Example npx @janiscommerce/create cool-demo --remote-type http --github-username janis-commerce-admin Example npx @janiscommerce/create cool-demo --remote-type http -u janis-commerce-admin

Other options
  • --verbose or -V: Print verbose output
  • --version or -v: Show the package version
  • --help or -h: Show the package help page