Skip to content
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

Updated examples #4

Merged
merged 3 commits into from
May 16, 2022
Merged
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: focal
sudo: required
language: node_js
node_js:
Expand Down
5 changes: 5 additions & 0 deletions examples/actions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
output
node_modules
.parcel-cache
dist
.spago
12 changes: 12 additions & 0 deletions examples/actions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Counter Example

## Building

```
npm install
make all
```

This will compile the PureScript source files, bundle them, and use Browserify to combine PureScript and NPM sources into a single bundle.

Then open `html/index.html` in your browser.
10 changes: 10 additions & 0 deletions examples/actions/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>react-basic example</title>
</head>
<body>
<div id="container"></div>
<script src="index.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions examples/actions/html/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var { main } = require("../output/Main");

main();
Loading