-
Notifications
You must be signed in to change notification settings - Fork 52
Migrate to PureScript 0.15 #1521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 31 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
c40c786
build: update `purs`, update `spago`, upgrade package-set
errfrom 5d0d316
build: update `medea` and `sequences` deps, remove `math`
errfrom dcc6a7c
build: update `bignumber` dependency, fix `flake.nix`
errfrom 87606c0
build: update `aeson` dependency
errfrom 36c0ce2
build: update `noble-secp256k1` dependency
errfrom cc5dc89
build: update `toppokki` dependency
errfrom 1f2f31e
build: use esm exports, fix aeson instances for `Plutus.AssocMap`
errfrom 856ed1d
build: select affjax driver based on environment (node or browser)
errfrom 4c66024
style: fix formatting
errfrom b41ca18
build: bump `purs` to v0.15.8
errfrom 8cb2766
build: fix `ToData` and `FromData` instances
errfrom 43678ef
build: use `frequency` with `NonEmptyArray`
errfrom 389c5ce
build: use `exists` from `Node.FS.Sync` (ctl compiles!)
errfrom 3ac0f74
build: multiple changes
errfrom 6e061e1
build: fix `package.json`, re-gen `spago-packages.nix`, fix formatting
errfrom 0cb50b1
chore: fix warnings
errfrom ba71dfa
build: fix plutip tests
errfrom 682badc
build: bundle and serve using `esbuild`
errfrom ae495bd
style: fix formatting
errfrom a7799f2
style: remove unused imports
errfrom 6f2758b
build: use `esm` imports in `nix/default.nix`
errfrom 084ca27
build: use `esm` imports in `nix/default.nix`
errfrom fe138b0
build: create `node_modules` symlink for `NODE_PATH`
errfrom 70e3356
build: disable md link check for `the-plutus-scaffold`
errfrom 1b3b13d
fix: fix unit tests
errfrom 7993b9f
build: bundle using `esbuild` for e2e tests
errfrom ef1441b
build: use dynamic imports when selecting affjax driver
errfrom d1f1e1d
build: update `templates/ctl-scaffold`
errfrom 5a80b60
build: update dependencies
errfrom e5c6014
build: drop `sequences` dependency
errfrom 218b70c
build: fix bundling using `webpack`
errfrom b7a151f
Use CSL version with GC
klntsky ebe2c7b
Update docs
klntsky 35debff
Do not store scripts in external files
klntsky 812afec
Fix unit tests
klntsky ccc7466
Update the template
klntsky 325665b
Update NodeJS deps in the template
klntsky b462b65
Update CTL revision in the CTL template
klntsky fd65ad4
Update the template and docs
klntsky 7139e1e
WIP
klntsky f1514a1
Merge remote-tracking branch 'origin/develop' into dshuiski/purs-0.15…
klntsky f318a77
Update spago dependencies, fix broken link
klntsky b764665
Fix 'Invalid "exports" main target "index.js" defined in the package …
klntsky 0c314cc
Fix toppoki dependency
klntsky 62faa6e
Inline script contents in ApplyArgs example to avoid bundling files
klntsky d51471f
Move Blockfrost API key setup to the core of the lib
klntsky 2c01b2d
Synchronize webpack config in the template
klntsky 5072d03
WIP: refactor bundling; let bundle* commands produce just the bundle
klntsky 3565be1
Only enable blockfrost examples if blockfrost key is set
klntsky 3c7c67d
Separate building of deps and sources in nix
klntsky 1604657
Move compilers to nativeBuildInputs
klntsky 29695e6
Rewrite the bundling system (Nix & Makefile)
klntsky eb8e7e8
Fix internal module name (Ctl.Internal.Test.E2E.Route)
klntsky 0825b1b
Remove html-webpack-plugin dependency
klntsky bf1de19
Simplify esbuild script in nix
klntsky 8014c94
Simplify webpack build script in nix
klntsky d568417
Synchronize webpack & esbuild setup in the template
klntsky 19be30b
Update template's Makefile
klntsky d2fe25d
Use JS.BigInt
kozross c8ce038
Merge pull request #1553 from Plutonomicon/klntsky/refactor-bundling-…
klntsky 6e4debe
Support nodejs bundling. Proxy-pass kupo requests when serving via es…
klntsky 080e06b
Update the template
klntsky cc808a7
Update formatting rules
klntsky f3dc557
Merge branch 'dshuiski/purs-0.15-migration' into koz/1472
kozross 73ea867
Merge pull request #1554 from Plutonomicon/klntsky/support-nodejs-bun…
klntsky f729825
Merge branch 'dshuiski/purs-0.15-migration' into koz/1472
kozross 0ccc85d
Update error message fixtures in plutip tests
klntsky c677f5f
Use newer purescript-aeson and json-bigint
klntsky 539093d
Remove big-integer runtime dep, update the template
klntsky fbf56b2
Adds a missing NPM json-bigint upgrade in CTL scaffold
bladyjoker 6b76ffe
Merge pull request #1551 from Plutonomicon/koz/1472
klntsky dba4895
Merge remote-tracking branch 'origin' into dshuiski/purs-0.15-migration
klntsky 02869ce
Fixes runPursTest setting of `node_modules`
bladyjoker 49766d5
Merge pull request #1557 from Plutonomicon/bladyjoker/runpurstest-fix
klntsky acbd363
Merge remote-tracking branch 'origin/develop' into dshuiski/purs-0.15…
klntsky 908927e
Update `easy-purscript-nix` nix flake input
aciceri 98de298
Add Hercules CI `flake-update` effect
aciceri 4eebbd4
Update `easy-purscript-nix` nix flake input
aciceri a0469eb
Fix merge
klntsky fffaed0
Fix formatting, improve unit test speed
klntsky 46be734
Fix Arion volumes
aciceri 809f3e3
Merge pull request #1561 from Plutonomicon/aciceri/upgrade-easy-pures…
klntsky 865faae
Merge branch 'dshuiski/purs-0.15-migration' of github.com:Plutonomico…
klntsky a5879fd
Fixes CIP links to https://cips.cardano.org/cip/CIP-...
bladyjoker 7620749
Merge remote-tracking branch 'plutonomicon/develop' into dshuiski/pur…
bladyjoker cfcaa6c
Trying an upgrade of cardano-node v8.1.1 and pinned cardano-configs
bladyjoker 7a6c763
Trying out plutip?ref=gergley/version-bump
bladyjoker d86035e
Merge branch 'dshuiski/purs-0.15-migration' of github.com:Plutonomico…
klntsky ea6c393
Uses cardano-node 8.1.1 from flake inputs in all places (no dockerhub)
bladyjoker 5c97dcf
Uses Kupo from flake inputs and fixes cardano-node
bladyjoker 1666aba
Merge pull request #1573 from Plutonomicon/bladyjoker/upgrading-carda…
klntsky bec703d
Merge branch 'dshuiski/purs-0.15-migration' of github.com:Plutonomico…
klntsky 8761720
Merge remote-tracking branch 'origin/develop' into dshuiski/purs-0.15…
klntsky 774c005
Remove duplicate logging from plutip
klntsky 7f43c00
Update the template
klntsky 1f2e3a4
Remove searchable docs from nix machinery for now
klntsky cf8ffac
Update template's .gitignore
klntsky 9f05925
Fix jssha import
klntsky a742692
Update CHANGELOG, docs and README
klntsky d78a808
Update the template
klntsky 485cf79
Fix markdown link
klntsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!doctype html> | ||
| <html lang="en" data-framework="purescript"> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
| </head> | ||
|
|
||
| <body> | ||
| <script type="module"> | ||
| import("./index.js").then(m => m.main()); | ||
| </script> | ||
| Examples source code is located in <i>examples/</i> directory.<br> | ||
klntsky marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </body> | ||
| </html> | ||
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import * as esbuild from "esbuild"; | ||
| import { buildOptions } from "./config.js"; | ||
|
|
||
| esbuild.build(buildOptions); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { wasmLoader } from "esbuild-plugin-wasm"; | ||
| import { polyfillNode } from "esbuild-plugin-polyfill-node"; | ||
|
|
||
| export const buildOptions = { | ||
| entryPoints: [`output/${process.argv[2]}/index.js`], | ||
| outdir: "dist/esbuild", | ||
| define: { | ||
| BROWSER_RUNTIME: process.env.BROWSER_RUNTIME, | ||
| SCRIPTS_DIR: '"fixtures/scripts"', | ||
| }, | ||
| plugins: [ | ||
| polyfillNode({ | ||
| polyfills: { | ||
| crypto: true, | ||
| fs: true, | ||
| os: true, | ||
| }, | ||
| }), | ||
| wasmLoader({ | ||
| mode: "deferred", | ||
| }), | ||
| ], | ||
| bundle: true, | ||
| platform: "browser", | ||
| format: "esm", | ||
| treeShaking: true, | ||
| logLevel: "error", | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import * as esbuild from "esbuild"; | ||
| import { buildOptions } from "./config.js"; | ||
|
|
||
| const ctx = await esbuild.context(buildOptions); | ||
| await ctx.serve({ | ||
| host: "127.0.0.1", | ||
| port: 4008, | ||
| servedir: "dist/esbuild", | ||
| }); |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /* global BROWSER_RUNTIME SCRIPTS_DIR */ | ||
|
|
||
| export const _loadScript = path => async () => { | ||
| if (typeof BROWSER_RUNTIME != "undefined" && BROWSER_RUNTIME) { | ||
| const response = await fetch(`${SCRIPTS_DIR}/${path}`); | ||
| return await response.text(); | ||
| } else { | ||
| const fs = await import("fs"); | ||
| const url = new URL(`../../fixtures/scripts/${path}`, import.meta.url); | ||
| return fs.readFileSync(url, "utf8"); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| module Ctl.Examples.Helpers.LoadScript | ||
| ( loadScript | ||
| ) where | ||
|
|
||
| import Prelude | ||
|
|
||
| import Control.Promise (Promise, toAffE) | ||
| import Effect (Effect) | ||
| import Effect.Aff (Aff) | ||
|
|
||
| foreign import _loadScript :: String -> Effect (Promise String) | ||
|
|
||
| loadScript :: String -> Aff String | ||
| loadScript filepath = toAffE $ _loadScript filepath |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.