@storm-software/cloudflare-tools 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/executors.json +9 -0
- package/index.js +266675 -69
- package/meta.json +1 -1
- package/package.json +4 -2
- package/src/executors/cloudflare-publish/executor.js +266715 -0
- package/src/executors/cloudflare-publish/schema.d.ts +22 -0
- package/src/executors/cloudflare-publish/schema.json +110 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CloudflarePublishExecutorSchema {
|
|
2
|
+
name: string;
|
|
3
|
+
noBundle: boolean;
|
|
4
|
+
env: string;
|
|
5
|
+
outdir: string;
|
|
6
|
+
compatibilityDate: string;
|
|
7
|
+
compatibilityFlags: string[];
|
|
8
|
+
latest: boolean;
|
|
9
|
+
assets: string;
|
|
10
|
+
site: string;
|
|
11
|
+
siteInclude: string[];
|
|
12
|
+
siteExclude: string[];
|
|
13
|
+
var: string[];
|
|
14
|
+
define: string[];
|
|
15
|
+
triggers: string[];
|
|
16
|
+
routes: string[];
|
|
17
|
+
tsConfig: string;
|
|
18
|
+
minify: boolean;
|
|
19
|
+
nodeCompat: boolean;
|
|
20
|
+
dryRun: boolean;
|
|
21
|
+
keepVars: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"title": "Cloudflare Worker - Publish Executor",
|
|
5
|
+
"description": "Publish a Cloudflare worker using the Wrangler CLI",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Name of the Worker."
|
|
11
|
+
},
|
|
12
|
+
"noBundle": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"default": false,
|
|
15
|
+
"description": "Skip Wrangler’s build steps and directly deploy script without modification. Particularly useful when using custom builds."
|
|
16
|
+
},
|
|
17
|
+
"env": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Perform on a specific environment."
|
|
20
|
+
},
|
|
21
|
+
"outdir": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Path to directory where Wrangler will write the bundled Worker files."
|
|
24
|
+
},
|
|
25
|
+
"compatibilityDate": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used."
|
|
28
|
+
},
|
|
29
|
+
"compatibilityFlags": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"description": "Flags to use for compatibility checks."
|
|
35
|
+
},
|
|
36
|
+
"latest": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"default": true,
|
|
39
|
+
"description": "Use the latest version of the Workers runtime."
|
|
40
|
+
},
|
|
41
|
+
"assets": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Root folder of static assets to be served. Unlike --site, --assets does not require a Worker script to serve your assets."
|
|
44
|
+
},
|
|
45
|
+
"site": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Root folder of static assets for Workers Sites."
|
|
48
|
+
},
|
|
49
|
+
"siteInclude": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"description": "Array of .gitignore-style patterns that match file or directory names from the sites directory. Only matched items will be uploaded."
|
|
55
|
+
},
|
|
56
|
+
"siteExclude": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"description": "Array of .gitignore-style patterns that match file or directory names from the sites directory. Matched items will not be uploaded."
|
|
62
|
+
},
|
|
63
|
+
"var": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"description": "Array of key:value pairs to inject as variables into your code. The value will always be passed as a string to your Worker."
|
|
69
|
+
},
|
|
70
|
+
"define": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"description": "Array of key:value pairs to replace global identifiers in your code."
|
|
76
|
+
},
|
|
77
|
+
"triggers": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"description": "Cron schedules to attach to the deployed Worker. Refer to Cron Trigger Examples."
|
|
83
|
+
},
|
|
84
|
+
"routes": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"description": "Routes where this Worker will be deployed."
|
|
90
|
+
},
|
|
91
|
+
"tsConfig": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Path to a custom tsconfig.json file."
|
|
94
|
+
},
|
|
95
|
+
"minify": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"description": "Minify the bundled script before deploying."
|
|
98
|
+
},
|
|
99
|
+
"nodeCompat": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "Enable node.js compatibility."
|
|
102
|
+
},
|
|
103
|
+
"keepVars": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false,
|
|
106
|
+
"description": "It is recommended best practice to treat your Wrangler developer environment as a source of truth for your Worker configuration, and avoid making changes via the Cloudflare dashboard. If you change your environment variables or bindings in the Cloudflare dashboard, Wrangler will override them the next time you deploy. If you want to disable this behavior set keepVars to true."
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": []
|
|
110
|
+
}
|