create-ampless 0.2.0-alpha.0 → 0.2.0-alpha.1
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/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ async function runPrompts(argProjectName) {
|
|
|
16
16
|
placeholder: "my-ampless-site",
|
|
17
17
|
defaultValue: argProjectName ?? "my-ampless-site",
|
|
18
18
|
validate: (v) => {
|
|
19
|
-
if (!v.trim()) return "Project name is required";
|
|
19
|
+
if (!v || !v.trim()) return "Project name is required";
|
|
20
20
|
if (!/^[a-z0-9-_]+$/.test(v)) return "Use lowercase letters, numbers, hyphens, underscores";
|
|
21
21
|
}
|
|
22
22
|
}),
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineAuth } from '@aws-amplify/backend'
|
|
2
|
+
import { amplessAuthConfig } from '@ampless/backend'
|
|
2
3
|
import { postConfirmation } from './post-confirmation/resource.js'
|
|
3
4
|
|
|
4
5
|
// Provisions a Cognito User Pool + Identity Pool with the three role
|
|
5
6
|
// groups (ampless-admin, ampless-editor, ampless-reader) and wires in
|
|
6
7
|
// the post-confirmation Lambda that promotes the first confirmed user
|
|
7
8
|
// to ampless-admin.
|
|
8
|
-
|
|
9
|
+
//
|
|
10
|
+
// `defineAuth` must be called from this file directly — Amplify Gen 2's
|
|
11
|
+
// import-path verifier requires it to live at amplify/auth/resource.ts.
|
|
12
|
+
// `amplessAuthConfig` just returns the props object.
|
|
13
|
+
export const auth = defineAuth(amplessAuthConfig({ postConfirmation }))
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineStorage } from '@aws-amplify/backend'
|
|
2
|
+
import { amplessStorageConfig } from '@ampless/backend'
|
|
2
3
|
|
|
3
4
|
// Provisions the ampless media + plugins bucket with guest read on
|
|
4
5
|
// `public/*` and admin/editor write on the matched prefixes. CORS and
|
|
5
6
|
// the bucket-level public-access policy are applied by
|
|
6
7
|
// defineAmplessBackend.
|
|
7
|
-
|
|
8
|
+
//
|
|
9
|
+
// `defineStorage` must be called from this file directly — Amplify Gen 2's
|
|
10
|
+
// import-path verifier requires it to live at amplify/storage/resource.ts.
|
|
11
|
+
// `amplessStorageConfig` just returns the props object.
|
|
12
|
+
export const storage = defineStorage(amplessStorageConfig())
|
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
"@radix-ui/react-dialog": "^1.1.4",
|
|
16
16
|
"@radix-ui/react-label": "^2.1.1",
|
|
17
17
|
"@radix-ui/react-slot": "^1.1.1",
|
|
18
|
-
"@tiptap/extension-image": "^
|
|
19
|
-
"@tiptap/extension-link": "^
|
|
20
|
-
"@tiptap/pm": "^
|
|
21
|
-
"@tiptap/react": "^
|
|
22
|
-
"@tiptap/starter-kit": "^
|
|
23
|
-
"@ampless/plugin-og-image": "^0.2.0-alpha.
|
|
24
|
-
"@ampless/plugin-rss": "^0.2.0-alpha.
|
|
25
|
-
"@ampless/plugin-seo": "^0.2.0-alpha.
|
|
26
|
-
"@ampless/plugin-webhook": "^0.2.0-alpha.
|
|
27
|
-
"@ampless/admin": "^0.2.0-alpha.
|
|
28
|
-
"@ampless/backend": "^0.2.0-alpha.
|
|
29
|
-
"@ampless/runtime": "^0.2.0-alpha.
|
|
18
|
+
"@tiptap/extension-image": "^3.23.4",
|
|
19
|
+
"@tiptap/extension-link": "^3.23.4",
|
|
20
|
+
"@tiptap/pm": "^3.23.4",
|
|
21
|
+
"@tiptap/react": "^3.23.4",
|
|
22
|
+
"@tiptap/starter-kit": "^3.23.4",
|
|
23
|
+
"@ampless/plugin-og-image": "^0.2.0-alpha.1",
|
|
24
|
+
"@ampless/plugin-rss": "^0.2.0-alpha.1",
|
|
25
|
+
"@ampless/plugin-seo": "^0.2.0-alpha.1",
|
|
26
|
+
"@ampless/plugin-webhook": "^0.2.0-alpha.1",
|
|
27
|
+
"@ampless/admin": "^0.2.0-alpha.1",
|
|
28
|
+
"@ampless/backend": "^0.2.0-alpha.1",
|
|
29
|
+
"@ampless/runtime": "^0.2.0-alpha.1",
|
|
30
30
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
31
|
-
"ampless": "^0.2.0-alpha.
|
|
31
|
+
"ampless": "^0.2.0-alpha.1",
|
|
32
32
|
"aws-amplify": "^6.10.0",
|
|
33
33
|
"class-variance-authority": "^0.7.1",
|
|
34
34
|
"clsx": "^2.1.1",
|
|
35
|
-
"lucide-react": "^
|
|
36
|
-
"next": "^
|
|
35
|
+
"lucide-react": "^1.16.0",
|
|
36
|
+
"next": "^16.2.6",
|
|
37
37
|
"react": "^19.0.0",
|
|
38
38
|
"react-dom": "^19.0.0",
|
|
39
39
|
"react-image-crop": "^11.0.7",
|
|
40
|
-
"tailwind-merge": "^
|
|
40
|
+
"tailwind-merge": "^3.6.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@aws-amplify/backend": "^1.13.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/client-appsync": "^3.717.0",
|
|
46
46
|
"@aws-sdk/client-cognito-identity-provider": "^3.717.0",
|
|
47
47
|
"@aws-sdk/client-dynamodb": "^3.717.0",
|
|
48
|
-
"@aws-sdk/client-s3": "^3.
|
|
48
|
+
"@aws-sdk/client-s3": "^3.1048.0",
|
|
49
49
|
"@aws-sdk/client-sqs": "^3.717.0",
|
|
50
50
|
"@aws-sdk/lib-dynamodb": "^3.717.0",
|
|
51
51
|
"@aws-sdk/util-dynamodb": "^3.717.0",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"aws-cdk-lib": "^2.174.0",
|
|
59
59
|
"postcss": "^8.4.0",
|
|
60
60
|
"tailwindcss": "^4.0.0",
|
|
61
|
-
"typescript": "^
|
|
61
|
+
"typescript": "^6.0.3"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ampless",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
4
4
|
"description": "Create a new ampless project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"homepage": "https://github.com/heavymoons/ampless#readme",
|
|
23
23
|
"bugs": "https://github.com/heavymoons/ampless/issues",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@clack/prompts": "^
|
|
25
|
+
"@clack/prompts": "^1.4.0",
|
|
26
26
|
"picocolors": "^1.1.1"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|