├── .eslintrc.json ├── .eslintrcignore ├── .github └── workflows │ └── nodejs.yml ├── .gitignore ├── .husky └── pre-commit ├── .prettierrc ├── .vscode └── setting.json ├── Dockerfile-dev ├── LICENSE ├── README-bk.md ├── README.md ├── bsconfig.json ├── docker-compose.yml ├── env.build ├── images ├── decode-json.png ├── gentype-commonjs.png └── gentype-es6.png ├── jest.config.js ├── jest.setup.js ├── next-env.d.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── server.js ├── src ├── __test___ │ ├── __snapshots__ │ │ └── index.test.tsx.snap │ └── index.test.tsx ├── components │ └── nav.tsx ├── env.ts ├── gentype-es6.tsx.test ├── jsonDecoders │ ├── decode.bs.js │ ├── decode.gen.tsx │ └── decode.re ├── pages │ ├── _app.tsx │ ├── api │ │ └── user.ts │ ├── base.tsx │ ├── index.tsx │ └── io-ts.tsx ├── shims │ ├── Js.shim.ts │ ├── ReactEvent.shim.ts │ ├── ReactShim.shim.ts │ └── ReasonPervasives.shim.ts ├── styles │ ├── button.css │ └── index.css ├── typings │ └── global.d.ts └── utils │ ├── jsonDecoderConfig.ts │ └── sentry.ts ├── tailwind.config.js ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.eslintrcignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/setting.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/.vscode/setting.json -------------------------------------------------------------------------------- /Dockerfile-dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/Dockerfile-dev -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/LICENSE -------------------------------------------------------------------------------- /README-bk.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/README-bk.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/README.md -------------------------------------------------------------------------------- /bsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/bsconfig.json -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /env.build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/env.build -------------------------------------------------------------------------------- /images/decode-json.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/images/decode-json.png -------------------------------------------------------------------------------- /images/gentype-commonjs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/images/gentype-commonjs.png -------------------------------------------------------------------------------- /images/gentype-es6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/images/gentype-es6.png -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/jest.config.js -------------------------------------------------------------------------------- /jest.setup.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/postcss.config.js -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/server.js -------------------------------------------------------------------------------- /src/__test___/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/__test___/__snapshots__/index.test.tsx.snap -------------------------------------------------------------------------------- /src/__test___/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/__test___/index.test.tsx -------------------------------------------------------------------------------- /src/components/nav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/components/nav.tsx -------------------------------------------------------------------------------- /src/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/env.ts -------------------------------------------------------------------------------- /src/gentype-es6.tsx.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/gentype-es6.tsx.test -------------------------------------------------------------------------------- /src/jsonDecoders/decode.bs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/jsonDecoders/decode.bs.js -------------------------------------------------------------------------------- /src/jsonDecoders/decode.gen.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/jsonDecoders/decode.gen.tsx -------------------------------------------------------------------------------- /src/jsonDecoders/decode.re: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/jsonDecoders/decode.re -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/pages/api/user.ts -------------------------------------------------------------------------------- /src/pages/base.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/pages/base.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/io-ts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/pages/io-ts.tsx -------------------------------------------------------------------------------- /src/shims/Js.shim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/shims/Js.shim.ts -------------------------------------------------------------------------------- /src/shims/ReactEvent.shim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/shims/ReactEvent.shim.ts -------------------------------------------------------------------------------- /src/shims/ReactShim.shim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/shims/ReactShim.shim.ts -------------------------------------------------------------------------------- /src/shims/ReasonPervasives.shim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/shims/ReasonPervasives.shim.ts -------------------------------------------------------------------------------- /src/styles/button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/styles/button.css -------------------------------------------------------------------------------- /src/styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/styles/index.css -------------------------------------------------------------------------------- /src/typings/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/typings/global.d.ts -------------------------------------------------------------------------------- /src/utils/jsonDecoderConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/utils/jsonDecoderConfig.ts -------------------------------------------------------------------------------- /src/utils/sentry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/src/utils/sentry.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nhducit/batteries-included-nextjs/HEAD/yarn.lock --------------------------------------------------------------------------------