@hooked74/create-library
Set up a library by running one command
Last updated 6 months ago by hooked174 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hooked74/create-library 
SYNC missed versions from official npm registry.

Create Library

Build Status npm License


tools

This application generates a starter library kit.

Table of contents

Usage

npx @hooked74/create-library [<name>]

name is optional parameter.

Command Options

-c, --config <json|file>

Transfer partial or full configuration in json format or in file format for library generation.

-f, --force

Generate library with default configuration options (from default-config.json file).

-e, --extended

Force you to select advanced options in the interactive menu: react, storybook, cypress. By default these options are true.

Configuration

The configuration has the following structure:

{
  "name": "my-library",
  "scope": "hooked74",
  "author": "Igor Novikov",
  "email": "novikovio74@gmail.com",
  "repoAuthor": "Hooked74",
  "repoName": "my-library",
  "typePrefix": "H74",
  "react": true,
  "storybook": true,
  "cypress": true
}

name

It is used for: creating a local directory, generating a package name, generating a repository name (if repoName is not used), generating the main type namespace, generating final assembly files, etc. It is a required parameter.

scope

It is used to generate the full package name. It is a optional parameter.

author

It is used to generate author in package.json and generate license. It is a optional parameter.

email

It is used to generate author in package.json and for feedback in travis-ci configuration. It is a optional parameter.

repoAuthor

It is used to generate the full repository name in many parts of the environment. It is a required parameter.

repoName

It is used to generate the full repository name in many parts of the environment. It is a optional parameter (if not specified then name will be used).

typePrefix

It is used to generate standard type namespace alias. It is necessary to avoid type intersection in a global scope. It is a optional parameter.

react

Flag that is responsible for using React and everything related to it in the created project. Default: true.

storybook

Flag that is responsible for using Storybook and everything related to it in the created project. Default: true.

cypress

Flag that is responsible for using Cypress and everything related to it in the created project. Default: true.

Current Tags

  • 2.2.2                                ...           latest (6 months ago)

23 Versions

  • 2.2.2                                ...           6 months ago
  • 2.2.1                                ...           6 months ago
  • 2.2.0                                ...           6 months ago
  • 2.1.4                                ...           6 months ago
  • 2.1.3                                ...           6 months ago
  • 2.1.2                                ...           6 months ago
  • 2.1.1                                ...           6 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.2                                ...           7 months ago
  • 2.0.1                                ...           7 months ago
  • 2.0.0                                ...           8 months ago
  • 1.0.11                                ...           8 months ago
  • 1.0.10                                ...           8 months ago
  • 1.0.9                                ...           8 months ago
  • 1.0.8                                ...           8 months ago
  • 1.0.7                                ...           8 months ago
  • 1.0.6                                ...           8 months ago
  • 1.0.5                                ...           8 months ago
  • 1.0.4                                ...           8 months ago
  • 1.0.3                                ...           8 months ago
  • 1.0.2                                ...           8 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 23
This Month 23
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |