Support boilerplate for TypeScript projects
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.
This commit is contained in:
parent
1cc1ce5ccf
commit
9fdf4d00fa
16 changed files with 5906 additions and 0 deletions
19
boilerplate/typescript/default.nix
Normal file
19
boilerplate/typescript/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
name = "ideal-website";
|
||||
srcs = ./.;
|
||||
buildInputs = with pkgs; [
|
||||
nodejs
|
||||
# Exposes lscpu for parcel.js
|
||||
utillinux
|
||||
];
|
||||
# parcel.js needs number of CPUs
|
||||
PARCEL_WORKERS = "1";
|
||||
buildPhase = ''
|
||||
npx parcel build index.html
|
||||
'';
|
||||
installPhase = ''
|
||||
mv dist $out
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue