| By default Parcel prefixes output paths with /. So when Chrome loads wpcarro.dev/goals it attempts to get the CSS and JS and other assets from wpcarro.dev/ instead of wpcarro.dev/goals/. Using the --public-url ./ option makes Parcel output relative paths, which should work better for my needs. | ||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| default.nix | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| shell.nix | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| yarn.lock | ||
Frontend Boilerplate
While many times I prefer using alt-languages like ReasonML, ClojureScript, or Elm, sometimes I prefer to write an application using TypeScript. This directory contains the necessary starter code to create these applications.
- React: Maps application state to UI
- React-Router: Stateful routing for SPAs
- Redux: Application state management
- TypeScript: Type-safety
- TailwindCSS: Styling library using utility classes
- Prettier: Source code formatting
- Jest: Test runner
Developing
$ nix-shell
$ yarn run dev
Building
$ nix-build