9fdf4d00fa
I would like to support boilerplate code for ReasonML, TypeScript, ClojureScript, and Elm projects before I specialize in any of these frameworks. All of my projects should use TailwindCSS. All of this boilerplate should offer: - Same command to start developing - Same API to build and deploy - TailwindCSS support - Basic boilerplate for components, state, and routes This TypeScript boilerplate is not complete, but I would like to commit the progress in case I do not return to this for awhile. |
||
---|---|---|
.. | ||
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