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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/cypress/videos
/.tmp
.DS_Store
dist-newstyle/
13 changes: 13 additions & 0 deletions examples/miso/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// Enable minification
"minify": true,
// Optional, configure minification options
"jsc": {
"minify": {
"compress": {
"unused": true
},
"mangle": true
}
}
}
19 changes: 19 additions & 0 deletions examples/miso/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY= update build

all: clean update build optim

update:
cabal update --with-ghc=javascript-unknown-ghcjs-ghc --with-hc-pkg=javascript-unknown-ghcjs-ghc-pkg

build:
cabal build --with-ghc=javascript-unknown-ghcjs-ghc --with-hc-pkg=javascript-unknown-ghcjs-ghc-pkg
cp -v ./dist-newstyle/build/javascript-ghcjs/ghc-9.12.2/miso-todomvc-0.1/x/app/build/app/app.jsexe/all.js .

optim:
bunx swc ./all.js -o out.js

serve:
http-server .

clean:
cabal clean
15 changes: 15 additions & 0 deletions examples/miso/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
A tasty [Haskell](https://github.com/haskell-miso) web and [mobile](https://github.com/haskell-miso/miso-lynx) framework.

## Build and run

Install [Nix Flakes](https://nixos.wiki/wiki/Flakes), then:

```bash
npm run build
```

or

```bash
bun run build
```
12 changes: 12 additions & 0 deletions examples/miso/cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
packages:
.

allow-newer:
all:base

flags: +template-haskell

source-repository-package
type: git
location: https://github.com/dmjio/miso
tag: a9b7467993a22dc0d0a842695f6cadf2a0a01923
Loading