@beeblock/svelar 0.4.9 → 0.5.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/README.md +24 -1
- package/dist/cli/bin.js +214 -56
- package/dist/cli/commands/MakeFactoryCommand.d.ts +17 -0
- package/dist/cli/commands/MakeTestCommand.d.ts +17 -0
- package/dist/cli/commands/NewCommandTemplates.d.ts +5 -0
- package/dist/cli/index.js +48 -48
- package/dist/plugins/PluginInstaller.js +1 -1
- package/dist/plugins/PluginRegistry.js +1 -1
- package/dist/testing/Factory.d.ts +37 -0
- package/dist/testing/assertions.d.ts +19 -0
- package/dist/testing/auth.d.ts +15 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/request.d.ts +20 -0
- package/dist/testing/setup.d.ts +35 -0
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -72,6 +72,24 @@ See the [Getting Started guide](https://svelar.dev/docs/getting-started) for a c
|
|
|
72
72
|
| **Dashboard** | `svelar/dashboard` | Admin dashboard with job/scheduler monitoring and log viewer |
|
|
73
73
|
| **Search** | `svelar/search` | Meilisearch integration with auto-syncing `Searchable` mixin |
|
|
74
74
|
| **Stripe** | `svelar/stripe` | Billing, subscriptions, checkout, invoices, webhook handling |
|
|
75
|
+
| **Testing** | `svelar/testing` | Factory, `useSvelarTest()`, `refreshDatabase()`, `actingAs()`, database assertions |
|
|
76
|
+
|
|
77
|
+
## Official Plugins
|
|
78
|
+
|
|
79
|
+
| Package | Description |
|
|
80
|
+
|---------|-------------|
|
|
81
|
+
| [`@beeblock/svelar-datatable`](https://www.npmjs.com/package/@beeblock/svelar-datatable) | DataTable with sorting, searching, pagination, inline editing, export, virtual scroll |
|
|
82
|
+
| [`@beeblock/svelar-media`](https://www.npmjs.com/package/@beeblock/svelar-media) | File attachments with image conversions, collections, S3/local storage |
|
|
83
|
+
| [`@beeblock/svelar-social-auth`](https://www.npmjs.com/package/@beeblock/svelar-social-auth) | OAuth providers (Google, GitHub, Facebook, Twitter, Discord) |
|
|
84
|
+
| [`@beeblock/svelar-two-factor`](https://www.npmjs.com/package/@beeblock/svelar-two-factor) | TOTP two-factor authentication with QR setup and recovery codes |
|
|
85
|
+
| [`@beeblock/svelar-settings`](https://www.npmjs.com/package/@beeblock/svelar-settings) | Typed settings with database persistence and per-user/per-team scoping |
|
|
86
|
+
| [`@beeblock/svelar-comments`](https://www.npmjs.com/package/@beeblock/svelar-comments) | Threaded comments with moderation, voting, and HasComments mixin |
|
|
87
|
+
| [`@beeblock/svelar-activity-log`](https://www.npmjs.com/package/@beeblock/svelar-activity-log) | Audit trail with LogsActivity mixin and causer tracking |
|
|
88
|
+
| [`@beeblock/svelar-backup`](https://www.npmjs.com/package/@beeblock/svelar-backup) | Database backup with local/S3 destinations and cleanup policies |
|
|
89
|
+
| [`@beeblock/svelar-charts`](https://www.npmjs.com/package/@beeblock/svelar-charts) | SVG chart components (line, bar, pie, doughnut, area) |
|
|
90
|
+
| [`@beeblock/svelar-tags`](https://www.npmjs.com/package/@beeblock/svelar-tags) | Tagging with HasTags mixin, tag types, slugs, and tag input UI |
|
|
91
|
+
| [`@beeblock/svelar-impersonate`](https://www.npmjs.com/package/@beeblock/svelar-impersonate) | User impersonation with session guards and banner UI |
|
|
92
|
+
| [`@beeblock/svelar-sitemap`](https://www.npmjs.com/package/@beeblock/svelar-sitemap) | XML sitemap generation with scheduling and model discovery |
|
|
75
93
|
|
|
76
94
|
## CLI
|
|
77
95
|
|
|
@@ -82,13 +100,18 @@ npx svelar make:model Post -m -c # model + migration + controller
|
|
|
82
100
|
npx svelar make:service PaymentService # service class
|
|
83
101
|
npx svelar make:job SendEmail # queue job
|
|
84
102
|
npx svelar make:task CleanupTokens # scheduled task
|
|
103
|
+
npx svelar make:test Auth --feature # feature test
|
|
104
|
+
npx svelar make:factory User --model User # model factory
|
|
85
105
|
npx svelar migrate # run migrations
|
|
86
106
|
npx svelar schedule:run # start the scheduler
|
|
87
107
|
npx svelar queue:work # process queue jobs
|
|
88
108
|
npx svelar tinker # interactive REPL
|
|
109
|
+
npx svelar plugin:list # list discovered plugins
|
|
110
|
+
npx svelar plugin:install @beeblock/svelar-tags # install + publish
|
|
111
|
+
npx svelar plugin:publish @beeblock/svelar-tags # publish migrations & routes
|
|
89
112
|
```
|
|
90
113
|
|
|
91
|
-
|
|
114
|
+
44 commands available. Run `npx svelar` to see all commands.
|
|
92
115
|
|
|
93
116
|
## Database Support
|
|
94
117
|
|