@zhuxiaojt/tsccp
v0.1.1
Published
TypeScript compiler and asset copier
Readme
@zhuxiaojt/tsccp
Language: English(now) | 简体中文
TypeScript compiler and asset copier
Features
- Copy asset files (excluding TypeScript files) to output directory
- Compile TypeScript code
- Auto-detect and install TypeScript
Installation
npm install -D @zhuxiaojt/tsccpOr use pnpm:
pnpm add -D @zhuxiaojt/tsccpUsage
Make sure your tsconfig.json configures rootDir and outDir:
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
}
}Then add a script to package.json:
{
"scripts": {
"build": "tsccp"
}
}Run:
npm run buildCommand Line Arguments
All arguments are passed through to TypeScript compiler tsc, for example:
tsccp --project tsconfig.prod.jsonLicense
MIT
