@poach/typescript

0.0.3 • Public • Published

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.json in 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.

Package Sidebar

Install

npm i @poach/typescript

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

4.86 kB

Total Files

8

Last publish

Collaborators

  • marcellomontemagno