Skip to content

Commit 2903e97

Browse files
authored
Merge pull request #384 from karthik2804/use_init_location_in_templates
set default localtion during top level init in templates
2 parents 91d02a9 + 868c5da commit 2903e97

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

templates/http-js/content/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js -o dist/{{ project-name | kebab_case }}.wasm",
7+
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js --initLocation http://{{project-name | kebab_case}}.localhost -o dist/{{ project-name | kebab_case }}.wasm",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"keywords": [],
@@ -22,7 +22,7 @@
2222
{% when "itty" %}
2323
"itty-router": "^5.0.18",
2424
{%- endcase %}
25-
"@spinframework/build-tools": "^1.0.1",
25+
"@spinframework/build-tools": "^1.0.4",
2626
"@spinframework/wasi-http-proxy": "^1.0.0"
2727
}
2828
}

templates/http-ts/content/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js -o dist/{{ project-name | kebab_case }}.wasm",
7+
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js --initLocation http://{{project-name | kebab_case}}.localhost -o dist/{{ project-name | kebab_case }}.wasm",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"keywords": [],
@@ -24,7 +24,7 @@
2424
{% when "itty" %}
2525
"itty-router": "^5.0.18",
2626
{%- endcase %}
27-
"@spinframework/build-tools": "^1.0.1",
27+
"@spinframework/build-tools": "^1.0.4",
2828
"@spinframework/wasi-http-proxy": "^1.0.0"
2929
}
3030
}

templates/redis-js/content/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js -o dist/{{ project-name | kebab_case }}.wasm",
7+
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js --initLocation http://{{project-name | kebab_case}}.localhost -o dist/{{ project-name | kebab_case }}.wasm",
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"postinstall": "knitwit --out-dir build/wit/knitwit --out-world combined"
1010
},
@@ -17,7 +17,7 @@
1717
"webpack-cli": "^4.10.0"
1818
},
1919
"dependencies": {
20-
"@spinframework/build-tools": "^1.0.1",
20+
"@spinframework/build-tools": "^1.0.4",
2121
"@spinframework/spin-trigger-redis": "^1.0.0"
2222
}
2323
}

templates/redis-ts/content/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js -o dist/{{ project-name | kebab_case }}.wasm",
7+
"build": "npx webpack && mkdirp dist && j2w -i build/bundle.js --initLocation http://{{project-name | kebab_case}}.localhost -o dist/{{ project-name | kebab_case }}.wasm",
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"postinstall": "knitwit --out-dir build/wit/knitwit --out-world combined"
1010
},
@@ -19,7 +19,7 @@
1919
"webpack-cli": "^4.10.0"
2020
},
2121
"dependencies": {
22-
"@spinframework/build-tools": "^1.0.1",
22+
"@spinframework/build-tools": "^1.0.4",
2323
"@spinframework/spin-trigger-redis": "^1.0.0"
2424
}
2525
}

0 commit comments

Comments
 (0)