tvl-depot/boilerplate/typescript
William Carroll 0c71fc9d1d Drop support for dir-locals.nix, <nixpkgs>, etc.
In the spirit of Marie Kondo, I'm tidying up!

TL;DR:
- Prefer .envrc `use_nix` and delete all dir-locals.nix files
- Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer
  referencing each with briefcase.third_party.{pkgs,unstable,depot}
- Delete nixBufferFromShell function since I was only using that in
  dir-locals.nix files
2020-08-20 11:26:32 +01:00
..
src Run Prettier across projects 2020-03-27 10:59:50 +00:00
.envrc Drop support for dir-locals.nix, <nixpkgs>, etc. 2020-08-20 11:26:32 +01:00
.gitignore Add node_modules to .gitignore of boilerplate/typescript 2020-03-27 10:59:50 +00:00
default.nix Prefer builtins.path 2020-07-02 13:28:59 +01:00
package.json Run Prettier across projects 2020-03-27 10:59:50 +00:00
postcss.config.js Support boilerplate for TypeScript projects 2020-03-23 22:43:36 +00:00
README.md Support boilerplate for TypeScript projects 2020-03-23 22:43:36 +00:00
shell.nix Drop support for dir-locals.nix, <nixpkgs>, etc. 2020-08-20 11:26:32 +01:00
tailwind.config.js Support boilerplate for TypeScript projects 2020-03-23 22:43:36 +00:00
tsconfig.json Support boilerplate for TypeScript projects 2020-03-23 22:43:36 +00:00
yarn.lock Run Prettier across projects 2020-03-27 10:59:50 +00:00

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