@lastbrain/app 0.1.12 → 0.1.14

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.
@@ -240,8 +240,8 @@ async function addDependencies(targetDir, useHeroUI, withAuth, selectedModules =
240
240
  }
241
241
  // DevDependencies
242
242
  const requiredDevDeps = {
243
- "@tailwindcss/postcss": "^4.0.0",
244
- tailwindcss: "^4.0.0",
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,7 +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 = `@import "tailwindcss";
352
+ const globalsContent = `@tailwind base;
353
+ @tailwind components;
354
+ @tailwind utilities;
353
355
  `;
354
356
  await fs.writeFile(globalsPath, globalsContent);
355
357
  console.log(chalk.green("✓ styles/globals.css créé"));
@@ -622,14 +624,12 @@ export default nextConfig;
622
624
 
623
625
  /** @type {import('tailwindcss').Config} */
624
626
  const config = {
625
- content: {
626
- files: [
627
- "./app/**/*.{js,ts,jsx,tsx,mdx}",
628
- "./components/**/*.{js,ts,jsx,tsx,mdx}",
629
- "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
630
- "./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
631
- ]
632
- },
627
+ content: [
628
+ "./app/**/*.{js,ts,jsx,tsx,mdx}",
629
+ "./components/**/*.{js,ts,jsx,tsx,mdx}",
630
+ "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
631
+ "./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
632
+ ],
633
633
  theme: {
634
634
  extend: {},
635
635
  },
@@ -644,13 +644,11 @@ export default config;
644
644
  // Configuration Tailwind CSS uniquement
645
645
  tailwindConfig = `/** @type {import('tailwindcss').Config} */
646
646
  const config = {
647
- content: {
648
- files: [
649
- "./app/**/*.{js,ts,jsx,tsx,mdx}",
650
- "./components/**/*.{js,ts,jsx,tsx,mdx}",
651
- "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
652
- ]
653
- },
647
+ content: [
648
+ "./app/**/*.{js,ts,jsx,tsx,mdx}",
649
+ "./components/**/*.{js,ts,jsx,tsx,mdx}",
650
+ "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
651
+ ],
654
652
  theme: {
655
653
  extend: {
656
654
  colors: {
@@ -684,7 +682,8 @@ export default config;
684
682
  if (!fs.existsSync(postcssConfigPath) || force) {
685
683
  const postcssConfig = `export default {
686
684
  plugins: {
687
- '@tailwindcss/postcss': {},
685
+ tailwindcss: {},
686
+ autoprefixer: {},
688
687
  },
689
688
  };
690
689
  `;