Skip to content

Commit 9eb6c4b

Browse files
committed
clean up templates
Signed-off-by: karthik2804 <[email protected]>
1 parent 326d6c6 commit 9eb6c4b

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

templates/http-js/content/package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
{%- if package-manager == "npm" -%}
8-
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && npx webpack --mode=production && npx mkdirp dist && npx j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
9-
{%- else -%}
10-
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && yarn exec webpack -- --mode=production && yarn exec mkdirp -- dist && yarn exec j2w -- -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
11-
{%- endif -%}
12-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && webpack --mode=production && mkdirp dist && j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
8+
"test": "echo \"Error: no test specified\" && exit 1"
139
},
1410
"keywords": [],
1511
"author": "",
@@ -24,4 +20,4 @@
2420
"@fermyon/spin-sdk": "^3.0.0",
2521
"itty-router": "^5.0.18"
2622
}
27-
}
23+
}

templates/http-ts/content/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
{%- if package-manager == "npm" -%}
8-
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && npx webpack --mode=production && npx mkdirp dist && npx j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{ project-name | kebab_case }}.wasm",
9-
{%- else -%}
10-
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && webpack --mode=production && mkdirp -- dist && j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{ project-name | kebab_case }}.wasm",
11-
{%- endif -%}
7+
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && webpack --mode=production && mkdirp dist && j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{ project-name | kebab_case }}.wasm",
128
"test": "echo \"Error: no test specified\" && exit 1"
139
},
1410
"keywords": [],

templates/redis-js/content/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
{%- if package-manager == "npm" -%}
8-
"build": "npx webpack --mode=production && npx mkdirp dist && npx j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
9-
{%- else -%}
10-
"build": "yarn exec webpack -- --mode=production && yarn exec mkdirp -- dist && yarn exec j2w -- -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
11-
{%- endif -%}
12-
"test": "echo \"Error: no test specified\" && exit 1",
13-
"postinstall": "knitwit --out-dir build/wit/knitwit --out-world combined"
7+
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && webpack --mode=production && mkdirp dist && j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
8+
"test": "echo \"Error: no test specified\" && exit 1"
149
},
1510
"keywords": [],
1611
"author": "",

templates/redis-ts/content/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
"description": "{{project-description}}",
55
"main": "index.js",
66
"scripts": {
7-
{%- if package-manager == "npm" -%}
8-
"build": "npx webpack --mode=production && npx mkdirp dist && npx j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
9-
{%- else -%}
10-
"build": "yarn exec webpack -- --mode=production && yarn exec mkdirp -- dist && yarn exec j2w -- -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
11-
{%- endif -%}
12-
"test": "echo \"Error: no test specified\" && exit 1",
13-
"postinstall": "knitwit --out-dir build/wit/knitwit --out-world combined"
7+
"build": "knitwit --out-dir build/wit/knitwit --out-world combined && webpack --mode=production && mkdirp dist && j2w -i build/bundle.js -d build/wit/knitwit -n combined -o dist/{{project-name | kebab_case}}.wasm",
8+
"test": "echo \"Error: no test specified\" && exit 1"
149
},
1510
"keywords": [],
1611
"author": "",

0 commit comments

Comments
 (0)