Skip to content
Draft
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
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ stack build

# Set up the PureScript environment for the server
cd staging
spago build
npm run build

# Ensure the compiled JavaScript is available to the client via symbolic link.
ln -s "$PWD/output" "$PWD/../client/public/js/output"
Expand Down Expand Up @@ -109,13 +109,12 @@ npm run serve:(dev|production)

### 4. Choosing a Tag

The built-in examples for Try PureScript are loaded from this GitHub repository. To change the tag that the examples are loaded from, you'll need to touch three files:
The built-in examples for Try PureScript are loaded from this GitHub repository. To change the tag that the examples are loaded from, you'll need to touch two files:

* `client/config/dev/Try.Config.purs`
* `client/config/prod/Try.Config.purs`
* `client/src/Try/Config.js`
* `client/examples/Main.purs`, in the `fromExample` function.

If you are preparing a release or if you need to adjust examples in development, you should change the tag in these three places (and ensure you're using the same tag in each place!).
If you are preparing a release or if you need to adjust examples in development, you should change the tag in these two places (and ensure you're using the same tag in each place!).

## Server API

Expand Down
15 changes: 0 additions & 15 deletions client/config/dev/Try.Config.purs

This file was deleted.

15 changes: 0 additions & 15 deletions client/config/prod/Try.Config.purs

This file was deleted.

19 changes: 10 additions & 9 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@
"private": true,
"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 client.js",
"build:production": "spago bundle-app --path config/prod/Try.Config.purs --purs-args '--censor-lib --strict' --to client.js",
"bundle": "esbuild --outfile=public/js/index.js --bundle --minify --platform=browser --format=iife --tree-shaking=true client.js",
"test": "spago test",
"build": "spago build",
"build:dev": "spago bundle --outfile client.js --force",
"build:production": "spago bundle --outfile client.js --force --strict",
"bundle:dev": "esbuild --define:__DEVELOPMENT__=true --outfile=public/js/index.js --bundle --minify --platform=browser --format=iife --tree-shaking=true client.js",
"bundle:production": "esbuild --define:__DEVELOPMENT__=false --outfile=public/js/index.js --bundle --minify --platform=browser --format=iife --tree-shaking=true client.js",
"serve": "http-server public/ -o / --cors=\"Access-Control-Allow-Origin: *\" -c-1",
"serve:dev": "npm run build:dev && npm run bundle && npm run serve",
"serve:production": "npm run build:production && npm run bundle && npm run serve",
"serve:dev": "npm run build:dev && npm run bundle:dev && npm run serve",
"serve:production": "npm run build:production && npm run bundle:production && npm run serve",
"updateConfigVersions": "node updateSharedConfigVersions.mjs src/Try/SharedConfig.purs"
},
"devDependencies": {
"esbuild": "^0.14.43",
"http-server": "^14.1.0",
"purescript": "^0.15.2",
"purescript": "^0.15.10",
"purescript-psa": "^0.8.2",
"rimraf": "^2.5.4",
"spago": "^0.20.9"
"spago": "^1.0.4"
},
"dependencies": {
"ace-builds": "^1.5.0",
Expand Down
5 changes: 0 additions & 5 deletions client/packages.dhall

This file was deleted.

45 changes: 0 additions & 45 deletions client/spago.dhall

This file was deleted.

Loading
Loading