Skip to content

Commit 54ee0af

Browse files
authored
create containers-shared package and build images in miniflare (#9441)
* create containers-shared and move api client over * pull out shared code into containers-shared * build in miniflare * fixups * move tests into wrangler e2e * error if no docker cli * error if no exposed ports * fix test
1 parent 9e4cd16 commit 54ee0af

File tree

259 files changed

+977
-682
lines changed

Some content is hidden

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

259 files changed

+977
-682
lines changed

fixtures/container-app/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
"container:build": "wrangler containers build ./ -t container-fixture",
77
"deploy": "wrangler deploy",
88
"dev": "wrangler dev",
9-
"start": "wrangler dev",
10-
"test:ci": "vitest run",
11-
"test:watch": "vitest"
9+
"start": "wrangler dev"
1210
},
1311
"devDependencies": {
1412
"@cloudflare/workers-tsconfig": "workspace:*",
1513
"@cloudflare/workers-types": "^4.20250604.0",
1614
"ts-dedent": "^2.2.0",
1715
"typescript": "catalog:default",
18-
"vitest": "catalog:default",
1916
"wrangler": "workspace:*"
2017
},
2118
"volta": {

fixtures/container-app/tests/index.test.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

fixtures/container-app/tests/tsconfig.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

fixtures/container-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "CommonJS",
4+
"module": "ESNext",
55
"lib": ["ES2020"],
66
"types": ["@cloudflare/workers-types"],
77
"moduleResolution": "node",

fixtures/container-app/vitest.config.mts

Lines changed: 0 additions & 9 deletions
This file was deleted.

fixtures/container-app/wrangler.enable-containers.jsonc

Lines changed: 0 additions & 30 deletions
This file was deleted.

fixtures/container-app/wrangler.no-containers.jsonc

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": ["@typescript-eslint"],
9+
"rules": {
10+
"@typescript-eslint/naming-convention": [
11+
"warn",
12+
{
13+
"selector": "import",
14+
"format": ["camelCase", "PascalCase"]
15+
}
16+
],
17+
"@typescript-eslint/semi": "warn",
18+
"curly": "warn",
19+
"eqeqeq": "warn",
20+
"no-throw-literal": "warn",
21+
"semi": "off"
22+
},
23+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
24+
}
Lines changed: 6 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export * from "./src/client";
2+
export * from "./src/build";
3+
export * from "./src/login";
4+
export * from "./src/constants";
5+
export * from "./src/utils";
6+
export * from "./src/types";
7+
export * from "./src/inspect";

0 commit comments

Comments
 (0)