@steal-like-a-dev/create-react-app
v1.1.2
Published
Minimalist implementation of the popular create-react-app package.
Downloads
2
Maintainers
Readme
create-react-app | steal-like-a-dev
Minimalist implementation of create-react-app. Primarily for teaching purposes in my StealLikeADev.com tutorial series, BUT since it's actually very usable, I decided to publish it as a NPM package as well.
These docs are "stolen" from create-react-app, but I've left only the parts I've actually implemented. Happy stealing!
Installation & usage
Install the package globally so that it is available from everywhere in your device:
$ npm install -g @steal-like-a-dev/create-react-app
and then run the following command to create a new app called my-app in the current folder.
stolen-create-react-app my-app
cd my-app
npm start
Then open http://localhost:8080/ to see your app.
When you’re ready to deploy to production, create a minified bundle with npm run build
.
What's included
Your environment will have everything you need to build a modern single-page React app:
- React, JSX, & ES6
- Language extras beyond ES6 like the object spread operator.
- Autoprefixed CSS, so you don’t need -webkit- or other prefixes.
- ~~A fast interactive unit test runner with built-in support for coverage reporting.~~
- A live development server that warns about common mistakes.
- A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps.
- An offline-first service worker and a web app manifest, meeting all the Progressive Web App criteria. (Note: Using the service worker is opt-in).
Further development & bugfixing
I'll try and keep the code and React dependencies up-to-date, so I'll have a look on this package once in a while. However, I won't be adding any new features because, well... there's already the original out there. But I'll be fixing bugs regarding features already implemented.