Skip to content

Commit

Permalink
Support for emulating spago tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakhtiyarneyman committed Feb 23, 2024
1 parent c7d9df1 commit d772480
Show file tree
Hide file tree
Showing 15 changed files with 1,657 additions and 166 deletions.
7 changes: 3 additions & 4 deletions generate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
purs-backend-es,
purs-tidy,
}: let
npmDependencies = slimlock.buildPackageLock {src = ./.;};
packages = purix.buildSpagoLock {
locked = purix.buildSpagoLock {
src = ./.;
corefn = true;
};
Expand All @@ -30,8 +29,8 @@ in
buildInputs = [prefetch-npm-deps];

buildPhase = ''
ln -s ${npmDependencies}/js/node_modules .
cp -r ${packages.${name}}/output .
ln -s ${locked.npmDependencies}/js/node_modules .
cp -r ${locked.jsArtifacts.${name}}/output .
set -f
echo "Optimizing..."
purs-backend-es build
Expand Down
Loading

0 comments on commit d772480

Please sign in to comment.