0.0.2 • Published 2 years ago
cra-templetize v0.0.2
CRA-Templetize
Scripts to create CRA template from react projects.
Usage
Please follow below steps to create cra-template with cra-templetize
- Create react application with create-react-app
- Do necessary changes to the application.
- 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>"
}