0.1.0 • Published 4 years ago
@scrift/heft-inject v0.1.0
heft-inject
A Heft plugin for injecting simple build tasks.
Usage
Add to devDependencies
"heft-inject": "workspace:*"
Register the plugin in heft.json
{
"heftPlugins": [
{
"plugin": "heft-inject"
}
]
}
Add a configuration file: config/inject.json
{
"$schema": "../node_modules/heft-inject/lib/schemas/inject.schema.json",
"tasks": [
{
// A user-defined task id
"taskId": "task-name",
// The stage of the Heft run during which this task should occur.
// pre-compile, compile, bundle, post-build
"heftEvent": "pre-compile",
// The shell command to be executed
"command": "rushx my-script",
// Glob patterns to be watched. The paths are resolved relative to the project folder. Documentation for supported glob syntaxes: https://www.npmjs.com/package/fast-glob
"globsToWatch": ["tailwind.config.js"]
}
]
}
0.1.0
4 years ago