diff --git a/CHANGELOG.md b/CHANGELOG.md index 36d46714..64f8aeb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ Notable changes to this project are documented in this file. The format is based ## [Unreleased] +Breaking changes: +- Update compiler to v0.15.0 (#274 by @JordanMartinez) + +New features: + +Bugfixes: + +Other improvements: + +## [v2022-02-25.1](https://github.com/purescript/trypurescript/releases/tag/v2022-02-25.1) + Breaking changes: - Update compiler to v0.14.7 (#271 by @JordanMartinez) diff --git a/client/.gitignore b/client/.gitignore index d4779c13..e6a2ff7e 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -8,3 +8,4 @@ /.stack* /public/js/index.js .spago/ +.vscode/ diff --git a/client/entry.js b/client/entry.js new file mode 100644 index 00000000..98d6e0fa --- /dev/null +++ b/client/entry.js @@ -0,0 +1,3 @@ +import { main } from "./public/js/output/Main/index.js"; + +main(); diff --git a/client/package.json b/client/package.json index fc071535..c53ca98c 100644 --- a/client/package.json +++ b/client/package.json @@ -4,14 +4,21 @@ "scripts": { "clean": "rimraf output", "test": "spago test --path config/dev/Try.Config.purs", - "build": "spago build --path config/dev/Try.Config.purs", - "build:dev": "spago bundle-app --path config/dev/Try.Config.purs --to public/js/index.js", - "build:production": "spago bundle-app --path config/prod/Try.Config.purs --purs-args '--censor-lib --strict' --to public/js/index.js" + "bundle": "esbuild --outfile=public/js/index.js --bundle entry.js --platform=browser --format=iife", + "build:dev": "spago build --path config/dev/Try.Config.purs --purs-args \"--output public/js/output\"", + "build:production": "spago bundle-app --path config/prod/Try.Config.purs --purs-args '--censor-lib --strict' --to public/js/index.js", + "serve:dev": "npm run build:dev && npm run bundle && http-server public/ -o / -c-1 --port 8100", + "serve:prod": "npm run build:prod && npm run bundle && http-server public/ -o / -c-1" }, "devDependencies": { - "purescript": "^0.13.6", - "purescript-psa": "^0.7.3", + "http-server": "^14.1.0", + "purescript": "^0.15.0", + "purescript-psa": "^0.8.2", "rimraf": "^2.5.4", - "spago": "^0.14.0" + "spago": "^0.20.9" + }, + "dependencies": { + "jquery": "^1.12.4", + "ace-builds": "^1.5.0" } } diff --git a/client/packages.dhall b/client/packages.dhall index 75331a36..e51832b0 100644 --- a/client/packages.dhall +++ b/client/packages.dhall @@ -1,22 +1,5 @@ let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200404/packages.dhall sha256:f239f2e215d0cbd5c203307701748581938f74c4c78f4aeffa32c11c131ef7b6 + https://github.com/purescript/package-sets/releases/download/psc-0.15.0-20220513/packages.dhall + sha256:1ed784f37ae6131d99acd542d058d5ce39954ccaacc3adba5cc7cf1549d2bffa -let additions = - { ace = - { repo = "https://github.com/purescript-contrib/purescript-ace.git" - , version = "v7.0.0" - , dependencies = - [ "arrays" - , "console" - , "effect" - , "foreign" - , "nullable" - , "prelude" - , "refs" - , "web-html" - , "web-uievents" - ] - } - } - -in upstream // additions +in upstream diff --git a/client/public/frame.html b/client/public/frame.html index ba347939..2642e0e1 100644 --- a/client/public/frame.html +++ b/client/public/frame.html @@ -5,7 +5,59 @@ - + + + + + + + + + + + + + + + + + + + + + +
diff --git a/client/public/index.html b/client/public/index.html index 44a29b24..2cdc56ce 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -19,67 +19,6 @@ -