create-bdpa-react-scaffold 1.7.5 → 1.8.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/create-ui-lib.js +80 -9
- package/package.json +1 -2
package/create-ui-lib.js
CHANGED
|
@@ -107,6 +107,8 @@ write("package.json", `
|
|
|
107
107
|
"bcryptjs": "^2.4.3"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
+
"@types/react": "^18.2.0",
|
|
111
|
+
"@types/react-dom": "^18.2.0",
|
|
110
112
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
111
113
|
"autoprefixer": "^10.4.20",
|
|
112
114
|
"postcss": "^8.4.47",
|
|
@@ -116,6 +118,84 @@ write("package.json", `
|
|
|
116
118
|
}
|
|
117
119
|
`);
|
|
118
120
|
|
|
121
|
+
write("jsconfig.json", `
|
|
122
|
+
{
|
|
123
|
+
"compilerOptions": {
|
|
124
|
+
"target": "ESNext",
|
|
125
|
+
"module": "ESNext",
|
|
126
|
+
"moduleResolution": "bundler",
|
|
127
|
+
"jsx": "react-jsx",
|
|
128
|
+
"strict": false,
|
|
129
|
+
"allowSyntheticDefaultImports": true,
|
|
130
|
+
"esModuleInterop": true,
|
|
131
|
+
"resolveJsonModule": true,
|
|
132
|
+
"baseUrl": ".",
|
|
133
|
+
"paths": {
|
|
134
|
+
"@/*": ["src/*"]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"include": ["src", "index.html"],
|
|
138
|
+
"exclude": ["node_modules", "dist"]
|
|
139
|
+
}
|
|
140
|
+
`);
|
|
141
|
+
|
|
142
|
+
write(".vscode/extensions.json", `
|
|
143
|
+
{
|
|
144
|
+
"recommendations": [
|
|
145
|
+
"bradlc.vscode-tailwindcss",
|
|
146
|
+
"dsznajder.es7-react-js-snippets",
|
|
147
|
+
"esbenp.prettier-vscode",
|
|
148
|
+
"dbaeumer.vscode-eslint",
|
|
149
|
+
"formulahendry.auto-rename-tag",
|
|
150
|
+
"christian-kohler.path-intellisense",
|
|
151
|
+
"streetsidesoftware.code-spell-checker",
|
|
152
|
+
"ms-vscode.vscode-typescript-next"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
`);
|
|
156
|
+
|
|
157
|
+
write(".vscode/settings.json", `
|
|
158
|
+
{
|
|
159
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
160
|
+
"editor.formatOnSave": true,
|
|
161
|
+
"editor.quickSuggestions": {
|
|
162
|
+
"strings": "on"
|
|
163
|
+
},
|
|
164
|
+
"editor.inlineSuggest.enabled": true,
|
|
165
|
+
"css.validate": false,
|
|
166
|
+
"tailwindCSS.includeLanguages": {
|
|
167
|
+
"javascript": "javascript",
|
|
168
|
+
"javascriptreact": "javascriptreact",
|
|
169
|
+
"typescript": "typescript",
|
|
170
|
+
"typescriptreact": "typescriptreact",
|
|
171
|
+
"html": "HTML"
|
|
172
|
+
},
|
|
173
|
+
"tailwindCSS.experimental.classRegex": [
|
|
174
|
+
["clsx\\(([^)]*)\\)", "(?:'|\\"|\\`)([^']*)(?:'|\\"|\\`)"],
|
|
175
|
+
["cva\\(([^)]*)\\)", "[\"'\\`]([^\"'\\`]*).*?[\"'\\`]"]
|
|
176
|
+
],
|
|
177
|
+
"tailwindCSS.validate": true,
|
|
178
|
+
"[javascript]": {
|
|
179
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
180
|
+
},
|
|
181
|
+
"[javascriptreact]": {
|
|
182
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
183
|
+
},
|
|
184
|
+
"emmet.includeLanguages": {
|
|
185
|
+
"javascript": "javascriptreact",
|
|
186
|
+
"typescript": "typescriptreact"
|
|
187
|
+
},
|
|
188
|
+
"emmet.triggerExpansionOnTab": true,
|
|
189
|
+
"javascript.suggest.autoImports": true,
|
|
190
|
+
"javascript.updateImportsOnFileMove.enabled": "always",
|
|
191
|
+
"typescript.suggest.autoImports": true,
|
|
192
|
+
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
193
|
+
"files.associations": {
|
|
194
|
+
"*.css": "tailwindcss"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
`);
|
|
198
|
+
|
|
119
199
|
write("postcss.config.cjs", `
|
|
120
200
|
module.exports = {
|
|
121
201
|
plugins: {
|
|
@@ -340,15 +420,6 @@ const response = await adminApi.getAll("/users");
|
|
|
340
420
|
\`\`\`
|
|
341
421
|
`);
|
|
342
422
|
|
|
343
|
-
write(".vscode/extensions.json", `
|
|
344
|
-
{
|
|
345
|
-
"recommendations": [
|
|
346
|
-
"dsznajder.es7-react-js-snippets",
|
|
347
|
-
"vscode-icons-team.vscode-icons"
|
|
348
|
-
]
|
|
349
|
-
}
|
|
350
|
-
`);
|
|
351
|
-
|
|
352
423
|
// -------------------------------
|
|
353
424
|
// src root
|
|
354
425
|
// -------------------------------
|