Skip to content

Commit 6a544e7

Browse files
authored
Merge pull request #4 from fastly/dora-standardise
update sdk and build script
2 parents 0391366 + aff59de commit 6a544e7

File tree

4 files changed

+65
-19
lines changed

4 files changed

+65
-19
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
${{ runner.os }}-node-
2121
- run: npm ci
2222
- name: build
23-
run: npm exec webpack && npm exec js-compute-runtime ./bin/index.js ./bin/main.wasm
23+
run: npm run build

fastly.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ description = "Application template for validating requests against an OpenAPI d
66
language = "javascript"
77
manifest_version = 2
88
name = "OpenAPI Validation (JS)"
9-
service_id = ""
109

1110
[local_server]
1211
[local_server.backends]
1312
[local_server.backends.origin]
1413
url = "https://httpbin.org/"
1514

1615
[scripts]
17-
build = "npm exec webpack && npm exec js-compute-runtime ./bin/index.js ./bin/main.wasm"
16+
build = "npm run build"
1817

1918
[setup]
2019
[setup.backends]

npm-shrinkwrap.json

Lines changed: 57 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@
1313
"webpack-cli": "^5.0.1"
1414
},
1515
"dependencies": {
16-
"@fastly/js-compute": "^1.3.0",
16+
"@fastly/js-compute": "^1.3.2",
1717
"buffer": "^6.0.3",
1818
"g": "^2.0.1",
1919
"https-browserify": "^1.0.0",
2020
"openapi-backend": "^5.6.2",
2121
"process": "^0.11.10",
2222
"stream-http": "^3.2.0"
23+
},
24+
"scripts": {
25+
"prebuild": "webpack",
26+
"build": "js-compute-runtime bin/index.js bin/main.wasm",
27+
"deploy": "npm run build && fastly compute deploy"
2328
}
2429
}

0 commit comments

Comments
 (0)