hu-config
npx hu-configyarn dlx hu-configpnpx hu-confignlx hu-config-
Follow the
hu-configPrompts.- What is your name? (name)- (name), are you using [packageManager]? Y/n- Great! Noted.- So (name), which set would you like to install? Custom- Which packages would you like to install?: Marp for VS Code, Prettier -
Configure your Astro project.
Terminal window npm create astroTerminal window yarn create astroTerminal window pnpm create astro- Where should we create your new project? ./your-app-name- How would you like to start your new project? Choose a template- Do you plan to write TypeScript? Yes- How strict should TypeScript be? Strict- Install dependencies? Yes- Initialize a new git repository? (optional) Yes/No -
Answer
Yeswhen prompted by the CLI when installing React and Tailwind.Terminal window npx astro add react tailwindTerminal window yarn astro add react tailwindTerminal window pnpm astro add react tailwindTerminal window nlx astro add react tailwind -
Finish all other configuration, then select
Yes.styles/global.css @tailwind base;@tailwind components;@tailwind utilities;src/pages/index.astro ---import '@/styles/global.css'---astro.config.mjs import { defineConfig } from 'astro/config';import react from '@astrojs/react';import tailwind from '@astrojs/tailwind';export default defineConfig({integrations: [tailwind(),tailwind({applyBaseStyles: false,}),react()],})tsconfig.json {"compilerOptions": {// ..."baseUrl": ".","paths": {"@/*": ["./src/*"]}// ...}} -
Follow the prompts to set up components.