crap-app

0.4.0 • Public • Published

crap-app

Creates a React app w/ TypeScript, styled-components, Webpack 4 + hot-loading.

Unlike CRA (which is great BTW), this app will be immediately "ejected", i.e., after your project is created, you're on your own.

Installation

sudo npm i -g crap-app

Or just use npx or yarn dlx.

Usage

[npx] crap-app

Starts the wizard. It'll ask you a few simple questions and then create a fully functional app for you.

It looks like this:

I tried to keep the output as simple as possible so that you can easily add new webpack loaders and reconfigure it however you please.

cd into your app directory and run make start to startup a development server, or make build to create a production build. At the moment, the output is fully static -- i.e., you only need a simple HTTP server to run your app like Nginx or Github Pages (no Express/Node server required).

I like to use GNU Make instead of npm scripts because there's no requirement for the node_modules to be installed first, it keeps the build process consistent across apps (Node or otherwise), and it usually comes preinstalled on linux.

Credit

@ syntax and <ScrollTop> "borrowed" from Lee Benson's ReactQL.

create-react-app for other ideas.

/crap-app/

    Package Sidebar

    Install

    npm i crap-app

    Weekly Downloads

    19

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    319 kB

    Total Files

    62

    Last publish

    Collaborators

    • mnpenner