A cli build tool for react projects that abstracts away configuration.
I have a few small react projects on the go and keeping their build dependencies up to date individually has become a hassle. I realized that most of my project setups are 95% the same which means I can share configuration to a certain extent.
I was inspired by how create-react-app hides build configuration so cleanly. Although CRA is great, it doesn't fit my goals exactly.
create-app to be a multipurpose build tool for myself. The first step I took was to move all build configuration from my react-starter project to
create-app and then update the npm/yarn run commands to call
create-app commands instead. This also happens to result in an extremely clean package.json file.
# Run eslintcreate-app lint# Run testscreate-app test# Format code with prettiercreate-app format# Check if code is properly formattedcreate-app format --check# Run webpack dev server with hot reloading on localhost:8080create-app dev# Build for productioncreate-app build# Build for production and serve through a docker container on localhost:8080create-app docker start# Create a new react-starter based appcreate-app init react my-app# Or typescript-react-startercreate-app init tsreact my-app
You really want to use this? It's heavily opinionated and only supports my starter projects... but okay!
yarn add --dev @jakedeichert/create-app
Starter project: react-starter
Starter project: typescript-react-starter
Support for my other environment setups will be coming soon.