Skip to content

Commit

Permalink
Bump to purs15 and change examples to use spago
Browse files Browse the repository at this point in the history
  • Loading branch information
mjrussell committed Jun 2, 2022
1 parent 89f254c commit e546b67
Show file tree
Hide file tree
Showing 10 changed files with 12,775 additions and 3,798 deletions.
1 change: 1 addition & 0 deletions examples/basic/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ output
html/index.js
package-lock.json
node_modules
.spago
9 changes: 5 additions & 4 deletions examples/basic/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
all: node_modules
purs compile src/*.purs '../../src/**/*.purs' '../../bower_components/purescript-*/src/**/*.purs'
purs bundle -m Main --main Main output/*/*.js > output/bundle.js
node_modules/.bin/browserify output/bundle.js -o html/index.js
all: node_modules deps
npx spago bundle-app --main Main --to output/bundle.js
npx browserify output/bundle.js -o html/index.js

node_modules:
npm install

deps:
npx spago install
3 changes: 2 additions & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"react-dom": "17.0.2"
},
"devDependencies": {
"browserify": "17.0.0"
"browserify": "17.0.0",
"esbuild": "^0.14.42"
}
}
17 changes: 17 additions & 0 deletions examples/basic/spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{-
Welcome to a Spago project!
You can edit this file as you like.
-}
let conf = ../../spago.dhall

in conf // {
sources = conf.sources # [ "src/**/*.purs", "../../src/**/*.purs" ],
dependencies = conf.dependencies #
[ "effect"
, "exceptions"
, "maybe"
, "react-basic-dom"
, "react-basic-hooks"
, "web-dom"
]
}
Loading

0 comments on commit e546b67

Please sign in to comment.