├── .browserslistrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .husky ├── post-merge ├── post-rewrite ├── pre-commit └── pre-push ├── .prettierignore ├── .prettierrc ├── .stylelintrc.json ├── hooks └── post-merge.sh ├── jest.config.js ├── jest.setup.ts ├── next-env.d.ts ├── next.config.js ├── package.json ├── readme.md ├── src ├── common │ └── css │ │ ├── colors.scss │ │ ├── layout.scss │ │ └── variables.scss ├── components │ ├── counter │ │ ├── Counter.test.tsx │ │ ├── Counter.tsx │ │ └── counter.module.scss │ └── icon │ │ ├── Icon.tsx │ │ ├── icon.module.scss │ │ └── icons │ │ ├── index.ts │ │ ├── minus.svg │ │ └── plus.svg ├── containers │ └── counter │ │ └── HomepageCounter.tsx ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── index.tsx │ └── reset.tsx └── store │ ├── counter │ ├── counterActions.ts │ └── counterReducer.ts │ └── store.ts ├── tsconfig.json └── types ├── svg-sprite-loader └── index.d.ts └── svg.d.ts /.browserslistrc: -------------------------------------------------------------------------------- 1 | # Supported browsers 2 | 3 | last 3 version 4 | > 5% 5 | not dead 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | *.js -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/post-merge: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.husky/post-merge -------------------------------------------------------------------------------- /.husky/post-rewrite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.husky/post-rewrite -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npm run test 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/*.d.ts 2 | node_modules -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.prettierrc -------------------------------------------------------------------------------- /.stylelintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/.stylelintrc.json -------------------------------------------------------------------------------- /hooks/post-merge.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/hooks/post-merge.sh -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/jest.config.js -------------------------------------------------------------------------------- /jest.setup.ts: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' 2 | -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/readme.md -------------------------------------------------------------------------------- /src/common/css/colors.scss: -------------------------------------------------------------------------------- 1 | $color-brand-primary: #ffc300; 2 | -------------------------------------------------------------------------------- /src/common/css/layout.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/common/css/layout.scss -------------------------------------------------------------------------------- /src/common/css/variables.scss: -------------------------------------------------------------------------------- 1 | $size-grid-unit: 0.5rem; 2 | -------------------------------------------------------------------------------- /src/components/counter/Counter.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/counter/Counter.test.tsx -------------------------------------------------------------------------------- /src/components/counter/Counter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/counter/Counter.tsx -------------------------------------------------------------------------------- /src/components/counter/counter.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/counter/counter.module.scss -------------------------------------------------------------------------------- /src/components/icon/Icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/icon/Icon.tsx -------------------------------------------------------------------------------- /src/components/icon/icon.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/icon/icon.module.scss -------------------------------------------------------------------------------- /src/components/icon/icons/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/icon/icons/index.ts -------------------------------------------------------------------------------- /src/components/icon/icons/minus.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/icon/icons/minus.svg -------------------------------------------------------------------------------- /src/components/icon/icons/plus.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/components/icon/icons/plus.svg -------------------------------------------------------------------------------- /src/containers/counter/HomepageCounter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/containers/counter/HomepageCounter.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/reset.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/pages/reset.tsx -------------------------------------------------------------------------------- /src/store/counter/counterActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/store/counter/counterActions.ts -------------------------------------------------------------------------------- /src/store/counter/counterReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/store/counter/counterReducer.ts -------------------------------------------------------------------------------- /src/store/store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/src/store/store.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/svg-sprite-loader/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/types/svg-sprite-loader/index.d.ts -------------------------------------------------------------------------------- /types/svg.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sanjaytwisk/nextjs-ts/HEAD/types/svg.d.ts --------------------------------------------------------------------------------