@kcws/node-rig
Version:
a rig package for node environment projects using heft
81 lines (77 loc) • 2.1 kB
JSON
/**
* Defines configuration used by core Heft.
*/
{
// "$schema": "https://developer.microsoft.com/json-schemas/heft/heft.schema.json",
"$schema": "https://raw.githubusercontent.com/microsoft/rushstack/main/apps/heft/src/schemas/heft.schema.json",
/**
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
* settings to be shared across multiple projects.
*/
// "extends": "@rushstack/heft-node-rig/profiles/default/config/heft.json",
"phasesByName": {
"build": {
"cleanFiles": [
{
"includeGlobs": [
"lib",
"lib-commonjs",
"lib-es6",
"lib-es2015",
"lib-esnext",
"lib-umd",
"lib-amd",
"lib-system",
"lib-bundle",
"lib-css",
"dist",
"coverage"
]
}
],
"tasksByName": {
"typescript": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft-typescript-plugin"
}
},
"esbuild": {
"taskDependencies": ["typescript"],
"taskPlugin": {
"pluginPackage": "@kcws/heft-esbuild-plugin",
"options": {
"output": "lib-bundle",
"bundle": true,
"minify": true,
"sourcemap": true,
"platform": "node",
"target": "node16"
}
}
},
"eslint": {
"taskDependencies": ["typescript"],
"taskPlugin": {
"pluginPackage": "@rushstack/heft-lint-plugin"
}
},
"api-extractor": {
"taskDependencies": ["typescript"],
"taskPlugin": {
"pluginPackage": "@rushstack/heft-api-extractor-plugin"
}
}
}
},
"test": {
"phaseDependencies": ["build"],
"tasksByName": {
"jest": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft-jest-plugin"
}
}
}
}
}
}