I've jumped ship and started using snowpack which solves the same problem and is much simpler to use.
Helix
is an opinionated React
boilerplate which tries to keep config to a minimum while allowing you to configure what you need.
- ⚙️ Minimal and accessible config
- ♻️ React Refresh (HMR)
- 🤸 Code Splitting with
React.lazy
- 👨💻️ TypeScript
- 📚 SCSS
- 📱 PWA ready
create-react-app
suits most, if not all, needs when it comes to bootstrapping React
apps and has a massive community supporting it.
Helix
is something a lot more
niche, allowing power-users to tweak anything to their needs while
providing a simple and clean foundation.
Don't like SCSS and want something else?
You can change it.
npx degit fjlaubscher/helix my-app
cd my-app
cp sample.env .env
npm install
npm start
Alternatively you could clone this repo or click the "Use this template" button on github.
Copy the sample .env
file and create a .env
of your own.
cp sample.env .env
None of these variables are required.
If you don't want any of these features, simply exclude them from your .env
file.
PORT
allows you to run the webpack dev server on a specific port. If unset, the default port is 3000.PUBLIC_URL
allows you to bundle the app if you're hosting it on a subroute.
Something likehttps://yourwebsite.com/helix/
is a perfect case here. Always leave a trailing slash when setting this variable.NODE_ENV
enables the Service Worker and allows you to skip installing devDependencies.VERSION
allows you to visit/health
in your React app to view the current version number.
Helix
works with either npm
or yarn
.
npm install
This command starts up the webpack-dev-server
and by default runs at http://localhost:3000
.
npm start
Preferably set NODE_ENV
to production
here if you're building for production.
npm run build
- Owner/Maintainer - fjlaubscher
Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.
Helix is free software, and may be redistributed under the terms specified in the LICENSE file.