Integrate previously external templates into this repository #12

Manually merged
tlater merged 8 commits from tlater/integrated-templates into master 2022-10-05 12:39:33 +01:00
3 changed files with 11 additions and 11 deletions
Showing only changes of commit 9fb195819e - Show all commits

View file

@ -34,17 +34,6 @@
yj
]
++ old.buildInputs;
shellHook =
''
# Update package.json
if [ -e ./package.json ]; then
unlink ./package.json
fi
cat ./package.yaml | yj > ./package.json
''
+ old.shellHook;
});
server = nixpkgs.legacyPackages.${system}.mkShell {

10
templates/.envrc Normal file
View file

@ -0,0 +1,10 @@
nix_direnv_watch_file package-lock.json
use flake ..#templates
# Update package.json
if ! cmp --silent .checksum-package.yaml <(sha256sum package.yaml); then
echo "Updating package.json"
unlink ./package.json
yj < ./package.yaml > ./package.json
sha256sum package.yaml > .checksum-package.yaml
fi

View file

@ -3,3 +3,4 @@ dist/
node_modules/
package.json
result
.checksum-package.yaml