Minor Changes
-
0abdc91: feat(cli-hooks): add default app and manifest watch config
This package now provides default watch configurations for automatic file watching during
slack run. The CLI will restart your app server when source files change and reinstall your app when the manifest changes.Requirements: These features require Slack CLI v3.12.0+ with file watching support.
Default Configuration
The following watch settings are provided automatically when using this package:
{ "config": { "watch": { "app": { "filter-regex": "\\.js$", "paths": ["."] }, "manifest": { "paths": ["manifest.json"] } } } }- app: Watches for JavaScript file changes to restart the app server
- manifest: Watches the manifest file for changes to reinstall the app
Note: Manifest watching requires a local manifest source in your
.slack/config.jsonfile. Remote manifests will not be updated on file changes.{ "manifest": { "source": "local" } }Custom Configurations
You can override these defaults in your
.slack/hooks.jsonfile to reduce the paths searched or change the file patterns. Read Watch Configurations for more options.TypeScript Development
TypeScript developers should run
tsc --watchin a separate terminal during development. This compiles.tsfiles to.json changes, and the default watch configuration will detect changes to the compileddist/*.jsfiles and restart the app server. This approach works best with the default settings.