Skip to content

twihike/nextjs-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Next.js starter

CI status

Next.js framework starter repository.

Technologies

How would I set this up myself

Next.js

# Next
# https://nextjs.org/docs
yarn add next react react-dom
yarn add -D \
  @next/bundle-analyzer \
  postcss-flexbugs-fixes \
  postcss-preset-env

# Typescript
# https://nextjs.org/docs/basic-features/typescript
touch tsconfig.json
yarn add -D typescript @types/react @types/react-dom @types/node

# Telemetry
# https://nextjs.org/telemetry
yarn next telemetry disable

# Run dev mode
yarn run dev

GraphQL

# Isomorphic
yarn add isomorphic-unfetch

# Apollo Client
yarn add @apollo/client @apollo/link-context graphql
# Apollo SSR
yarn add @apollo/react-ssr

# Apollo Mock
yarn add -D \
  @apollo/link-schema \
  graphql-tools \
  graphql-iso-date \
  @types/graphql-iso-date

# Graphql code generator
# https://graphql-code-generator.com/docs/getting-started/
yarn add -D \
  @graphql-codegen/cli \
  @graphql-codegen/introspection \
  @graphql-codegen/typescript \
  @graphql-codegen/typescript-operations \
  @graphql-codegen/typescript-react-apollo

UI

# Material-UI
yarn add @mui/material @mui/icons-material
yarn add @emotion/react @emotion/styled @emotion/cache @emotion/server 

# Material-UI Formik
yarn add formik formik-mui
yarn add yup
yarn add -D @types/yup

# Tailwind CSS
yarn add -D \
  tailwindcss \
  tailwindcss-theming

# React Table
yarn add react-table
yarn add -D @types/react-table

Linter and formatter

# Eslint
yarn add -D \
  eslint \
  eslint-plugin-import \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-jsx-a11y \
  eslint-config-airbnb \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin

# Prettier
yarn add -D \
  prettier \
  eslint-config-prettier

Testing

# Jest
# https://jestjs.io/docs/en/getting-started
# https://jestjs.io/docs/en/tutorial-react
# https://github.com/zeit/next.js/tree/canary/examples/with-jest
#
# Included in Next.js
# yarn add -D \
#   @babel/core \
#   @babel/preset-env \
#   @babel/preset-typescript \
#   @babel/preset-react
yarn add -D \
  jest \
  @types/jest \
  babel-jest

# React test renderer
yarn add -D react-test-renderer

# Testing Library
# https://testing-library.com/docs/react-testing-library/intro
# https://testing-library.com/docs/ecosystem-user-event
# https://testing-library.com/docs/ecosystem-jest-dom
yarn add -D \
  @testing-library/react \
  @testing-library/user-event \
  @testing-library/jest-dom

# Enzyme
# https://airbnb.io/enzyme/docs/installation/
yarn add -D \
  enzyme \
  enzyme-adapter-react-16

# Cypress
# https://docs.cypress.io/guides/tooling/typescript-support.html
# https://github.com/cypress-io/cypress-webpack-preprocessor
# https://github.com/cypress-io/cypress-and-jest-typescript-example
#
# Included in Next.js
# yarn add -D \
#   typescript \
#   webpack
#
# Not required since version 4.4.0
# yarn add -D \
#   @cypress/webpack-preprocessor \
#   ts-loader \
#   babel-loader @babel/core @babel/preset-env
yarn add -D cypress \
  eslint-plugin-cypress \
  start-server-and-test

# Cypress image snapshot
yarn add -D \
  cypress-image-snapshot \
  @types/cypress-image-snapshot

# Storybook
# https://storybook.js.org/docs/guides/guide-react/
# https://storybook.js.org/docs/configurations/typescript-config/
# https://storybook.js.org/docs/addons/using-addons/
# @babel/core is included in Next.js
yarn add -D \
  @storybook/react \
  babel-loader @babel/core \
  babel-preset-react-app \
  @storybook/addons \
  storycap

# reg-viz
yarn add -D reg-cli

About

๐Ÿš€ Next.js framework starter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors