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

2.1.0 • Public • Published

TypeScript Pack npm-latest

Compile TypeScript to JavaScript.

  • esbuild compiles ts and tsx files to js files.
  • eslint lints ts and tsx files via .eslintrc.

Overview

Setup

TypeScript Pack is included in the complete edition.

Current Release

npm install --save-dev @packmule/typescript-pack typescript @babel/core

Nightly Build

npm install --save-dev @packmule/typescript-pack@nightly typescript @babel/core

API

Methods

include(glob: string)
Configure files to be processed. If not used, all files will be processed.

Hints

View the packmule hints documentation for more information.

  • cache - Controls cache utilization for eslint.
  • lint - Controls source-code linting via eslint-webpack-plugin.
  • fix - Controls source-code fixing via eslint-webpack-plugin.
  • map - Controls source map creation.
  • watch - If enabled, only changed files are linted via eslint-webpack-plugin.

Usage

View the packmule API documentation for general usage patterns.

Basic Usage

Configure TypeScript to JavaScript compilation.

import Packmule from '@packmule/core';
import TypeScriptPack from '@packmule/typescript-pack';

const packmule = new Packmule();
packmule.add(new TypeScriptPack());
return packmule.generate();

Internals

Dependencies

This dependencies are used primarily by the pack internally.

  • esbuild-loader
  • eslint-webpack-plugin

These peer dependencies are needed to use the pack.

  • esbuild
  • eslint

License

MIT


Package Sidebar

Install

npm i @packmule/typescript-pack

Weekly Downloads

3

Version

2.1.0

License

MIT

Unpacked Size

9.43 kB

Total Files

11

Last publish

Collaborators

  • t.esterer
  • thasmo