@botim/botim-cli 0.1.4 → 0.1.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.
@@ -0,0 +1,12 @@
1
+ {
2
+ app: 'dummy-app',
3
+ type: 'hybrid',
4
+ theme: {
5
+ favorite: false,
6
+ container: 2,
7
+ titleBgColor: '000000',
8
+ titleTextColor: 'FFFFFF',
9
+ hideStatusBar: 0,
10
+ hideCloseButton: 1
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ cur_branch=`git symbolic-ref --short -q HEAD`
4
+
5
+ TAG=r-${cur_branch}-$(date +%Y%m%d%H%M%S)
6
+ git tag $TAG
7
+ git push origin $TAG
@@ -0,0 +1,37 @@
1
+ # Mini Program Starter Template - AI Rules
2
+
3
+ ## Error Handling Rules
4
+
5
+ 1. **Async API Call Errors**:
6
+ - Async API call errors should throw `AppError`
7
+ - Use `logger.error` to record all async API call errors
8
+
9
+ 2. **Event Handler Errors**:
10
+ - Errors in event handlers should not happen (prevent with proper validation)
11
+ - If an error occurs, it should be caught and logged appropriately
12
+
13
+ 3. **Error Boundary**:
14
+ - The error boundary itself cannot throw any errors
15
+ - Must be robust and handle all error scenarios gracefully
16
+
17
+ 4. **React Component Errors**:
18
+ - Errors in React component render should be caught by ErrorBoundary
19
+ - Errors in component lifecycle should be caught by ErrorBoundary
20
+ - Errors in constructor should be caught by ErrorBoundary
21
+
22
+ ## Code Quality
23
+
24
+ - Follow TypeScript strict mode
25
+ - Use ESLint rules as configured
26
+ - Maintain consistent code style (4 spaces indentation)
27
+ - Use i18next for all user-facing strings
28
+ - Follow React hooks rules
29
+
30
+ ## Architecture
31
+
32
+ - Use Zustand for state management
33
+ - Use React Router for routing
34
+ - Use Emotion for styling
35
+ - Follow the established folder structure
36
+ - Keep components reusable and modular
37
+
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ {
2
+ app: 'dummy-app',
3
+ type: 'hybrid',
4
+ theme: {
5
+ favorite: false,
6
+ container: 2,
7
+ titleBgColor: '000000',
8
+ titleTextColor: 'FFFFFF',
9
+ hideStatusBar: 0,
10
+ hideCloseButton: 1
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ cur_branch=`git symbolic-ref --short -q HEAD`
4
+
5
+ TAG=r-${cur_branch}-$(date +%Y%m%d%H%M%S)
6
+ git tag $TAG
7
+ git push origin $TAG
@@ -0,0 +1,37 @@
1
+ # Mini Program Starter Template - AI Rules
2
+
3
+ ## Error Handling Rules
4
+
5
+ 1. **Async API Call Errors**:
6
+ - Async API call errors should throw `AppError`
7
+ - Use `logger.error` to record all async API call errors
8
+
9
+ 2. **Event Handler Errors**:
10
+ - Errors in event handlers should not happen (prevent with proper validation)
11
+ - If an error occurs, it should be caught and logged appropriately
12
+
13
+ 3. **Error Boundary**:
14
+ - The error boundary itself cannot throw any errors
15
+ - Must be robust and handle all error scenarios gracefully
16
+
17
+ 4. **React Component Errors**:
18
+ - Errors in React component render should be caught by ErrorBoundary
19
+ - Errors in component lifecycle should be caught by ErrorBoundary
20
+ - Errors in constructor should be caught by ErrorBoundary
21
+
22
+ ## Code Quality
23
+
24
+ - Follow TypeScript strict mode
25
+ - Use ESLint rules as configured
26
+ - Maintain consistent code style (4 spaces indentation)
27
+ - Use i18next for all user-facing strings
28
+ - Follow React hooks rules
29
+
30
+ ## Architecture
31
+
32
+ - Use Zustand for state management
33
+ - Use React Router for routing
34
+ - Use Emotion for styling
35
+ - Follow the established folder structure
36
+ - Keep components reusable and modular
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botim/botim-cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.7",
4
4
  "description": "A CLI tool that generates boilerplate code for React and Vue applications and manages Mini-Program apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",