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.jsonwith 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@bridgeso that jest can use the new@babel/corepackage. - Change options in
jest.config.jsas 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-prettierto disable conflicting rules between prettier and tslint.prettiertakes care of formatting, whiletslinttakes 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.