@beemo/config-typescript
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Beemo - TypeScript config

Build Status npm version npm deps

An official Beemo TypeScript config based on tsconfig-beemo.

yarn install --dev typescript @beemo/core @beemo/driver-typescript @beemo/config-typescript

Config will automatically assume project references are being used if a project is using workspaces.

Setup

Create a configs/typescript.ts file in your Beemo configuration module that re-exports this config with your own include, exclude, etc.

import config from '@beemo/config-typescript';

export default {
	...config,
	include: ['src/**/*'],
};

Settings

The following Beemo settings can be defined and will be enable compiler options.

  • decorators (boolean) - Enable TypeScript decorators. If true, will toggle Babel into loose mode. Defaults to false.
  • react (boolean | classic | automatic) - Enable React (or React Native) syntax with the defined JSX runtime. Defaults to false.
export default {
	module: '<config-module>',
	drivers: ['typescript'],
	settings: {
		react: 'automatic',
	},
};

Package Sidebar

Install

npm i @beemo/config-typescript

Weekly Downloads

2,614

Version

2.0.1

License

MIT

Unpacked Size

8.07 kB

Total Files

9

Last publish

Collaborators

  • beemo-admin
  • milesj