This is a template for my React projects, with carefully configured TypeScript, Mocha, Jest, ES6 modules, ESLint, and editorconfig.
- Webpack configuraiton for typescript translator;
- Webpack configurations with the common library and development and production targets;
- package.json with the scripts commands dev/prod/stats/lint/test
- tsconfig.json carefully tailored to work flowlessly with typescript transpiling of .ts, .tsx source files and and mocha/jest tests usint ES6 modules;
- .mocharc.json with the setting allowing to write .ts tests with ES6 modules;
- eslint.config.js with the ts/tsx coding standards i follow in my projects
- .editorconfig to share the coding standard setting across each IDE
git clone https://github.com/s4ysolutions/webpack-starter
rm -rf .github
... make the changes
git init
git remote add ...
git push
package.json
has "type": "module"
and the project by default supports import
directive
(ES6 modules).
This the reason while commonjs files must have .cjs
extension.