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.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| 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
 | |
|   '';
 | |
| }
 |