mhxbe / react-starter Goto Github PK
View Code? Open in Web Editor NEWAn opinionated starter-kit for quickly bootstrapping client-side React projects written in TypeScript.
Home Page: react-starter-mhxbe.vercel.app
License: MIT License
An opinionated starter-kit for quickly bootstrapping client-side React projects written in TypeScript.
Home Page: react-starter-mhxbe.vercel.app
License: MIT License
Add Taildwind CSS for styling our components.
Check if we can efficiently use tailwind in combination with emotion.
Short research led us to these implementations:
tailwind.macro
: https://github.com/bradlc/tailwind.macro (seems a little bit outdated, no TS support)twin.macro
: https://github.com/ben-rogerson/twin.macro#how-it-works (with TS support)Check if we can easily implement semantic versioning in combination with renovatebot.
Implement custom font with Tailwindcss.
Investigate best approach for serving custom local fonts like 'Open Sans'.
Separate requests would be better than the fonts being bundled in the js bundle.
Add i18n (Internationalization) so we can easily support multilinguality throughout our app.
Compare the following libraries:
Add documentation for:
Add nfl/react-helmet for managing the document head.
Upgrade webpack to v5.
v5 is currently in beta. Maybe wait till v5 is released.
Jest supports jest.config.ts by default now.
This we we can have types/completion in our jest configuration:
Release notes: https://github.com/facebook/jest/releases/tag/v26.6.0
Using a service-worker in TypeScript feels hacky.
Check the @ts-ignore in service-worker.ts.
A fix for this would be using separate tsconfigs for:
"DOM", "DOM.Iterable"
)"webworker"
)Check https://github.com/jakearchibald/typescript-worker-example for a possible solution.
Check this demo on Twitter: demo
Use a CHANGELOG.md (in JSON) and let the Service Worker display the diff to show "what's new" in the app.
Add react-error-boundary for gracefully catching React errors by providing a fallback component/callback.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@commitlint/cli
, @commitlint/config-conventional
, @commitlint/cz-commitlint
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@babel/cli
, @babel/core
, @babel/plugin-transform-runtime
, @babel/preset-env
, @babel/preset-react
, @babel/preset-typescript
, @commitlint/cli
, @commitlint/config-conventional
, @commitlint/cz-commitlint
, @pmmmwh/react-refresh-webpack-plugin
, @testing-library/jest-dom
, @types/html-webpack-plugin
, @types/jest
, @types/react
, @types/react-dom
, @types/react-helmet
, @types/webpack-bundle-analyzer
, @types/webpack-env
, @typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, autoprefixer
, babel-loader
, commitizen
, css-loader
, eslint
, eslint-config-prettier
, eslint-plugin-compat
, eslint-plugin-import
, eslint-plugin-jsx-a11y
, eslint-plugin-react
, eslint-plugin-sonarjs
, eslint-plugin-testing-library
, html-webpack-plugin
, i18next
, i18next-http-backend
, jest
, jest-environment-jsdom
, postcss
, postcss-loader
, prettier
, react-i18next
, react-router-dom
, style-loader
, tailwindcss
, typescript
, webpack
, webpack-bundle-analyzer
, webpack-cli
, webpack-dev-server
, workbox-core
, workbox-precaching
, workbox-routing
, workbox-strategies
, workbox-webpack-plugin
, workbox-window
)workbox-core
, workbox-precaching
, workbox-routing
, workbox-strategies
, workbox-webpack-plugin
, workbox-window
).github/workflows/sonar.yml
actions/checkout v3
package.json
focus-visible 5.2.0
i18next 22.4.9
i18next-browser-languagedetector 6.1.8
i18next-http-backend 2.1.1
react 18.2.0
react-dom 18.2.0
react-error-boundary 3.1.4
react-helmet 6.1.0
react-i18next 12.1.4
react-router-dom 6.6.2
tailwindcss 3.2.4
workbox-core 6.5.4
workbox-precaching 6.5.4
workbox-routing 6.5.4
workbox-strategies 6.5.4
workbox-window 6.5.4
@babel/cli 7.20.7
@babel/core 7.20.12
@babel/plugin-transform-runtime 7.19.6
@babel/preset-env 7.20.2
@babel/preset-react 7.18.6
@babel/preset-typescript 7.18.6
@commitlint/cli 17.4.2
@commitlint/config-conventional 17.4.2
@commitlint/cz-commitlint 17.4.2
@pmmmwh/react-refresh-webpack-plugin 0.5.10
@testing-library/jest-dom 5.16.5
@testing-library/react 13.4.0
@types/html-webpack-plugin 3.2.6
@types/jest 29.2.5
@types/react 18.0.26
@types/react-dom 18.0.10
@types/react-helmet 6.1.6
@types/webpack-bundle-analyzer 4.6.0
@types/webpack-env 1.18.0
@types/workbox-webpack-plugin 5.1.8
@types/workbox-window 4.3.4
@typescript-eslint/eslint-plugin 5.48.1
@typescript-eslint/parser 5.48.1
autoprefixer 10.4.13
babel-loader 9.1.2
clean-webpack-plugin 4.0.0
commitizen 4.2.6
copy-webpack-plugin 11.0.0
css-loader 6.7.3
eslint 8.31.0
eslint-config-prettier 8.6.0
eslint-plugin-compat 4.0.2
eslint-plugin-import 2.27.4
eslint-plugin-jest-dom 4.0.3
eslint-plugin-jsx-a11y 6.7.1
eslint-plugin-prettier 4.2.1
eslint-plugin-react 7.32.0
eslint-plugin-react-hooks 4.6.0
eslint-plugin-sonarjs 0.18.0
eslint-plugin-testing-library 5.9.1
html-webpack-plugin 5.5.0
husky 8.0.3
identity-obj-proxy 3.0.0
is-ci 3.0.1
jest 29.3.1
jest-environment-jsdom 29.3.1
jest-sonar-reporter 2.0.0
postcss 8.4.21
postcss-focus-visible 7.1.0
postcss-loader 7.0.2
prettier 2.8.3
pretty-quick 3.1.3
react-refresh 0.14.0
style-loader 3.3.1
ts-node 10.9.1
typescript 4.9.4
webpack 5.75.0
webpack-bundle-analyzer 4.7.0
webpack-cli 5.0.1
webpack-dev-server 4.11.1
webpack-pwa-manifest 4.3.0
workbox-webpack-plugin 6.5.4
node >=16.15.0
npm ~8.19.0
Upgrade workbox to v6.
v6 is currently in alpha but there are relatively minor breaking changes between v5 and v6 in the current alphas.
Source: GoogleChrome/workbox#2601 (comment)
Polyfill :focus-visible
MDN: :focus-visible
Polyfill: focus-visibile
src/service-worker.ts uses a importScripts()
to workbox-sw version 5.1.2.
We should add it as a dependency and use them locally.
Replace remaining @emotion styles with tailwindcss
Move reset.css to emotion's Global Styles.
This way we can remove css-loader and its configuration in webpack.config.ts.
Add react-testing-library for testing our code.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .renovaterc.json
Error type: The renovate configuration file contains some invalid settings
Message: packageRules[0]: packageRules cannot combine both matchUpdateTypes and rangeStrategy. Rule: {"automerge":true,"rangeStrategy":"bump","groupName":"dependencies (non-major)","matchUpdateTypes":["minor","patch","pin","digest"]}
Add react-refresh for a better development experience.
This can be problematic since we're using TypeScript instead of babel as a transpiler.
Currentlyreact-refresh
needs babel-loader
as seen here: https://github.com/pmmmwh/react-refresh-webpack-plugin/#usage.
Check if it's worth to add babel (again) instead of TS for transpiling.
Impacted dependencies
Tasks
Lighthouse gave the following warning:
Manifest doesn't have a maskable icon
More info about maskable icons: https://web.dev/maskable-icon/
Add animations when a route change happens.
Check http://reactcommunity.org/react-transition-group/with-react-router or other alternatives.
Research & add Renovate Bot which is a universal dependency update automation tool.
Github: renovatebot/renovate
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.