Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pre-publish action for Static Websites #216

Closed
gabrielvdk opened this issue Aug 7, 2018 · 4 comments
Closed

Implement pre-publish action for Static Websites #216

gabrielvdk opened this issue Aug 7, 2018 · 4 comments
Labels
Milestone

Comments

@gabrielvdk
Copy link

Would be great if you can do some pre-processing before the files go to Azure.

Eg.

  • Configure some settings based on target storage account
  • Increase a build number / date-time
  • etc.
@StephenWeatherford
Copy link
Contributor

@fiveisprime Do we do something like this for publishing in any of the other extensions?

@fiveisprime
Copy link
Member

We don't; however it makes sense to be able to configure some kind of pre-publish build for SPAs. Maybe we could hook into VS Code's build system to trigger the command that you could customie how you see fit?

@ejizba
Copy link
Member

ejizba commented Aug 8, 2018

In Functions, we run dotnet publish before deploying a C# project. VS Code has a tasks api that you can leverage to list and execute tasks from an extension. See here for more info: https://github.com/Microsoft/vscode-azurefunctions/blob/master/src/commands/deploy.ts#L201

I'm not sure what the user experience would be in the storage extension, but I'm guessing you could leverage the same tasks api

@StephenWeatherford
Copy link
Contributor

I like that idea. prepublishStaticWebsite?

@StephenWeatherford StephenWeatherford added this to the 0.5.0 milestone Oct 12, 2018
@ejizba ejizba modified the milestones: 0.6.0, 0.5.0 Dec 11, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants