@bwog/create-bwog 0.0.0-stage → 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.
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "bwog-cloudflare-worker-template",
3
+ "private": "true",
4
+ "scripts": {
5
+ "build": "npx bwog build",
6
+ "deploy": "npx wrangler deploy"
7
+ },
8
+ "dependencies": {
9
+ "@bwog/bwog": "^0.1.0",
10
+ "wrangler": "^4.162.0"
11
+ }
12
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "bwog-app",
3
+ "main": "./node_modules/bwog/cloudflare/worker.js",
4
+ "upload_source_maps": true,
5
+ "compatibility_date": "2026-11-11",
6
+ "workers_dev": false,
7
+ "preview_urls": false,
8
+ "durable_objects": {
9
+ "bindings": [
10
+ {
11
+ "name": "DATABASE",
12
+ "class_name": "Database"
13
+ }
14
+ ]
15
+ },
16
+ "r2_buckets": [
17
+ {
18
+ "binding": "STORE",
19
+ "bucket_name": "blog-public"
20
+ },
21
+ {
22
+ "binding": "PRIVATE_BUCKET",
23
+ "bucket_name": "blog-private"
24
+ }
25
+ ],
26
+ "exports": {
27
+ "Database": {
28
+ "type": "durable-object",
29
+ "storage": "sqlite"
30
+ }
31
+ },
32
+ "keep_vars": true,
33
+ "vars": {
34
+ "SITE_DOMAIN": "example.com",
35
+ "GOOGLE_OAUTH_AUTHORIZED_USER_ID": "12345ABCDE",
36
+ "GOOGLE_OAUTH_CLIENT_ID": "12345ABCDE.apps.googleusercontent.com",
37
+ "AUTHOR_NAME": "Alice Smith",
38
+ "AUTHOR_EMAIL": "author@example.com",
39
+ "ENABLE_AP": "false",
40
+ "AP_HANDLE": "author@example.com",
41
+ "AP_USERNAME": "author",
42
+ "AP_PUBLIC_KEY_STRING": "-----BEGIN PUBLIC KEY-----\n1234567890\n-----END PUBLIC KEY-----"
43
+ },
44
+ "secrets": {
45
+ "required": ["JWT_SECRET", "GOOGLE_OAUTH_CLIENT_SECRET"]
46
+ },
47
+ "alias": {
48
+ "bwog.config": "./bwog.config.js"
49
+ },
50
+ "routes": [
51
+ {
52
+ "pattern": "example.org/setup*",
53
+ "zone_name": "example.org"
54
+ },
55
+ {
56
+ "pattern": "example.org/generate*",
57
+ "zone_name": "example.org"
58
+ },
59
+ {
60
+ "pattern": "example.org/post*",
61
+ "zone_name": "example.org"
62
+ },
63
+ {
64
+ "pattern": "example.org/login*",
65
+ "zone_name": "example.org"
66
+ },
67
+ {
68
+ "pattern": "example.org/logout*",
69
+ "zone_name": "example.org"
70
+ }
71
+ ]
72
+ }
@@ -0,0 +1,15 @@
1
+ NODE_ENV=production
2
+ GOOGLE_OAUTH_CLIENT_ID=12345ABCDE.apps.googleusercontent.com
3
+ GOOGLE_OAUTH_CLIENT_SECRET=12345ABCDE
4
+ GOOGLE_OAUTH_AUTHORIZED_USER_ID=12345ABCDE
5
+ SITE_DOMAIN=example.com
6
+ SESSION_SECRET=12345ABCDE
7
+ PUBLIC_PATH=/var/www/example
8
+ DATABASE_TYPE=JSON
9
+ DATABASE_FILE=/usr/share/bwog/blog.json
10
+ AUTHOR_NAME=Alice Smith
11
+ AUTHOR_EMAIL=author@example.com
12
+ ENABLE_AP=false
13
+ AP_HANDLE=author@example.com
14
+ AP_USERNAME=author
15
+ AP_PUBLIC_KEY_STRING="-----BEGIN PUBLIC KEY-----\nabc123\n-----END PUBLIC KEY-----"
@@ -0,0 +1,5 @@
1
+ import resolve from 'node:path';
2
+
3
+ export default {
4
+ templates: resolve('./templates'),
5
+ }