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 |
react-typescript-3 | TypeScript 3 and using awesome-typescript-loader |
Main features
- It's simple to config and install the dependencies you need.
- Supported:
- Code splitting.
- Image handling.
- CSS, JS code injected automatic into HTML template.
- .gitignore handling.
- Hot Module Replacement (HMR) enabled.
- You don't need to care about the distribution (publish) directory.
You can view more about this package's features and how to use it on GitHub.
Installation
Installed Inquirer.js is requirement before the code-template-generator installation:
$ npm i -g inquirer
When you have already installed Inquirer.js:
$ npm i -g code-template-generator
Using
$ generate <project-name> [option]
Argument | Requirement | Description |
---|---|---|
<project-name> |
Required | Generate a project by a selected template |
git |
Option | A .gitignore file will be created automatically on the root of project directory |
-v |
Option | View the installed version |
-help |
Option | View the help information |
Example
$ generate react-todo
$ generate react-counter git
$ generate -v
$ generate -help
Thank you!
Special thanks to Harriet Ryder!