create-bdpa-react-scaffold 1.7.5 → 1.8.1
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 +76 -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,80 @@ 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.validate": true,
|
|
174
|
+
"[javascript]": {
|
|
175
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
176
|
+
},
|
|
177
|
+
"[javascriptreact]": {
|
|
178
|
+
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
179
|
+
},
|
|
180
|
+
"emmet.includeLanguages": {
|
|
181
|
+
"javascript": "javascriptreact",
|
|
182
|
+
"typescript": "typescriptreact"
|
|
183
|
+
},
|
|
184
|
+
"emmet.triggerExpansionOnTab": true,
|
|
185
|
+
"javascript.suggest.autoImports": true,
|
|
186
|
+
"javascript.updateImportsOnFileMove.enabled": "always",
|
|
187
|
+
"typescript.suggest.autoImports": true,
|
|
188
|
+
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
189
|
+
"files.associations": {
|
|
190
|
+
"*.css": "tailwindcss"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
`);
|
|
194
|
+
|
|
119
195
|
write("postcss.config.cjs", `
|
|
120
196
|
module.exports = {
|
|
121
197
|
plugins: {
|
|
@@ -340,15 +416,6 @@ const response = await adminApi.getAll("/users");
|
|
|
340
416
|
\`\`\`
|
|
341
417
|
`);
|
|
342
418
|
|
|
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
419
|
// -------------------------------
|
|
353
420
|
// src root
|
|
354
421
|
// -------------------------------
|