cra-templetize

0.0.2 • Public • Published

CRA-Templetize

GitHub package.json dynamic GitHub

Scripts to create CRA template from react projects.

Usage

Please follow below steps to create cra-template with cra-templetize

  1. Create react application with create-react-app
  2. Do necessary changes to the application.
  3. Run npx cra-templetize -i <source project directory> -o <target project directory>

The template project will be created in <target project directory>/cra-template-<source project name>

This tool can be used in monorepo environments as a pre-build script, to generate a template from sample module.

Configurations

The template generation mechanism can be overridden by providing a configuration json file with following format

{
  "name": "<name of the template>",
  "include": [
    "<external files to be included in the template>"
  ],
  "exclude": [
    "<file patterns to be excluded from template>"
  ],
  "readme": "<Readme file to be used as the template project readme>",
  "keywords": ["<Additional keywords to be included in the template project>"],
  "private": "<is template project private?>",
  "description": "<description to be used in generated readme if readme is not overridden>"
}

Readme

Keywords

Package Sidebar

Install

npm i cra-templetize

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

1.16 MB

Total Files

102

Last publish

Collaborators

  • tiranuom