@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.
- package/dist/scripts/init-app.js +18 -19
- package/dist/styles.css +1779 -2
- package/dist/templates/SimpleDocPage.js +2 -2
- package/dist/templates/SimpleHomePage.js +1 -1
- package/package.json +6 -7
- package/src/scripts/init-app.ts +18 -19
- package/src/styles.css +3 -1
- package/src/templates/SimpleDocPage.tsx +2 -2
- package/src/templates/SimpleHomePage.tsx +3 -3
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,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 = `@
|
|
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
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
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
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
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
|
-
|
|
685
|
+
tailwindcss: {},
|
|
686
|
+
autoprefixer: {},
|
|
688
687
|
},
|
|
689
688
|
};
|
|
690
689
|
`;
|