ember-cli-staticboot icon indicating copy to clipboard operation
ember-cli-staticboot copied to clipboard

ember-cli-deploy middleware?

Open lolmaus opened this issue 8 years ago • 3 comments

Hi!

One of the primary uses of ember-cli-staticboot is to host a static webapp on GitHub Pages.

But the fact that ember-cli-staticboot builds into the dist/staticboot/ folder prevents ember-cli-deploy from deploying the distro properly to GitHub Pages.

lolmaus avatar Feb 12 '17 16:02 lolmaus

Could this not be resolved using the destDir option to change where the build is outputted?

mike183 avatar Feb 18 '17 22:02 mike183

No, unfortunately, because destDir cannot be /, i. e. the root of the dist folder. In other words, you can choose the name of a subfolder, but you can't replace the main folder with its content.

lolmaus avatar Feb 19 '17 08:02 lolmaus

Here's a proof of concept: https://github.com/lolmaus/lolma.us/blob/b7c1163dccab5d21c4bc4245b0483da5f698fa4a/lib/ember-cli-deploy-manipulate/index.js

This thing took so much time and effort that I almost lost hope.

I had to monkey patch ember-cli-deploy, so this is not ready to become an addon yet. Gonna try contributing to ember-cli-deploy.

lolmaus avatar Feb 19 '17 22:02 lolmaus