All notable changes to this project will be documented in CHANGELOG.md.
- commitlint
- craco
- eslint
- husky
- lint-staged
- prettier
- standard-version
- craco-alias
- cz-conventional-changelog
- commitzen
$ git add [FILES] $ yarn commit
-
? Select the type of change that you're committing: (Use arrow keys) ❯ feat: A new feature fix: A bug fix docs: Documentation only changes style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) refactor: A code change that neither fixes a bug nor adds a feature perf: A code change that improves performance test: Adding missing tests or correcting existing tests
-
? What is the scope of this change (e.g. component or file name): (press enter to skip)
-
? Write a short, imperative tense description of the change (max 94 chars):
-
? Provide a longer description of the change: (press enter to skip)
-
? Are there any breaking changes? (y/N)
-
? Does this change affect any open issues? (y/N)
$ yarn release
- 📄 CHANGELOG.md
- 📄 README.md
- 📄 commitlint.config.js
- 📄 craco.config.js
- 📂 env
- 📄 node_modules
- 📄 package.json
- 📂 public
- 📄 favicon.ico
- 📄 index.html
- 📄 manifest.json
- 📄 robots.txt
- 📂 src
- 📄 App.tsx
- 📄 GlobalStyle.ts
- 📄 Routes.tsx
- 📂 components
- 📂 configs
- 📄 index.ts
- 📄 index.tsx
- 📂 pages
- 📄 index.ts
- 📄 react-app-env.d.ts
- 📂 services
- 📄 index.ts
- 📂 templates
- 📂 theme
- 📄 index.ts
- 📂 utils
- 📄 index.ts
- 📄 tsconfig.json
- 📄 tsconfig.paths.json
- 📄 yarn.lock
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"components/*": ["./components/*"]
}
}
}
❌ import COMPONENT from '../../components/path/to/component';
✅ import COMPONENT from 'components/path/to/component';
interface Page{
path: string;
exact: boolean;
component: any;
isPrivate: boolean;
}
const pages: Page[] = [
{ path: "/", exact: true, component: () => <p>Hello Home!</p> },
{ path: "/404", exact: true, component: () => <p>Page Not Found</p> },
[ADD A NEW PAGE HERE]
];