My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[pkgs] grimmory: update frontend build

dish 56fe73c4 2e86b11b

+12 -6
+12 -6
packages/grimmory/package.nix
··· 20 20 tag = "v${version}"; 21 21 hash = "sha256-pXihT21XmXslED4aDPXwe2t56hrSFVkt6LqfN0Uzu/8="; 22 22 }; 23 - booklore-ui = buildNpmPackage { 24 - pname = "grimmory-ui"; 23 + frontend = buildNpmPackage { 24 + pname = "grimmory-frontend"; 25 25 inherit version src; 26 26 27 27 sourceRoot = "${src.name}/booklore-ui"; ··· 29 29 npmDepsHash = "sha256-ivpGcy7z3N0Iwi5WPQl1oQ5BqhGIiQTWk0tM+akhSbs="; 30 30 31 31 buildPhase = '' 32 - npm run build --configuration=production 32 + runHook preBuild 33 + 34 + npm run build -- --configuration=production 35 + 36 + npm run test -- --no-watch --no-progress 37 + 38 + runHook postBuild 33 39 ''; 34 40 35 41 # We know we've already updated the version by now, so just update npmDepsHash ··· 75 81 76 82 postPatch = '' 77 83 mkdir -p src/main/resources/static 78 - cp -r ${booklore-ui}/lib/node_modules/grimmory/dist/grimmory/browser/* src/main/resources/static/ 84 + cp -r ${frontend}/lib/node_modules/grimmory/dist/grimmory/browser/* src/main/resources/static/ 79 85 chmod -R u+w src/main/resources/static 80 86 ''; 81 87 ··· 90 96 passthru = { 91 97 updateScript = _experimental-update-script-combinators.sequence [ 92 98 (nix-update-script { }) 93 - booklore-ui.updateScript 99 + frontend.updateScript 94 100 finalAttrs.mitmCache.updateScript 95 101 ]; 96 - ui = booklore-ui; 102 + frontend = frontend; 97 103 }; 98 104 99 105 meta = {