Skip to content

Commit 0ec25f7

Browse files
authored
Merge pull request #35 from andrewMacmurray/http-client-fetch
Re-implement http client using fetch
2 parents 7710dcb + 3da0bc0 commit 0ec25f7

20 files changed

Lines changed: 725 additions & 4224 deletions
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
app
2-
.gren
3-
node_modules/
1+
server-app
2+
tests-app
3+
stream-tests-app
4+
.gren
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
app: Makefile gren.json src/Main.gren
2-
gren make --optimize Main --output=bin/app
1+
server:
2+
gren make TestsServer --output=server-app
33

4-
.PHONY: test
5-
test: app node_modules
6-
npm test
4+
tests:
5+
gren make Tests --output=tests-app
6+
7+
stream-tests:
8+
gren make LegacyStreamTests --output=stream-tests-app
79

8-
node_modules: package.json package-lock.json
9-
npm install
10+
.PHONY: test
11+
test: server tests stream-tests
12+
node run.mjs
1013

1114
.PHONY: clean
1215
clean:
1316
rm -rf .gren
14-
rm -rf node_modules
15-
rm bin/app
17+
rm server-app
18+
rm tests-app
19+
rm stream-tests-app

integration-tests/http-client/gren.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"gren-version": "0.6.2",
88
"dependencies": {
99
"direct": {
10+
"blaix/gren-effectful-tests": "5.0.2",
1011
"gren-lang/core": "7.0.0",
11-
"gren-lang/node": "local:../.."
12+
"gren-lang/node": "local:../..",
13+
"gren-lang/test": "5.0.0",
14+
"gren-lang/test-runner-node": "7.0.0"
1215
},
1316
"indirect": {
1417
"gren-lang/url": "6.0.0"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)