@donotdev/cli 0.0.19 → 0.0.20

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.
Files changed (45) hide show
  1. package/dependencies-matrix.json +135 -47
  2. package/dist/bin/commands/bump.js +5 -2
  3. package/dist/bin/commands/create-app.js +1 -1
  4. package/dist/bin/commands/create-project.js +13 -2
  5. package/dist/bin/commands/deploy.js +18 -0
  6. package/dist/bin/commands/setup.js +3 -0
  7. package/dist/bin/commands/staging.js +18 -0
  8. package/dist/bin/commands/type-check.js +10 -4
  9. package/dist/bin/dndev.js +120 -179
  10. package/dist/bin/donotdev.js +120 -179
  11. package/dist/index.js +31 -2
  12. package/package.json +1 -1
  13. package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
  14. package/templates/app-demo/public/favicon.svg.example +1 -0
  15. package/templates/app-demo/public/icon-192x192.png.example +0 -0
  16. package/templates/app-demo/public/icon-512x512.png.example +0 -0
  17. package/templates/app-demo/src/App.tsx.example +3 -1
  18. package/templates/app-demo/src/config/app.ts.example +1 -0
  19. package/templates/app-demo/src/entities/booking.ts.example +75 -0
  20. package/templates/app-demo/src/entities/onboarding.ts.example +160 -0
  21. package/templates/app-demo/src/entities/product.ts.example +12 -0
  22. package/templates/app-demo/src/entities/quote.ts.example +70 -0
  23. package/templates/app-demo/src/pages/ChangelogPage.tsx.example +28 -1
  24. package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +88 -0
  25. package/templates/app-demo/src/pages/DashboardPage.tsx.example +2 -0
  26. package/templates/app-demo/src/pages/HomePage.tsx.example +355 -2
  27. package/templates/app-demo/src/pages/OnboardingPage.tsx.example +47 -0
  28. package/templates/app-demo/src/pages/PricingPage.tsx.example +28 -1
  29. package/templates/app-demo/src/pages/ProductsPage.tsx.example +2 -0
  30. package/templates/app-demo/src/pages/ProfilePage.tsx.example +2 -0
  31. package/templates/app-demo/src/pages/SettingsPage.tsx.example +2 -0
  32. package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +22 -16
  33. package/templates/app-demo/src/pages/ShowcasePage.tsx.example +3 -1
  34. package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +147 -51
  35. package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +103 -21
  36. package/templates/app-demo/src/pages/components/componentConfig.ts.example +139 -59
  37. package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +12 -1
  38. package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +10 -1
  39. package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +10 -1
  40. package/templates/app-demo/src/themes.css.example +289 -77
  41. package/templates/app-demo/stats.html.example +4949 -0
  42. package/templates/app-next/src/locales/home_en.json.example +6 -6
  43. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  44. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
  45. package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
