@lastbrain/app 0.1.9 → 0.1.10
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/dist/scripts/init-app.js
CHANGED
|
@@ -240,8 +240,8 @@ async function addDependencies(targetDir, useHeroUI, withAuth, selectedModules =
|
|
|
240
240
|
}
|
|
241
241
|
// DevDependencies
|
|
242
242
|
const requiredDevDeps = {
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
tailwindcss: "^3.4.0",
|
|
244
|
+
postcss: "^8.4.0",
|
|
245
245
|
autoprefixer: "^10.4.20",
|
|
246
246
|
typescript: "^5.4.0",
|
|
247
247
|
"@types/node": "^20.0.0",
|
|
@@ -349,8 +349,9 @@ export default function RootLayout({ children }: PropsWithChildren<{}>) {
|
|
|
349
349
|
// Créer globals.css
|
|
350
350
|
const globalsPath = path.join(stylesDir, "globals.css");
|
|
351
351
|
if (!fs.existsSync(globalsPath) || force) {
|
|
352
|
-
const globalsContent = `@
|
|
353
|
-
@
|
|
352
|
+
const globalsContent = `@tailwind base;
|
|
353
|
+
@tailwind components;
|
|
354
|
+
@tailwind utilities;
|
|
354
355
|
`;
|
|
355
356
|
await fs.writeFile(globalsPath, globalsContent);
|
|
356
357
|
console.log(chalk.green("✓ styles/globals.css créé"));
|
|
@@ -676,14 +677,12 @@ export default config;
|
|
|
676
677
|
// postcss.config.mjs
|
|
677
678
|
const postcssConfigPath = path.join(targetDir, "postcss.config.mjs");
|
|
678
679
|
if (!fs.existsSync(postcssConfigPath) || force) {
|
|
679
|
-
const postcssConfig = `
|
|
680
|
+
const postcssConfig = `export default {
|
|
680
681
|
plugins: {
|
|
681
|
-
|
|
682
|
+
tailwindcss: {},
|
|
682
683
|
autoprefixer: {},
|
|
683
684
|
},
|
|
684
685
|
};
|
|
685
|
-
|
|
686
|
-
export default config;
|
|
687
686
|
`;
|
|
688
687
|
await fs.writeFile(postcssConfigPath, postcssConfig);
|
|
689
688
|
console.log(chalk.green("✓ postcss.config.mjs créé"));
|
package/package.json
CHANGED
package/src/scripts/init-app.ts
CHANGED
|
@@ -306,8 +306,8 @@ async function addDependencies(
|
|
|
306
306
|
|
|
307
307
|
// DevDependencies
|
|
308
308
|
const requiredDevDeps = {
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
tailwindcss: "^3.4.0",
|
|
310
|
+
postcss: "^8.4.0",
|
|
311
311
|
autoprefixer: "^10.4.20",
|
|
312
312
|
typescript: "^5.4.0",
|
|
313
313
|
"@types/node": "^20.0.0",
|
|
@@ -430,8 +430,9 @@ export default function RootLayout({ children }: PropsWithChildren<{}>) {
|
|
|
430
430
|
// Créer globals.css
|
|
431
431
|
const globalsPath = path.join(stylesDir, "globals.css");
|
|
432
432
|
if (!fs.existsSync(globalsPath) || force) {
|
|
433
|
-
const globalsContent = `@
|
|
434
|
-
@
|
|
433
|
+
const globalsContent = `@tailwind base;
|
|
434
|
+
@tailwind components;
|
|
435
|
+
@tailwind utilities;
|
|
435
436
|
`;
|
|
436
437
|
await fs.writeFile(globalsPath, globalsContent);
|
|
437
438
|
console.log(chalk.green("✓ styles/globals.css créé"));
|
|
@@ -793,14 +794,12 @@ export default config;
|
|
|
793
794
|
// postcss.config.mjs
|
|
794
795
|
const postcssConfigPath = path.join(targetDir, "postcss.config.mjs");
|
|
795
796
|
if (!fs.existsSync(postcssConfigPath) || force) {
|
|
796
|
-
const postcssConfig = `
|
|
797
|
+
const postcssConfig = `export default {
|
|
797
798
|
plugins: {
|
|
798
|
-
|
|
799
|
+
tailwindcss: {},
|
|
799
800
|
autoprefixer: {},
|
|
800
801
|
},
|
|
801
802
|
};
|
|
802
|
-
|
|
803
|
-
export default config;
|
|
804
803
|
`;
|
|
805
804
|
await fs.writeFile(postcssConfigPath, postcssConfig);
|
|
806
805
|
console.log(chalk.green("✓ postcss.config.mjs créé"));
|