generator-create-react-app-rewired-babel-ts
v0.2.1
Published
Use create-react-app ( CRA ) with babel and typescript
Downloads
10
Maintainers
Readme
generator-create-react-app-rewired-babel-ts
Use create-react-app ( CRA ) with babel and typescript
Includes rescript to rewire CRA options, .babelrc
(use @babel/preset-typescript
for typescript, instead of webpack plugin. So you can insert other babel plugins to compile pipeline) and tslint
, and optional styled-components.
Note that this ships with babel-plugin-array-last-index
and param.macro
, they are compiler plugins so won't increase your bundle size and they are very useful. If you don't like it, just remove them from babelrc.js
.
Installation
First, install Yeoman and generator-create-react-app-rewired-babel-ts using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-create-react-app-rewired-babel-ts
Then generate your new project:
yo create-react-app-rewired-babel-ts
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
License
MIT © linonetwo