@designsystemsinternational/cloudflare 0.2.1 → 0.2.3

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # DSI Cloudflare Package
2
2
 
3
- This package provides a set of helpers to deploy both static and dynamic
4
- websites to Cloudflare Workers. It comes with a nice set of tools:
3
+ This package provides a set of helpers to deploy (static) websites to Cloudflare
4
+ Workers. It comes with a nice set of tools:
5
5
 
6
6
  - A CLI to set up the deployment config (including `wrangler.jsonc`) for a repo
7
7
  - A Cloudflare Worker to password protect a static website
@@ -58,3 +58,7 @@ PASSWORD=yiah
58
58
 
59
59
  For testing the CLI, I currently just create a new test package alongside this
60
60
  folder and run `npx ../cloudflare`.
61
+
62
+ ## TODO
63
+
64
+ - Figure out needs for deploying static websites
package/cli/index.js CHANGED
@@ -180,8 +180,7 @@ if (passwordProtection) {
180
180
  console.log(`Project setup complete!
181
181
 
182
182
  Next steps:
183
- - Create a new Cloudflare Workers site with this name: ${name}
184
- - Add this build command to the site config: ${buildCmd}
183
+ - Create a new Cloudflare Workers site. The name and build command will be auto-filled
185
184
  `);
186
185
 
187
186
  if (passwordProtection) {
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/designsystemsinternational/cloudflare.git"
6
6
  },
7
- "version": "0.2.1",
7
+ "version": "0.2.3",
8
8
  "type": "module",
9
9
  "bin": {
10
10
  "cloudflare": "cli/index.js"
11
11
  },
12
12
  "scripts": {
13
13
  "dev": "cd templates && npm run build && cd .. && wrangler dev",
14
- "build": "tsc -b && vite build",
14
+ "build": "cd templates && npm run build",
15
15
  "lint": "eslint .",
16
16
  "deploy": "cd templates && npm run build && cd .. && wrangler deploy",
17
17
  "types": "wrangler types"
@@ -2,7 +2,6 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
6
  <title>Authentication Required</title>
8
7
  <script type="module" crossorigin src="/auth/assets/index-TTeq04ep.js"></script>