create-apppaaaul 2.0.19 → 2.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-apppaaaul",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "Create projects as paaauldev would",
5
5
  "main": "index.mjs",
6
6
  "bin": {
@@ -33,11 +33,11 @@
33
33
  "bump": "pnpm run build && pnpm version patch && git tag latest --force && git push origin main --tags --force && npm publish --tag latest --force"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^20.17.27",
36
+ "@types/node": "^24.9.1",
37
37
  "@types/prompts": "^2.4.9",
38
- "@types/yargs": "^17.0.33",
39
- "prettier": "^3.5.3",
40
- "tsup": "^8.4.0",
41
- "typescript": "^5.8.2"
38
+ "@types/yargs": "^17.0.34",
39
+ "prettier": "^3.6.2",
40
+ "tsup": "^8.5.0",
41
+ "typescript": "^5.9.3"
42
42
  }
43
43
  }
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- insert_final_newline = true
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- trim_trailing_whitespace = true
9
- max_line_length = 80
@@ -1,172 +0,0 @@
1
- import globals from "globals";
2
- import tseslint from "typescript-eslint";
3
- import eslintPluginReact from "eslint-plugin-react";
4
- import eslintPluginReactHooks from "eslint-plugin-react-hooks";
5
- import {fixupPluginRules} from "@eslint/compat";
6
- import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
7
- import eslintPluginImport from "eslint-plugin-import";
8
- import eslintPluginReactCompiler from "eslint-plugin-react-compiler";
9
- import eslintPluginNext from "@next/eslint-plugin-next";
10
- import eslintPluginJsxA11y from "eslint-plugin-jsx-a11y";
11
- import vercelStyleGuideTypescript from "@vercel/style-guide/eslint/typescript";
12
- import vercelStyleGuideReact from "@vercel/style-guide/eslint/rules/react";
13
- import vercelStyleGuideNext from "@vercel/style-guide/eslint/next";
14
-
15
- export default [
16
- // Ignores configuration
17
- {
18
- ignores: ["node_modules", ".next", "out", "coverage", ".idea"],
19
- },
20
- // General configuration
21
- {
22
- rules: {
23
- "padding-line-between-statements": [
24
- "warn",
25
- {blankLine: "always", prev: "*", next: ["return", "export"]},
26
- {blankLine: "always", prev: ["const", "let", "var"], next: "*"},
27
- {blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]},
28
- ],
29
- "no-console": "warn",
30
- },
31
- },
32
- // React configuration
33
- {
34
- plugins: {
35
- react: fixupPluginRules(eslintPluginReact),
36
- "react-hooks": fixupPluginRules(eslintPluginReactHooks),
37
- "react-compiler": fixupPluginRules(eslintPluginReactCompiler),
38
- "jsx-a11y": fixupPluginRules(eslintPluginJsxA11y),
39
- },
40
- languageOptions: {
41
- parserOptions: {
42
- ecmaFeatures: {
43
- jsx: true,
44
- },
45
- },
46
- globals: {
47
- ...globals.browser,
48
- ...globals.serviceworker,
49
- },
50
- },
51
- settings: {
52
- react: {
53
- version: "detect",
54
- },
55
- },
56
- rules: {
57
- ...eslintPluginReact.configs.recommended.rules,
58
- ...eslintPluginJsxA11y.configs.recommended.rules,
59
- ...eslintPluginReactHooks.configs.recommended.rules,
60
- ...vercelStyleGuideReact.rules,
61
- "react/prop-types": "off",
62
- "react/jsx-uses-react": "off",
63
- "react/react-in-jsx-scope": "off",
64
- "react/self-closing-comp": "warn",
65
- "react/jsx-sort-props": [
66
- "warn",
67
- {
68
- callbacksLast: true,
69
- shorthandFirst: true,
70
- noSortAlphabetically: false,
71
- reservedFirst: true,
72
- },
73
- ],
74
- "react-compiler/react-compiler": "error",
75
- "jsx-a11y/no-static-element-interactions": "off",
76
- "jsx-a11y/click-events-have-key-events": "off",
77
- },
78
- },
79
- // TypeScript configuration
80
- ...[
81
- ...tseslint.configs.recommended,
82
- {
83
- rules: {
84
- ...vercelStyleGuideTypescript.rules,
85
- "@typescript-eslint/no-non-null-assertion": "off",
86
- "@typescript-eslint/no-shadow": "off",
87
- "@typescript-eslint/explicit-function-return-type": "off",
88
- "@typescript-eslint/require-await": "off",
89
- "@typescript-eslint/no-floating-promises": "off",
90
- "@typescript-eslint/no-confusing-void-expression": "off",
91
- "@typescript-eslint/no-unused-vars": [
92
- "warn",
93
- {
94
- args: "after-used",
95
- ignoreRestSiblings: false,
96
- argsIgnorePattern: "^_.*?$",
97
- },
98
- ],
99
- },
100
- },
101
- ],
102
- // Prettier configuration
103
- ...[
104
- eslintPluginPrettier,
105
- {
106
- rules: {
107
- "prettier/prettier": [
108
- "warn",
109
- {
110
- printWidth: 100,
111
- trailingComma: "all",
112
- tabWidth: 2,
113
- semi: true,
114
- singleQuote: false,
115
- bracketSpacing: true,
116
- arrowParens: "always",
117
- endOfLine: "auto",
118
- plugins: ["prettier-plugin-tailwindcss"],
119
- },
120
- ],
121
- },
122
- },
123
- ],
124
- // Import configuration
125
- {
126
- plugins: {
127
- import: fixupPluginRules(eslintPluginImport),
128
- },
129
- rules: {
130
- "import/no-default-export": "off",
131
- "import/order": [
132
- "warn",
133
- {
134
- groups: [
135
- "type",
136
- "builtin",
137
- "object",
138
- "external",
139
- "internal",
140
- "parent",
141
- "sibling",
142
- "index",
143
- ],
144
- pathGroups: [
145
- {
146
- pattern: "~/**",
147
- group: "external",
148
- position: "after",
149
- },
150
- ],
151
- "newlines-between": "always",
152
- },
153
- ],
154
- },
155
- },
156
- // Next configuration
157
- {
158
- plugins: {
159
- next: fixupPluginRules(eslintPluginNext),
160
- },
161
- languageOptions: {
162
- globals: {
163
- ...globals.node,
164
- ...globals.browser,
165
- },
166
- },
167
- rules: {
168
- ...vercelStyleGuideNext.rules,
169
- "@next/next/no-img-element": "off",
170
- },
171
- },
172
- ];
@@ -1,28 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Next.js: debug server-side",
6
- "type": "node-terminal",
7
- "request": "launch",
8
- "command": "pnpm dev"
9
- },
10
- {
11
- "name": "Next.js: debug client-side",
12
- "type": "chrome",
13
- "request": "launch",
14
- "url": "http://localhost:3000"
15
- },
16
- {
17
- "name": "Next.js: debug full stack",
18
- "type": "node-terminal",
19
- "request": "launch",
20
- "command": "pnpm dev",
21
- "serverReadyAction": {
22
- "pattern": "started server on .+, url: (https?://.+)",
23
- "uriFormat": "%s",
24
- "action": "debugWithChrome"
25
- }
26
- }
27
- ]
28
- }
@@ -1,8 +0,0 @@
1
- {
2
- "editor.formatOnSave": false,
3
- "typescript.tsdk": "node_modules\\typescript\\lib",
4
- "typescript.enablePromptUseWorkspaceTsdk": true,
5
- "editor.codeActionsOnSave": {
6
- "source.fixAll.eslint": true
7
- }
8
- }
@@ -1,45 +0,0 @@
1
- ---
2
- description: Bootstrap Cursor Rules
3
- globs:
4
- alwaysApply: false
5
- ---
6
- You are an expert in Bootstrap and modern web application development.
7
-
8
- Key Principles
9
- - Write clear, concise, and technical responses with precise Bootstrap examples.
10
- - Utilize Bootstrap's components and utilities to streamline development and ensure responsiveness.
11
- - Prioritize maintainability and readability; adhere to clean coding practices throughout your HTML and CSS.
12
- - Use descriptive class names and structure to promote clarity and collaboration among developers.
13
-
14
- Bootstrap Usage
15
- - Leverage Bootstrap's grid system for responsive layouts; use container, row, and column classes to structure content.
16
- - Utilize Bootstrap components (e.g., buttons, modals, alerts) to enhance user experience without extensive custom CSS.
17
- - Apply Bootstrap's utility classes for quick styling adjustments, such as spacing, typography, and visibility.
18
- - Ensure all components are accessible; use ARIA attributes and semantic HTML where applicable.
19
-
20
- Error Handling and Validation
21
- - Implement form validation using Bootstrap's built-in styles and classes to enhance user feedback.
22
- - Use Bootstrap's alert component to display error messages clearly and informatively.
23
- - Structure forms with appropriate labels, placeholders, and error messages for a better user experience.
24
-
25
- Dependencies
26
- - Bootstrap (latest version, CSS and JS)
27
- - Any JavaScript framework (like jQuery, if required) for interactive components.
28
-
29
- Bootstrap-Specific Guidelines
30
- - Customize Bootstrap's Sass variables and mixins to create a unique theme without overriding default styles.
31
- - Utilize Bootstrap's responsive utilities to control visibility and layout on different screen sizes.
32
- - Keep custom styles to a minimum; use Bootstrap's classes wherever possible for consistency.
33
- - Use the Bootstrap documentation to understand component behavior and customization options.
34
-
35
- Performance Optimization
36
- - Minimize file sizes by including only the necessary Bootstrap components in your build process.
37
- - Use a CDN for Bootstrap resources to improve load times and leverage caching.
38
- - Optimize images and other assets to enhance overall performance, especially for mobile users.
39
-
40
- Key Conventions
41
- 1. Follow Bootstrap's naming conventions and class structures to ensure consistency across your project.
42
- 2. Prioritize responsiveness and accessibility in every stage of development.
43
- 3. Maintain a clear and organized file structure to enhance maintainability and collaboration.
44
-
45
- Refer to the Bootstrap documentation for best practices and detailed examples of usage patterns.
@@ -1,38 +0,0 @@
1
- ---
2
- description: Front-End Developer
3
- globs:
4
- alwaysApply: false
5
- ---
6
- You are a Senior Front-End Developer and an Expert in ReactJS, NextJS, JavaScript, TypeScript, HTML, CSS and modern UI/UX frameworks (e.g., TailwindCSS, Shadcn, Radix). You are thoughtful, give nuanced answers, and are brilliant at reasoning. You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning.
7
-
8
- - Follow the user’s requirements carefully & to the letter.
9
- - First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail.
10
- - Confirm, then write code!
11
- - Always write correct, best practice, DRY principle (Dont Repeat Yourself), bug free, fully functional and working code also it should be aligned to listed rules down below at Code Implementation Guidelines .
12
- - Focus on easy and readability code, over being performant.
13
- - Fully implement all requested functionality.
14
- - Leave NO todo’s, placeholders or missing pieces.
15
- - Ensure code is complete! Verify thoroughly finalised.
16
- - Include all required imports, and ensure proper naming of key components.
17
- - Be concise Minimize any other prose.
18
- - If you think there might not be a correct answer, you say so.
19
- - If you do not know the answer, say so, instead of guessing.
20
-
21
- ### Coding Environment
22
- The user asks questions about the following coding languages:
23
- - ReactJS
24
- - NextJS
25
- - JavaScript
26
- - TypeScript
27
- - TailwindCSS
28
- - HTML
29
- - CSS
30
-
31
- ### Code Implementation Guidelines
32
- Follow these rules when you write code:
33
- - Use early returns whenever possible to make the code more readable.
34
- - Always use Tailwind classes for styling HTML elements; avoid using CSS or tags.
35
- - Use “class:” instead of the tertiary operator in class tags whenever possible.
36
- - Use descriptive variable and function/const names. Also, event functions should be named with a “handle” prefix, like “handleClick” for onClick and “handleKeyDown” for onKeyDown.
37
- - Implement accessibility features on elements. For example, a tag should have a tabindex=“0”, aria-label, on:click, and on:keydown, and similar attributes.
38
- - Use consts instead of functions, for example, “const toggle = () =>”. Also, define a type if possible.
@@ -1,58 +0,0 @@
1
- ---
2
- description: Optimized Next.js TypeScript Best Practices with Modern UI/UX
3
- globs:
4
- alwaysApply: false
5
- ---
6
- You are an expert full-stack developer proficient in TypeScript, React, Next.js, and modern UI/UX frameworks (e.g., Tailwind CSS, Shadcn UI, Radix UI). Your task is to produce the most optimized and maintainable Next.js code, following best practices and adhering to the principles of clean code and robust architecture.
7
-
8
- ### Objective
9
- - Create a Next.js solution that is not only functional but also adheres to the best practices in performance, security, and maintainability.
10
-
11
- ### Code Style and Structure
12
- - Write concise, technical TypeScript code with accurate examples.
13
- - Use functional and declarative programming patterns; avoid classes.
14
- - Favor iteration and modularization over code duplication.
15
- - Use descriptive variable names with auxiliary verbs (e.g., `isLoading`, `hasError`).
16
- - Structure files with exported components, subcomponents, helpers, static content, and types.
17
- - Use lowercase with dashes for directory names (e.g., `components/auth-wizard`).
18
-
19
- ### Optimization and Best Practices
20
- - Minimize the use of `'use client'`, `useEffect`, and `setState`; favor React Server Components (RSC) and Next.js SSR features.
21
- - Implement dynamic imports for code splitting and optimization.
22
- - Use responsive design with a mobile-first approach.
23
- - Optimize images: use WebP format, include size data, implement lazy loading.
24
-
25
- ### Error Handling and Validation
26
- - Prioritize error handling and edge cases:
27
- - Use early returns for error conditions.
28
- - Implement guard clauses to handle preconditions and invalid states early.
29
- - Use custom error types for consistent error handling.
30
-
31
- ### UI and Styling
32
- - Use modern UI frameworks (e.g., Tailwind CSS, Shadcn UI, Radix UI) for styling.
33
- - Implement consistent design and responsive patterns across platforms.
34
-
35
- ### State Management and Data Fetching
36
- - Use modern state management solutions (e.g., Zustand, TanStack React Query) to handle global state and data fetching.
37
- - Implement validation using Zod for schema validation.
38
-
39
- ### Security and Performance
40
- - Implement proper error handling, user input validation, and secure coding practices.
41
- - Follow performance optimization techniques, such as reducing load times and improving rendering efficiency.
42
-
43
- ### Testing and Documentation
44
- - Write unit tests for components using Jest and React Testing Library.
45
- - Provide clear and concise comments for complex logic.
46
- - Use JSDoc comments for functions and components to improve IDE intellisense.
47
-
48
- ### Methodology
49
- 1. **System 2 Thinking**: Approach the problem with analytical rigor. Break down the requirements into smaller, manageable parts and thoroughly consider each step before implementation.
50
- 2. **Tree of Thoughts**: Evaluate multiple possible solutions and their consequences. Use a structured approach to explore different paths and select the optimal one.
51
- 3. **Iterative Refinement**: Before finalizing the code, consider improvements, edge cases, and optimizations. Iterate through potential enhancements to ensure the final solution is robust.
52
-
53
- **Process**:
54
- 1. **Deep Dive Analysis**: Begin by conducting a thorough analysis of the task at hand, considering the technical requirements and constraints.
55
- 2. **Planning**: Develop a clear plan that outlines the architectural structure and flow of the solution, using <PLANNING> tags if necessary.
56
- 3. **Implementation**: Implement the solution step-by-step, ensuring that each part adheres to the specified best practices.
57
- 4. **Review and Optimize**: Perform a review of the code, looking for areas of potential optimization and improvement.
58
- 5. **Finalization**: Finalize the code by ensuring it meets all requirements, is secure, and is performant.
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- insert_final_newline = true
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- trim_trailing_whitespace = true
9
- max_line_length = 80
@@ -1,172 +0,0 @@
1
- import globals from "globals";
2
- import tseslint from "typescript-eslint";
3
- import eslintPluginReact from "eslint-plugin-react";
4
- import eslintPluginReactHooks from "eslint-plugin-react-hooks";
5
- import {fixupPluginRules} from "@eslint/compat";
6
- import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
7
- import eslintPluginImport from "eslint-plugin-import";
8
- import eslintPluginReactCompiler from "eslint-plugin-react-compiler";
9
- import eslintPluginNext from "@next/eslint-plugin-next";
10
- import eslintPluginJsxA11y from "eslint-plugin-jsx-a11y";
11
- import vercelStyleGuideTypescript from "@vercel/style-guide/eslint/typescript";
12
- import vercelStyleGuideReact from "@vercel/style-guide/eslint/rules/react";
13
- import vercelStyleGuideNext from "@vercel/style-guide/eslint/next";
14
-
15
- export default [
16
- // Ignores configuration
17
- {
18
- ignores: ["node_modules", ".next", "out", "coverage", ".idea"],
19
- },
20
- // General configuration
21
- {
22
- rules: {
23
- "padding-line-between-statements": [
24
- "warn",
25
- {blankLine: "always", prev: "*", next: ["return", "export"]},
26
- {blankLine: "always", prev: ["const", "let", "var"], next: "*"},
27
- {blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]},
28
- ],
29
- "no-console": "warn",
30
- },
31
- },
32
- // React configuration
33
- {
34
- plugins: {
35
- react: fixupPluginRules(eslintPluginReact),
36
- "react-hooks": fixupPluginRules(eslintPluginReactHooks),
37
- "react-compiler": fixupPluginRules(eslintPluginReactCompiler),
38
- "jsx-a11y": fixupPluginRules(eslintPluginJsxA11y),
39
- },
40
- languageOptions: {
41
- parserOptions: {
42
- ecmaFeatures: {
43
- jsx: true,
44
- },
45
- },
46
- globals: {
47
- ...globals.browser,
48
- ...globals.serviceworker,
49
- },
50
- },
51
- settings: {
52
- react: {
53
- version: "detect",
54
- },
55
- },
56
- rules: {
57
- ...eslintPluginReact.configs.recommended.rules,
58
- ...eslintPluginJsxA11y.configs.recommended.rules,
59
- ...eslintPluginReactHooks.configs.recommended.rules,
60
- ...vercelStyleGuideReact.rules,
61
- "react/prop-types": "off",
62
- "react/jsx-uses-react": "off",
63
- "react/react-in-jsx-scope": "off",
64
- "react/self-closing-comp": "warn",
65
- "react/jsx-sort-props": [
66
- "warn",
67
- {
68
- callbacksLast: true,
69
- shorthandFirst: true,
70
- noSortAlphabetically: false,
71
- reservedFirst: true,
72
- },
73
- ],
74
- "react-compiler/react-compiler": "error",
75
- "jsx-a11y/no-static-element-interactions": "off",
76
- "jsx-a11y/click-events-have-key-events": "off",
77
- },
78
- },
79
- // TypeScript configuration
80
- ...[
81
- ...tseslint.configs.recommended,
82
- {
83
- rules: {
84
- ...vercelStyleGuideTypescript.rules,
85
- "@typescript-eslint/no-non-null-assertion": "off",
86
- "@typescript-eslint/no-shadow": "off",
87
- "@typescript-eslint/explicit-function-return-type": "off",
88
- "@typescript-eslint/require-await": "off",
89
- "@typescript-eslint/no-floating-promises": "off",
90
- "@typescript-eslint/no-confusing-void-expression": "off",
91
- "@typescript-eslint/no-unused-vars": [
92
- "warn",
93
- {
94
- args: "after-used",
95
- ignoreRestSiblings: false,
96
- argsIgnorePattern: "^_.*?$",
97
- },
98
- ],
99
- },
100
- },
101
- ],
102
- // Prettier configuration
103
- ...[
104
- eslintPluginPrettier,
105
- {
106
- rules: {
107
- "prettier/prettier": [
108
- "warn",
109
- {
110
- printWidth: 100,
111
- trailingComma: "all",
112
- tabWidth: 2,
113
- semi: true,
114
- singleQuote: false,
115
- bracketSpacing: true,
116
- arrowParens: "always",
117
- endOfLine: "auto",
118
- plugins: ["prettier-plugin-tailwindcss"],
119
- },
120
- ],
121
- },
122
- },
123
- ],
124
- // Import configuration
125
- {
126
- plugins: {
127
- import: fixupPluginRules(eslintPluginImport),
128
- },
129
- rules: {
130
- "import/no-default-export": "off",
131
- "import/order": [
132
- "warn",
133
- {
134
- groups: [
135
- "type",
136
- "builtin",
137
- "object",
138
- "external",
139
- "internal",
140
- "parent",
141
- "sibling",
142
- "index",
143
- ],
144
- pathGroups: [
145
- {
146
- pattern: "~/**",
147
- group: "external",
148
- position: "after",
149
- },
150
- ],
151
- "newlines-between": "always",
152
- },
153
- ],
154
- },
155
- },
156
- // Next configuration
157
- {
158
- plugins: {
159
- next: fixupPluginRules(eslintPluginNext),
160
- },
161
- languageOptions: {
162
- globals: {
163
- ...globals.node,
164
- ...globals.browser,
165
- },
166
- },
167
- rules: {
168
- ...vercelStyleGuideNext.rules,
169
- "@next/next/no-img-element": "off",
170
- },
171
- },
172
- ];
@@ -1,28 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Next.js: debug server-side",
6
- "type": "node-terminal",
7
- "request": "launch",
8
- "command": "pnpm dev"
9
- },
10
- {
11
- "name": "Next.js: debug client-side",
12
- "type": "chrome",
13
- "request": "launch",
14
- "url": "http://localhost:3000"
15
- },
16
- {
17
- "name": "Next.js: debug full stack",
18
- "type": "node-terminal",
19
- "request": "launch",
20
- "command": "pnpm dev",
21
- "serverReadyAction": {
22
- "pattern": "started server on .+, url: (https?://.+)",
23
- "uriFormat": "%s",
24
- "action": "debugWithChrome"
25
- }
26
- }
27
- ]
28
- }
@@ -1,8 +0,0 @@
1
- {
2
- "editor.formatOnSave": false,
3
- "typescript.tsdk": "node_modules\\typescript\\lib",
4
- "typescript.enablePromptUseWorkspaceTsdk": true,
5
- "editor.codeActionsOnSave": {
6
- "source.fixAll.eslint": "explicit"
7
- }
8
- }