0.0.3 • Published 5 years ago
@poach/typescript v0.0.3
Poach-typescript
Poach configuration recipe for Typescript.
Needs @poach/core installed and configured.
Installation
npm i --save-dev @poach/typescript
Configuration
Extend your babel.config.js
let config = require('@poach/core/config/babel/babel.core');
//...
config = require('@poach/typescript/config/babel/babel.core')(config);
//...
module.exports = config;Extend your .eslintrc.js
let config = require('@poach/core/config/eslint/eslint.core');
//...
config = require('@poach/typescript/config/eslint/eslint.core')(config);
//...
module.exports = config;Extend your webpack.core.js
let config = require('@poach/core/config/webpack/webpack.core')
//...
config = require('@poach/typescript/config/webpack/webpack.core')(config);
//...
module.exports = config;- Copy the base
tsconfig.jsonin the root folder of your project.
cp -R node_modules/@poach/typescript/boilerplate/tsconfig.json .You are now able to write .ts files in your project.