This is a react-md GitHub template repository that can be used to bootstrap new React apps with react-md and Next.js.
MIT License
A react-md template that I use when spinning up new projects.
format
- format all files with prettier
lint
- run eslint on all typescript and javascript files usingtypecheck
- run tsc --noEmit
on the project
test
- run tests with jest + ts-jest
dev
- start the development server with next
build
- build the app for productionbuild-static
- build the app as pre-compiled html pages (requires nogetServerSideProps
and getInitialProps
)start
- run the production build# run all tests
yarn test
# run all tests and display code coverage
yarn test --coverage
# run tests in watch mode
yarn test --watch
Testing libraries included:
extend-expect
behaviorUse the render
from src/test-utils.tsx instead of the
one from @testing-library/react
since it'll wrap the test in all the require
context providers.
TODO: Complete this section.
yarn add --dev cypress @testing-library/cypress
yarn cypress open
yarn lint
, yarn typecheck
, yarn test --coverage
New tags will be created after a new react-md
version or when a major change
happens in the repo. The tags can be used to see a diff of changes by using the
"compare" view after
viewing a specific tag.