@playform/build
TypeScript icon, indicating that this package has built-in type declarations

0.0.8ย โ€ขย Publicย โ€ขย Published

๐ŸŒ€โ€Buildโ€โ€”

Build all your TypeScript files into JavaScript.

Installation

Add configuration and setup scripts:

npm install -D -E @playform/build

Usage

Through a command line run:

npx @playform/build 'Source/**/*.ts'

or in a package.json file:

{
	"scripts": {
		"prepublishOnly": "Build 'Source/**/*.ts'"
	}
}

ESBuild Configuration

Or with a custom ESBuild config file:

package.json

{
	"scripts": {
		"prepublishOnly": "Build 'Source/**/*.ts' --ESBuild ESBuild.ts"
	}
}

See an example of a configuration file in ESBuild.ts

TypeScript Configuration

tsconfig.json

{
	"compilerOptions": {
		"outDir": "Target"
	},
	"extends": "@playform/build/tsconfig",
	"include": ["Source"]
}

Package Sidebar

Install

npm i @playform/build

Weekly Downloads

10,804

Version

0.0.8

License

SEE LICENSE IN LICENSE

Unpacked Size

13.5 kB

Total Files

28

Last publish

Collaborators

  • nikolarhristov