npm install --global yarn
yarn --version
npx create-next-app . --ts
yarn add @heroicons/react@1.0.6
yarn add react-query@3.39.0 react-query-devtools graphql graphql-request
touch .prettierrc
{
"singleQuote": true,
"semi": false
}
https://nextjs.org/learn/excel/typescript/create-tsconfig
touch tsconfig.json
yarn add -D typescript @types/react @types/node
yarn dev
import { AppProps } from 'next/app'
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
export default MyApp
https://tailwindcss.com/docs/guides/nextjs
yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;