Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .buildkite/primer-wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ steps:
command: |
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 update
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 frontend-prod
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 ui-demo-prod
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 test

- label: ":haskell: :linux: Primer Wasm build"
Expand All @@ -29,6 +30,7 @@ steps:
command: |
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 update
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 frontend-prod
nix develop .#wasm --print-build-logs --command make -f Makefile.wasm32 ui-demo-prod

- label: ":haskell: :macos: Primer Wasm build"
if: |
Expand All @@ -37,5 +39,6 @@ steps:
command: |
nix develop --no-sandbox .#wasm --print-build-logs --command make -f Makefile.wasm32 update
nix develop --no-sandbox .#wasm --print-build-logs --command make -f Makefile.wasm32 frontend-prod
nix develop --no-sandbox .#wasm --print-build-logs --command make -f Makefile.wasm32 ui-demo-prod
agents:
os: "darwin"
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,22 @@ $(package-targets):
$(MAKE) -C primer $@
$(MAKE) -C primer-api $@
$(MAKE) -C primer-miso $@
$(MAKE) -C primer-miso-ui $@
$(MAKE) -C primer-benchmark $@

develop-frontend:
$(MAKE) -C primer-miso develop-frontend

develop-ui-demo:
$(MAKE) -C primer-miso-ui develop-ui-demo

format:
nix develop .#treefmt -c treefmt

clean:
cabal clean

.PHONY: build $(project-targets) $(package-targets) clean
.PHONY: build $(project-targets) $(package-targets) format clean

# Disabled until Weeder is fixed with haskell.nix

Expand Down
10 changes: 10 additions & 0 deletions Makefile.wasm32
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@ frontend-prod:
serve-frontend:
$(MAKE) -C primer-miso serve-frontend

ui-demo:
$(MAKE) -C primer-miso-ui ui-demo

ui-demo-prod:
$(MAKE) -C primer-miso-ui ui-demo-prod

serve-ui-demo:
$(MAKE) -C primer-miso-ui serve-ui-demo

clean:
$(CABAL) clean
$(MAKE) -C primer-miso clean
$(MAKE) -C primer-miso-ui clean

.PHONY: build $(test-targets) update clean
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ if arch(wasm32)
primer
primer-api
primer-miso
primer-miso-ui
else
packages:
primer
primer-api
primer-miso
primer-miso-ui
primer-benchmark

if arch(wasm32)
Expand Down
11 changes: 6 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,7 @@
};

devShells = {
default = primerFlake.devShells.default // {
inputsFrom = [
config.treefmt.build.devShell
];
};
default = primerFlake.devShells.default;
wasm = pkgs.mkShell {
packages = with inputs.ghc-wasm.packages.${system};
[
Expand All @@ -310,6 +306,11 @@
(pkgs.haskell-nix.tool ghcVersion "tasty-discover" { })
];
};
treefmt = pkgs.mkShell {
inputsFrom = [
config.treefmt.build.devShell
];
};
};
};

Expand Down
9 changes: 9 additions & 0 deletions licenses/basecoatcss.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2025 Ronan Berder

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions primer-miso-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
ghc_wasm_jsffi.js
Loading