about summary refs log tree commit diff
path: root/boilerplate
AgeCommit message (Collapse)AuthorFilesLines
2020-03-30 Add dir-locals.nix to boilerplate/typescriptWilliam Carroll1-0/+3
This should help prettier-mode work out-of-the-box.
2020-03-27 Add node_modules to .gitignore of boilerplate/typescriptWilliam Carroll1-2/+3
briefcase's top-level .gitignore ignores node_modules, so I never noticed that it was missing from my boilerplate .gitignore. I don't *really* need to add it to that .gitignore, but if I want to cleanly eject directories from this monorepo, it makes sense to keep the .gitignore files local to each project.
2020-03-27 Run Prettier across projectsWilliam Carroll3-3/+10
Problem: Prettier was not running when I saved Emacs buffers. Why? - prettier-js-mode needs needs node; lorri exposes node to direnv; direnv exposes node to Emacs; lorri was not working as expected. Solution: Now that I'm using nix-buffer, I can properly expose node (and other dependencies) to my Emacs buffers. Now Prettier is working. Commentary: Since prettier hadn't worked for so long, I stopped thinking about it. As such, I did not include it as a dependency in boilerplate/typescript. I added it now. I retroactively ran prettier across a few of my frontend projects to unify the code styling. I may need to run... ```shell $ cd ~/briefcase $ nix-shell $ npx prettier --list-different "**/*.{js,ts,jsx,tsx,html,css,json}" ``` ...to see which files I should have formatted.
2020-03-25 Use Parcel's --public-url option when buildingWilliam Carroll1-1/+1
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.
2020-03-25 Debug typescript/default.nixWilliam Carroll1-5/+5
TL;DR - Change derivation name - Point to $src/index.html instead of non-existent index.html - Prefer defining pkgs as a function argument
2020-03-25 Remove math.ts from boilerplate/typescriptWilliam Carroll1-3/+0
This file is only a distraction.
2020-03-24 Add @types/node to typescript boilerplateWilliam Carroll2-0/+6
Parcel uses process.env to expose environment variables. Since process.env is a Node concept and this boilerplate is for TypeScript projects, we need @types/node to support these Node types.
2020-03-23 Support boilerplate for TypeScript projectsWilliam Carroll16-0/+5906
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.