Skip to content

Commit fd70447

Browse files
committed
spago -x spago-backend-es.dhall test
1 parent ed205ba commit fd70447

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
output
99
generated-docs
1010
bower_components
11+
output-es
12+

spago-backend-es.dhall

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
-- https://github.com/aristanetworks/purescript-backend-optimizer#usage
2+
--
3+
-- This package passes all its tests with purescript-backend-optimizer.
4+
--
5+
-- For running:
6+
--
7+
-- spago -x spago-backend-es.dhall test
8+
--
9+
-- which doesn't work because of bugs in spago,
10+
-- https://github.com/aristanetworks/purescript-backend-optimizer/issues/25
11+
-- so run this as a substitute:
12+
--
13+
-- spago -x spago-dev.dhall build --purs-args '--codegen corefn,js'
14+
-- purs-backend-es bundle-app --minify --platform=node --main Test.Main --to index.mjs
15+
-- node index.mjs
16+
--
17+
-- For bench:
18+
--
19+
-- spago -x spago-dev.dhall build --purs-args '--codegen corefn,js'
20+
-- purs-backend-es bundle-app --minify --platform=node --main Bench.Main --to index.mjs
21+
-- node --expose-gc index.mjs > bench2.txt
22+
--
23+
24+
./spago-dev.dhall // { backend = "purs-backend-es build" }
25+

0 commit comments

Comments
 (0)