slack-samples / bolt-js-custom-step-template

A template for building automations with Bolt for JavaScript
MIT License
3 stars 1 forks source link

Include hooks for cloning this sample with the CLI #2

Closed zimeg closed 12 months ago

zimeg commented 12 months ago

Type of change

Summary

This PR includes a slack.json to get hooks from @slack/bolt to run the app and successfully clone the app using the CLI. These hooks are only present in a feature branch of @slack/bolt so npm link @slack/bolt is still necessary after cloning the app.

The manifest is also updated to include outgoing_domains to prevent an invalid manifest error when installing the app via CLI.

Reviewers

Experience the installation flow with these commands:

$ slack create bolts --template slack-samples/bolt-js-automation-template --branch cli-compatability
$ cd bolts
$ npm link @slack/bolt  # After configuring a local copy for remote functions
$ cp .env.sample .env   # Update with app and bot tokens
$ slack run

Requirements

zimeg commented 12 months ago

@misscoded 🙌 🚀