wawesome 0.0.6 → 0.0.7
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 +25 -0
- package/dist/index.mjs +943 -333
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,29 @@ them (no leading or trailing hyphen, 63 characters at most). Type something else
|
|
|
41
41
|
and the CLI shows you the slug it would become (`my-client`) and asks again, rather than rewriting
|
|
42
42
|
your answer behind your back.
|
|
43
43
|
|
|
44
|
+
#### Starting from a template
|
|
45
|
+
|
|
46
|
+
`npx wawesome templates` lists what is available; `--template` starts from one:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
mkdir acme-store && cd acme-store
|
|
50
|
+
npx wawesome init --template stripe-webhook
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This goes from nothing to a deployed Function in one command. The template is downloaded over
|
|
54
|
+
plain HTTP and unpacked — **git is not required**, on any platform — and its files land exactly as
|
|
55
|
+
they are published. Only two are touched: the `name` in `package.json`, and the App and Function
|
|
56
|
+
names in `wawesome-function.json`.
|
|
57
|
+
|
|
58
|
+
Templates declare what they need rather than shipping placeholders, so the CLI then asks for each
|
|
59
|
+
environment variable the template requires — showing where in the provider's own dashboard to find
|
|
60
|
+
the value — stores them (secrets write-only), enables any outbound providers the template calls,
|
|
61
|
+
and deploys. If a value does not exist yet, leave it blank; the CLI tells you the `env set` command
|
|
62
|
+
to run once it does.
|
|
63
|
+
|
|
64
|
+
Run it in an empty directory: if any file would be overwritten, nothing is written at all and the
|
|
65
|
+
collision is named.
|
|
66
|
+
|
|
44
67
|
### 4. Build & Deploy
|
|
45
68
|
|
|
46
69
|
Deploy your serverless function to Wawesome Cloud instantly:
|
|
@@ -58,7 +81,9 @@ npx wawesome deploy
|
|
|
58
81
|
| `npx wawesome login` | Authenticate CLI with your Wawesome account via browser |
|
|
59
82
|
| `npx wawesome logout` | Log out and clear saved credentials from your machine |
|
|
60
83
|
| `npx wawesome whoami` | View current logged-in user, workspace, and gateway info |
|
|
84
|
+
| `npx wawesome templates` | Browse the template catalog (no login required) |
|
|
61
85
|
| `npx wawesome init` | Scaffold a new serverless function project in the current directory |
|
|
86
|
+
| `npx wawesome init --template <name>` | Scaffold from a catalog template, wire up what it needs, and deploy |
|
|
62
87
|
| `npx wawesome build` | Bundle TypeScript entry code into an optimized JS bundle |
|
|
63
88
|
| `npx wawesome deploy` | Build, upload, and promote a function version to production |
|
|
64
89
|
| `npx wawesome logs [func]` | List recent past invocations for a function |
|