@@ -1,174 +1,174 @@
1
- # Version Control Guide
2
-
3
- **How to upgrade DoNotDev framework packages in your project**
4
-
5
- ---
6
-
7
- ## Quick Start
8
-
9
- ```bash
10
- # Check for available updates
11
- dndev bump --check
12
-
13
- # Apply safe updates (minor/patch versions)
14
- dndev bump
15
-
16
- # Preview changes without applying
17
- dndev bump --dry-run
18
- ```
19
-
20
- ---
21
-
22
- ## How It Works
23
-
24
- ### Automatic Updates
25
-
26
- **Patch versions (0.0.x):**
27
- - Handled automatically by `bun install`
28
- - No action needed - `^` ranges allow automatic patch updates
29
- - Example: `^0.0.2` → `0.0.3`, `0.0.4`, etc.
30
-
31
- **Minor versions (0.x.y):**
32
- - Handled automatically by `dndev bump`
33
- - **RISK FREE:** All changes are backward compatible via deprecation
34
- - No breaking changes in 0.x.y range
35
- - Example: `^0.0.2` → `^0.1.0` (auto-updated, safe)
36
-
37
- ### Manual Validation Required
38
-
39
- **Major versions (0.*.* → 1.x.y):**
40
- - `dndev bump` detects major version changes
41
- - Shows migration guide with breaking changes
42
- - **You must validate manually** before updating
43
- - **Only place where breaking changes occur**
44
- - Example: `^0.1.0` → `^1.0.0` (requires validation)
45
-
46
- ---
47
-
48
- ## Upgrade Process
49
-
50
- ### Step 1: Check for Updates
51
-
52
- ```bash
53
- dndev bump --check
54
- ```
55
-
56
- This shows:
57
- - Available updates for `@donotdev/*` packages (from npm)
58
- - Available updates for external peer dependencies (from matrix)
59
- - Major version changes (with migration guides)
60
-
61
- ### Step 2: Review Migration Guides
62
-
63
- If major version changes are detected:
64
- - Read the migration guide shown in the output
65
- - Check for breaking changes that affect your code
66
- - Review the migration guide file (path shown in output)
67
-
68
- ### Step 3: Apply Updates
69
-
70
- ```bash
71
- # Safe updates (minor/patch) - auto-applied
72
- dndev bump
73
-
74
- # Or preview first
75
- dndev bump --dry-run
76
- ```
77
-
78
- **What gets updated:**
79
- - `@donotdev/*` packages: Updated to latest compatible version
80
- - External peer dependencies: Updated to matrix versions
81
- - All `package.json` files in your project
82
-
83
- ---
84
-
85
- ## Understanding Version Ranges
86
-
87
- ### `^` Range (Caret)
88
-
89
- **What it means:**
90
- - Allows updates to latest minor/patch version
91
- - Same major version required
92
- - Example: `^0.0.2` allows `0.0.2` through `0.0.9`, but not `0.1.0`
93
-
94
- **Why we use it:**
95
- - Automatic patch updates via `bun install`
96
- - Safe minor updates via `dndev bump`
97
- - Prevents accidental major version updates
98
-
99
- ### Version Format
100
-
101
- ```json
102
- {
103
- "dependencies": {
104
- "@donotdev/core": "^0.0.2",
105
- "react": "^19.2.3"
106
- }
107
- }
108
- ```
109
-
110
- - `^0.0.2` = allows `0.0.2` to `0.0.x` (patch updates)
111
- - `^0.1.0` = allows `0.1.0` to `0.x.x` (minor updates)
112
- - `^1.0.0` = allows `1.0.0` to `1.x.x` (minor updates, not `2.0.0`)
113
-
114
- ---
115
-
116
- ## Migration Guides
117
-
118
- When upgrading major versions, migration guides are provided:
119
-
120
- **Location:** Shown in `dndev bump` output
121
-
122
- **Contains:**
123
- - List of breaking changes
124
- - Step-by-step migration instructions
125
- - Code examples for updated APIs
126
-
127
- **Example:**
128
- ```
129
- ⚠️ Major version update detected: @donotdev/core 0.1.0 → 1.0.0
130
-
131
- Migration guide: docs/migration/v0.1-to-v1.0.md
132
-
133
- Breaking changes:
134
- - Removed useAuth() - use useAuthentication() instead
135
- - Theme API changed - see migration guide
136
-
137
- Review the migration guide before updating.
138
- ```
139
-
140
- ---
141
-
142
- ## Troubleshooting
143
-
144
- ### "No updates available"
145
-
146
- - All packages are up to date
147
- - Or you're already on latest version
148
-
149
- ### "Major version change detected"
150
-
151
- - Review migration guide
152
- - Check breaking changes
153
- - Update code if needed
154
- - Run `dndev bump` again to apply
155
-
156
- ### "Package not found on npm"
157
-
158
- - Package may not be published yet
159
- - Check package name spelling
160
- - Verify you're using correct registry
161
-
162
- ---
163
-
164
- ## Best Practices
165
-
166
- 1. **Regular updates:** Run `dndev bump --check` monthly
167
- 2. **Test after updates:** Run your test suite after applying updates
168
- 3. **Review major changes:** Always read migration guides for major versions
169
- 4. **Use `--dry-run`:** Preview changes before applying
170
- 5. **Commit changes:** Commit updated `package.json` files after successful updates
171
-
172
- ---
173
-
174
- **Keep your dependencies up to date. Stay secure. Stay compatible.**
1
+ # Version Control Guide
2
+
3
+ **How to upgrade DoNotDev framework packages in your project**
4
+
5
+ ---
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ # Check for available updates
11
+ dndev bump --check
12
+
13
+ # Apply safe updates (minor/patch versions)
14
+ dndev bump
15
+
16
+ # Preview changes without applying
17
+ dndev bump --dry-run
18
+ ```
19
+
20
+ ---
21
+
22
+ ## How It Works
23
+
24
+ ### Automatic Updates
25
+
26
+ **Patch versions (0.0.x):**
27
+ - Handled automatically by `bun install`
28
+ - No action needed - `^` ranges allow automatic patch updates
29
+ - Example: `^0.0.2` → `0.0.3`, `0.0.4`, etc.
30
+
31
+ **Minor versions (0.x.y):**
32
+ - Handled automatically by `dndev bump`
33
+ - **RISK FREE:** All changes are backward compatible via deprecation
34
+ - No breaking changes in 0.x.y range
35
+ - Example: `^0.0.2` → `^0.1.0` (auto-updated, safe)
36
+
37
+ ### Manual Validation Required
38
+
39
+ **Major versions (0.*.* → 1.x.y):**
40
+ - `dndev bump` detects major version changes
41
+ - Shows migration guide with breaking changes
42
+ - **You must validate manually** before updating
43
+ - **Only place where breaking changes occur**
44
+ - Example: `^0.1.0` → `^1.0.0` (requires validation)
45
+
46
+ ---
47
+
48
+ ## Upgrade Process
49
+
50
+ ### Step 1: Check for Updates
51
+
52
+ ```bash
53
+ dndev bump --check
54
+ ```
55
+
56
+ This shows:
57
+ - Available updates for `@donotdev/*` packages (from npm)
58
+ - Available updates for external peer dependencies (from matrix)
59
+ - Major version changes (with migration guides)
60
+
61
+ ### Step 2: Review Migration Guides
62
+
63
+ If major version changes are detected:
64
+ - Read the migration guide shown in the output
65
+ - Check for breaking changes that affect your code
66
+ - Review the migration guide file (path shown in output)
67
+
68
+ ### Step 3: Apply Updates
69
+
70
+ ```bash
71
+ # Safe updates (minor/patch) - auto-applied
72
+ dndev bump
73
+
74
+ # Or preview first
75
+ dndev bump --dry-run
76
+ ```
77
+
78
+ **What gets updated:**
79
+ - `@donotdev/*` packages: Updated to latest compatible version
80
+ - External peer dependencies: Updated to matrix versions
81
+ - All `package.json` files in your project
82
+
83
+ ---
84
+
85
+ ## Understanding Version Ranges
86
+
87
+ ### `^` Range (Caret)
88
+
89
+ **What it means:**
90
+ - Allows updates to latest minor/patch version
91
+ - Same major version required
92
+ - Example: `^0.0.2` allows `0.0.2` through `0.0.9`, but not `0.1.0`
93
+
94
+ **Why we use it:**
95
+ - Automatic patch updates via `bun install`
96
+ - Safe minor updates via `dndev bump`
97
+ - Prevents accidental major version updates
98
+
99
+ ### Version Format
100
+
101
+ ```json
102
+ {
103
+ "dependencies": {
104
+ "@donotdev/core": "^0.0.2",
105
+ "react": "^19.2.3"
106
+ }
107
+ }
108
+ ```
109
+
110
+ - `^0.0.2` = allows `0.0.2` to `0.0.x` (patch updates)
111
+ - `^0.1.0` = allows `0.1.0` to `0.x.x` (minor updates)
112
+ - `^1.0.0` = allows `1.0.0` to `1.x.x` (minor updates, not `2.0.0`)
113
+
114
+ ---
115
+
116
+ ## Migration Guides
117
+
118
+ When upgrading major versions, migration guides are provided:
119
+
120
+ **Location:** Shown in `dndev bump` output
121
+
122
+ **Contains:**
123
+ - List of breaking changes
124
+ - Step-by-step migration instructions
125
+ - Code examples for updated APIs
126
+
127
+ **Example:**
128
+ ```
129
+ ⚠️ Major version update detected: @donotdev/core 0.1.0 → 1.0.0
130
+
131
+ Migration guide: docs/migration/v0.1-to-v1.0.md
132
+
133
+ Breaking changes:
134
+ - Removed useAuth() - use useAuthentication() instead
135
+ - Theme API changed - see migration guide
136
+
137
+ Review the migration guide before updating.
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Troubleshooting
143
+
144
+ ### "No updates available"
145
+
146
+ - All packages are up to date
147
+ - Or you're already on latest version
148
+
149
+ ### "Major version change detected"
150
+
151
+ - Review migration guide
152
+ - Check breaking changes
153
+ - Update code if needed
154
+ - Run `dndev bump` again to apply
155
+
156
+ ### "Package not found on npm"
157
+
158
+ - Package may not be published yet
159
+ - Check package name spelling
160
+ - Verify you're using correct registry
161
+
162
+ ---
163
+
164
+ ## Best Practices
165
+
166
+ 1. **Regular updates:** Run `dndev bump --check` monthly
167
+ 2. **Test after updates:** Run your test suite after applying updates
168
+ 3. **Review major changes:** Always read migration guides for major versions
169
+ 4. **Use `--dry-run`:** Preview changes before applying
170
+ 5. **Commit changes:** Commit updated `package.json` files after successful updates
171
+
172
+ ---
173
+
174
+ **Keep your dependencies up to date. Stay secure. Stay compatible.**