apps-script-starter
apps-script-starter copied to clipboard
Add a watch script that auto-deploys on changes
It'd be nice to be able to watch for changes and auto-deploy them. The workflow is a little cumbersome because on every change you need to run npm run deploy
.
Here's my current workflow:
- Make a change and save the file
- Run
npm run deploy
- Switch to the browser and navigate to the Google Doc with the Add-on installed and enabled with Latest code.
- Refresh the page to get newest changes
Coming from other dev workflows, it just feels a little old-school to have to manually deploy and refresh when developing.
It'd be nice to have something like this:
- Run
npm run watch
ornpm run dev
(watches for changes) - Make a change and save file (auto-deploys)
- Auto-reload browser page with Google Doc
Nice work on this, by the way! Everything else is great!
@jappareti I think that solution for this could be gulpjs.com (it's task runner). You can write a little script that will check if any file hes changed and run npm run deploy
@jappareti another solution could be nodemon. You can set it to watch the dist directory and run the deploy command on changes.
This issue is closed due to no recent activity. If you are encountering a similar issue, please create a new one. Thank you.