Natural Preference for Minification

    generator-create-react-app-rewired-babel-ts

    0.2.1 • Public • Published

    generator-create-react-app-rewired-babel-ts NPM version Build Status Dependency Status Coverage percentage

    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

    Install

    npm i generator-create-react-app-rewired-babel-ts

    DownloadsWeekly Downloads

    4

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    27.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • linonetwo012