Last active
August 30, 2019 03:45
-
-
Save jimbuck/13bb69f55fef10bb0183e0ada7c0702f to your computer and use it in GitHub Desktop.
Next.js Setup for TypeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init -y | |
npm i -P react react-dom next bootstrap react-bootstrap @zeit/next-css @zeit-next-less | |
npm i -D typescript @types/react @types/react-dom @types/node | |
npx npm-add-script -k dev -v next -f | |
npx npm-add-script -k build -v "next build" -f | |
npx npm-add-script -k start -v "next start" -f | |
mkdir pages | |
mkdir components | |
mkdir services | |
mkdir models | |
mkdir static | |
echo. > pages/Index.tsx | |
echo export default () =^> (^<h1^>Hello World!^</h1^>); >> pages/Index.tsx | |
npm run dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment