JSPM

code-template-generator

1.3.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q93457F
  • License MIT

The lightweight React code template generator

Package Exports

  • code-template-generator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-template-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

code-template-generator

Code template generator is used for React projects. It is a part of Build environments project.

Templates Main dependencies
react-babel-6 Babel 6, Babel Loader 7
react-babel-7 Babel 7, Babel Loader 8
react-code-splitting Babel 7, Babel Loader 8, SplitChunksPlugin for code splitting and using babel.config.js
react-typescript-3 TypeScript 3 without Babel

Features

  • Easy to config and install other dependencies that you need.
  • Code splitting.
  • Image handling.
  • .gitignore handling.

You can view more about this package's features and how to use it on GitHub.

Installation

$ npm i -g inquirer code-template-generator

Using

$ generate <project-name> [git]

Argument Requirement Description
<project-name> Required Generate a project by a selected template
[git] Optional A .gitignore file will be created automatically on the root of project directory

View more on GitHub.

Example

$ generate react-todo
$ generate react-counter git

Thank you!

Special thanks to Harriet Ryder!