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:
parent
57b58e9b2f
commit
527aeeeced
16 changed files with 5965 additions and 0 deletions
19
website/sandbox/contentful/default.nix
Normal file
19
website/sandbox/contentful/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