How to expose the Surge CLI within your own command line tool, built with Minimist.
This example command line tool will show you how to build Surge into your own CLI, using Minimist. The code is commented, and shows some basic pre- and post-run hooks you can add between Surge’s steps.
You can run the binary to test this module locally with:
node ./bin/exampleTry running example publish to see the hooks in action:
node ./bin/example publishHere are all the pre- and post-run hooks available:
hooks.preAuthhooks.postAuthhooks.preProjecthooks.postProjecthooks.preSizehooks.postSizehooks.preDomainhooks.postDomainhooks.prePublishhooks.postPublish
Copyright © 2015 Chloi Inc.
