INITO on Typescript
- react
- react-router
- i18next + react-i18next
- CSS Modules
- proptypes
- eslint
- babel
- webpack + webpack-dev-server
- enabled code splitting with React.lazy and Suspense
- components generation with create-component-app
- built in HttpClient with axios
npm run generate:component
- it will ask the component name
- it will create a component under the
src/components
folder - components are composed by:
- COMPONENT_NAME.js
- COMPONENT_NAME.styles.js
npm run generate:page
- it will ask the page name
- it will create a page under the
src/pages
folder - components are composed by:
- PAGE_NAME.js
- PAGE_NAME.styles.js
npm run version
- it will ask you the level of version to update (1.0.0) from 1 to 3
- update
package.json
andpackage-lock.json
version
npm run prettier
- it will update all files with the
.prettierrc
and.eslintrc.js
configurations
npm run build
- it will create a project build in /dist
- clone repository:
git clone <repository_url>
cd path/to/app
- run
npm install
npm run build
- first time and when there are changes in /publicnpm start
- app will run at
http://localhost:3000