@lastbrain/app 0.1.9 → 0.1.11
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 +10 -11
- package/package.json +1 -1
- package/src/scripts/init-app.ts +10 -11
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éé"));
|
|
@@ -626,8 +627,8 @@ const config = {
|
|
|
626
627
|
content: [
|
|
627
628
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
628
629
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
629
|
-
"./node_modules/@lastbrain/**/*.{js,jsx,ts,tsx}",
|
|
630
|
-
"./node_modules/@heroui/**/*.{js,jsx,ts,tsx}"
|
|
630
|
+
"./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
|
|
631
|
+
"./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
|
|
631
632
|
],
|
|
632
633
|
theme: {
|
|
633
634
|
extend: {},
|
|
@@ -645,7 +646,7 @@ export default config;
|
|
|
645
646
|
content: [
|
|
646
647
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
647
648
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
648
|
-
"./node_modules/@lastbrain/**/*.{js,jsx,ts,tsx}",
|
|
649
|
+
"./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
|
|
649
650
|
],
|
|
650
651
|
theme: {
|
|
651
652
|
extend: {
|
|
@@ -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éé"));
|
|
@@ -742,8 +743,8 @@ const config = {
|
|
|
742
743
|
content: [
|
|
743
744
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
744
745
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
745
|
-
"./node_modules/@lastbrain/**/*.{js,jsx,ts,tsx}",
|
|
746
|
-
"./node_modules/@heroui/**/*.{js,jsx,ts,tsx}"
|
|
746
|
+
"./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
|
|
747
|
+
"./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
|
|
747
748
|
],
|
|
748
749
|
theme: {
|
|
749
750
|
extend: {},
|
|
@@ -760,7 +761,7 @@ export default config;
|
|
|
760
761
|
content: [
|
|
761
762
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
762
763
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
763
|
-
"./node_modules/@lastbrain/**/*.{js,jsx,ts,tsx}",
|
|
764
|
+
"./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
|
|
764
765
|
],
|
|
765
766
|
theme: {
|
|
766
767
|
extend: {
|
|
@@ -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éé"));
|