@donotdev/cli 0.0.37 → 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.
- package/LICENSE.md +21 -48
- package/dependencies-matrix.json +24 -24
- package/dist/bin/commands/agent-setup.js +6963 -123
- package/dist/bin/commands/build.js +4 -1
- package/dist/bin/commands/bump.js +23 -12
- package/dist/bin/commands/cacheout.js +17 -1
- package/dist/bin/commands/coach.js +4 -1
- package/dist/bin/commands/create-app.js +16 -2
- package/dist/bin/commands/create-project.js +17 -3
- package/dist/bin/commands/db.js +1708 -98
- package/dist/bin/commands/deploy.js +142 -96
- package/dist/bin/commands/dev.js +6 -5
- package/dist/bin/commands/doctor.js +4 -1
- package/dist/bin/commands/emu.js +6 -5
- package/dist/bin/commands/format.js +5 -3
- package/dist/bin/commands/get-demo.js +16 -2
- package/dist/bin/commands/make-admin.js +1717 -87
- package/dist/bin/commands/preview.js +6 -5
- package/dist/bin/commands/seed.js +1708 -98
- package/dist/bin/commands/setup-cicd.js +4 -1
- package/dist/bin/commands/setup.js +21 -18
- package/dist/bin/commands/staging.js +142 -96
- package/dist/bin/commands/sync-secrets.js +4 -1
- package/dist/bin/commands/type-check.js +4 -1
- package/dist/bin/commands/wai.js +4 -1
- package/dist/bin/dndev.js +21 -1
- package/dist/bin/donotdev.js +21 -1
- package/dist/index.js +170 -105
- package/package.json +2 -2
- package/templates/functions-supabase/supabase/functions/.env.example +12 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
- package/templates/root-consumer/.claude/commands/design.md.example +31 -0
- package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
|
@@ -7745,7 +7745,10 @@ var init_PathResolver = __esm({
|
|
|
7745
7745
|
*/
|
|
7746
7746
|
getEmptyCjsModulePath() {
|
|
7747
7747
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7748
|
-
if (!resolved)
|
|
7748
|
+
if (!resolved)
|
|
7749
|
+
throw new Error(
|
|
7750
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7751
|
+
);
|
|
7749
7752
|
return resolved;
|
|
7750
7753
|
}
|
|
7751
7754
|
// === PRIVATE METHODS ===
|
|
@@ -7794,7 +7794,10 @@ var init_PathResolver = __esm({
|
|
|
7794
7794
|
*/
|
|
7795
7795
|
getEmptyCjsModulePath() {
|
|
7796
7796
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7797
|
-
if (!resolved)
|
|
7797
|
+
if (!resolved)
|
|
7798
|
+
throw new Error(
|
|
7799
|
+
"Cannot resolve @donotdev/core/empty \u2014 package setup is broken"
|
|
7800
|
+
);
|
|
7798
7801
|
return resolved;
|
|
7799
7802
|
}
|
|
7800
7803
|
// === PRIVATE METHODS ===
|
|
@@ -9220,7 +9223,7 @@ var init_base_generator = __esm({
|
|
|
9220
9223
|
* @param {string} name - Generator display name
|
|
9221
9224
|
* @param {GeneratorOptions} options - Generator options
|
|
9222
9225
|
*
|
|
9223
|
-
* @version 0.0
|
|
9226
|
+
* @version 0.1.0
|
|
9224
9227
|
* @since 0.0.1
|
|
9225
9228
|
* @author AMBROISE PARK Consulting
|
|
9226
9229
|
*/
|
|
@@ -9239,7 +9242,7 @@ var init_base_generator = __esm({
|
|
|
9239
9242
|
*
|
|
9240
9243
|
* @returns {Promise<GeneratorResult>} Generation result
|
|
9241
9244
|
*
|
|
9242
|
-
* @version 0.0
|
|
9245
|
+
* @version 0.1.0
|
|
9243
9246
|
* @since 0.0.1
|
|
9244
9247
|
* @author AMBROISE PARK Consulting
|
|
9245
9248
|
*/
|
|
@@ -9291,7 +9294,7 @@ var init_base_generator = __esm({
|
|
|
9291
9294
|
*
|
|
9292
9295
|
* @param {GeneratorResult} result - Generator result to update
|
|
9293
9296
|
*
|
|
9294
|
-
* @version 0.0
|
|
9297
|
+
* @version 0.1.0
|
|
9295
9298
|
* @since 0.0.1
|
|
9296
9299
|
* @author AMBROISE PARK Consulting
|
|
9297
9300
|
*/
|
|
@@ -9303,7 +9306,7 @@ var init_base_generator = __esm({
|
|
|
9303
9306
|
*
|
|
9304
9307
|
* @param {GeneratorResult} result - Generator result to update
|
|
9305
9308
|
*
|
|
9306
|
-
* @version 0.0
|
|
9309
|
+
* @version 0.1.0
|
|
9307
9310
|
* @since 0.0.1
|
|
9308
9311
|
* @author AMBROISE PARK Consulting
|
|
9309
9312
|
*/
|
|
@@ -9314,7 +9317,7 @@ var init_base_generator = __esm({
|
|
|
9314
9317
|
*
|
|
9315
9318
|
* @returns {Promise<string[]>} Array of absolute paths to entity files
|
|
9316
9319
|
*
|
|
9317
|
-
* @version 0.0
|
|
9320
|
+
* @version 0.1.0
|
|
9318
9321
|
* @since 0.0.1
|
|
9319
9322
|
* @author AMBROISE PARK Consulting
|
|
9320
9323
|
*/
|
|
@@ -9343,7 +9346,7 @@ var init_base_generator = __esm({
|
|
|
9343
9346
|
*
|
|
9344
9347
|
* @param {GeneratorResult} result - Generator result to update
|
|
9345
9348
|
*
|
|
9346
|
-
* @version 0.0
|
|
9349
|
+
* @version 0.1.0
|
|
9347
9350
|
* @since 0.0.1
|
|
9348
9351
|
* @author AMBROISE PARK Consulting
|
|
9349
9352
|
*/
|
|
@@ -9357,7 +9360,7 @@ var init_base_generator = __esm({
|
|
|
9357
9360
|
* @param {GeneratorResult} result - Generator result to update
|
|
9358
9361
|
* @returns {Promise<boolean>} True if file was written, false if skipped
|
|
9359
9362
|
*
|
|
9360
|
-
* @version 0.0
|
|
9363
|
+
* @version 0.1.0
|
|
9361
9364
|
* @since 0.0.1
|
|
9362
9365
|
* @author AMBROISE PARK Consulting
|
|
9363
9366
|
*/
|
|
@@ -9407,7 +9410,7 @@ var init_base_generator = __esm({
|
|
|
9407
9410
|
* @param {Record<string, any>} context - Context data for the template
|
|
9408
9411
|
* @returns {Promise<string>} Rendered template content
|
|
9409
9412
|
*
|
|
9410
|
-
* @version 0.0
|
|
9413
|
+
* @version 0.1.0
|
|
9411
9414
|
* @since 0.0.1
|
|
9412
9415
|
* @author AMBROISE PARK Consulting
|
|
9413
9416
|
*/
|
|
@@ -9476,7 +9479,7 @@ var init_base_generator = __esm({
|
|
|
9476
9479
|
* @param {GeneratorResult} result - Generator result to update
|
|
9477
9480
|
* @returns {Promise<boolean>} True if file was copied, false if skipped
|
|
9478
9481
|
*
|
|
9479
|
-
* @version 0.0
|
|
9482
|
+
* @version 0.1.0
|
|
9480
9483
|
* @since 0.0.1
|
|
9481
9484
|
* @author AMBROISE PARK Consulting
|
|
9482
9485
|
*/
|
|
@@ -9547,7 +9550,7 @@ var init_base_generator = __esm({
|
|
|
9547
9550
|
* @param {GeneratorResult} result - Generator result to update
|
|
9548
9551
|
* @returns {Promise<boolean>} True if any files were copied
|
|
9549
9552
|
*
|
|
9550
|
-
* @version 0.0
|
|
9553
|
+
* @version 0.1.0
|
|
9551
9554
|
* @since 0.0.1
|
|
9552
9555
|
* @author AMBROISE PARK Consulting
|
|
9553
9556
|
*/
|
|
@@ -9624,7 +9627,7 @@ var init_base_generator = __esm({
|
|
|
9624
9627
|
* @param {string} filePath - Path to the file to check
|
|
9625
9628
|
* @returns {Promise<boolean>} True if the file is binary
|
|
9626
9629
|
*
|
|
9627
|
-
* @version 0.0
|
|
9630
|
+
* @version 0.1.0
|
|
9628
9631
|
* @since 0.0.1
|
|
9629
9632
|
* @author AMBROISE PARK Consulting
|
|
9630
9633
|
*/
|
|
@@ -9656,7 +9659,7 @@ var init_base_generator = __esm({
|
|
|
9656
9659
|
* @param {string} filePath - Path to the module file
|
|
9657
9660
|
* @returns {Promise<any>} The loaded module
|
|
9658
9661
|
*
|
|
9659
|
-
* @version 0.0
|
|
9662
|
+
* @version 0.1.0
|
|
9660
9663
|
* @since 0.0.1
|
|
9661
9664
|
* @author AMBROISE PARK Consulting
|
|
9662
9665
|
*/
|
|
@@ -9681,7 +9684,7 @@ var init_base_generator = __esm({
|
|
|
9681
9684
|
* @param {boolean} [lowercase=true] - Whether to convert to lowercase
|
|
9682
9685
|
* @returns {string} Formatted file name (e.g. "productSchema")
|
|
9683
9686
|
*
|
|
9684
|
-
* @version 0.0
|
|
9687
|
+
* @version 0.1.0
|
|
9685
9688
|
* @since 0.0.1
|
|
9686
9689
|
* @author AMBROISE PARK Consulting
|
|
9687
9690
|
*/
|
|
@@ -9698,7 +9701,7 @@ var init_base_generator = __esm({
|
|
|
9698
9701
|
* @param {string} str - String to convert
|
|
9699
9702
|
* @returns {string} camelCase string
|
|
9700
9703
|
*
|
|
9701
|
-
* @version 0.0
|
|
9704
|
+
* @version 0.1.0
|
|
9702
9705
|
* @since 0.0.1
|
|
9703
9706
|
* @author AMBROISE PARK Consulting
|
|
9704
9707
|
*/
|
|
@@ -9714,7 +9717,7 @@ var init_base_generator = __esm({
|
|
|
9714
9717
|
* @param {string} str - String to convert
|
|
9715
9718
|
* @returns {string} PascalCase string
|
|
9716
9719
|
*
|
|
9717
|
-
* @version 0.0
|
|
9720
|
+
* @version 0.1.0
|
|
9718
9721
|
* @since 0.0.1
|
|
9719
9722
|
* @author AMBROISE PARK Consulting
|
|
9720
9723
|
*/
|
|
@@ -9727,7 +9730,7 @@ var init_base_generator = __esm({
|
|
|
9727
9730
|
* @param {string} str - String to convert
|
|
9728
9731
|
* @returns {string} kebab-case string
|
|
9729
9732
|
*
|
|
9730
|
-
* @version 0.0
|
|
9733
|
+
* @version 0.1.0
|
|
9731
9734
|
* @since 0.0.1
|
|
9732
9735
|
* @author AMBROISE PARK Consulting
|
|
9733
9736
|
*/
|
|
@@ -9739,7 +9742,7 @@ var init_base_generator = __esm({
|
|
|
9739
9742
|
*
|
|
9740
9743
|
* @param {GeneratorResult} result - Generator result
|
|
9741
9744
|
*
|
|
9742
|
-
* @version 0.0
|
|
9745
|
+
* @version 0.1.0
|
|
9743
9746
|
* @since 0.0.1
|
|
9744
9747
|
* @author AMBROISE PARK Consulting
|
|
9745
9748
|
*/
|