Simple, barebones starter Typescript project with Jest setup.
Typescript compiler only used for code editing. Babel is solely responsible for transpilation.
To use:
git clone [email protected]:rencire/ts-babel-jest.git <your_project_name>
- Initializes
tsconfig.json
with default options. Change as needed.
npm i -D [email protected]
npx tsc --init
npm i -D @babel/[email protected]
npm i -D @babel/[email protected]
npm i -D @babel/[email protected]
npm i -D @babel/[email protected]
- Need
babel-core@bridge
so that jest can use the new@babel/core
package. - Change options in
jest.config.js
as needed.
npm i -D @types/[email protected]
npm i -D [email protected]
npm i -D [email protected]
npx jest --init
npm i -D [email protected]
npx tslint --init
- install
tslint-config-prettier
to disable conflicting rules between prettier and tslint.prettier
takes care of formatting, whiletslint
takes care of all the rest. - Add
"tslint-config-prettier"
totslint.json
.
npm i -D [email protected]
npm i -D [email protected]
npm i -D [email protected]
npm i -D [email protected]
Queries in .browserslistrc
dictate which browsers babel should target when transpiling.
See browserslist for more details.