Add sandbox project using Contentful CMS

I used the boilerplate/typescript project as a starting point. This project
fetches and renders books that I'm defining in a Contentful CMS that I created.
This commit is contained in:
William Carroll 2020-03-24 13:27:30 +00:00
parent 57b58e9b2f
commit 527aeeeced
16 changed files with 5965 additions and 0 deletions

View 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
'';
}