slack-samples / deno-reverse-string

Post a reversed version of a string in a selected channel
MIT License
11 stars 13 forks source link

[HERMES-2252] Update run script to watch for manifest file #17

Closed mwbrooks closed 2 years ago

mwbrooks commented 2 years ago

Summary

This pull request brings in the changes from PR https://github.com/slackapi/deno-reverse-string/pull/16#issuecomment-1090528368 to new-project-structure for MPOJ apps.

It allows the CLI watcher to detect manifest file changes from manifest.json, manifest.js, and manifest.ts. I don't restrict the new-project-structure to only manifest.js because the builder supports all 3 file types to become a MPOJ app.

Test steps

# Create the project
hermes create -t slackapi/deno-reverse-string -b new-project-structure-watch-files
cd my-project/

# Start a local server
hermes run --slackdev

# Test the function

# Edit manifest.js to rename the function's title

# Confirm the function name changes in Slack