Skip to content

Commit aaf02fd

Browse files
committed
Merge remote-tracking branch 'origin/main' into purescript-15
2 parents 576a977 + 1619ee8 commit aaf02fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+140866
-1
lines changed

Diff for: .envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

Diff for: .github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ jobs:
5151

5252
- name: Build the project
5353
run: npm run build
54+
55+
- name: Build examples
56+
run: find examples -maxdepth 2 -type f -iname package.json -execdir "npm install && npm build" \;

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
/.psa*
1010
/.vscode/
1111
/.spago/
12+
/.direnv/

Diff for: README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# purescript-react-basic-classic
22

3-
[![Build Status](https://travis-ci.com/lumihq/purescript-react-basic-classic.svg?branch=main)](https://travis-ci.com/lumihq/purescript-react-basic-classic)
3+
[![Build Status](https://github.com/lumihq/purescript-react-basic-classic/actions/workflows/ci.yml/badge.svg)](https://github.com/lumihq/purescript-react-basic-classic/actions/workflows/ci.yml)
4+
<a href="https://pursuit.purescript.org/packages/purescript-react-basic-classic">
5+
<img src="https://pursuit.purescript.org/packages/purescript-react-basic-classic/badge"
6+
alt="React Basic Classic on Pursuit">
7+
</img>
8+
</a>
49

510
This library contains the [React Basic](https://github.com/lumihq/purescript-react-basic) Classic implementation.

Diff for: examples/actions/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
output
2+
node_modules
3+
.parcel-cache
4+
dist
5+
.spago

Diff for: examples/actions/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Counter Example
2+
3+
## Building
4+
5+
```
6+
npm install
7+
npm run build
8+
npm start
9+
```
10+
11+
This will compile the PureScript source files, bundle them, and use Browserify to combine PureScript and NPM sources into a single bundle.

Diff for: examples/actions/html/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>react-basic example</title>
5+
</head>
6+
<body>
7+
<div id="container"></div>
8+
<script src="index.js"></script>
9+
</body>
10+
</html>

Diff for: examples/actions/html/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var { main } = require("../output/Main");
2+
3+
main();

0 commit comments

Comments
 (0)