empress / field-guide

SEO friendly static site implementation of a design system documentation site
https://field-guide.netlify.app/
MIT License
17 stars 7 forks source link

Ember serve throws error when there is no templates folder. #8

Open gokatz opened 4 years ago

gokatz commented 4 years ago

Seggrating the common components is really easy with this addon. Thanks for this addon built especially for Ember :)

One issue I encounter is when templates/application.hbs was removed by field guide addon, ember serve command throws an error when there is no templates folder. Adding a dummy template folder suppresses this issue.

"ember-cli": "~3.16.0", "ember-source": "~3.16.0", "field-guide": "^1.0.4", "field-guide-default-template": "^1.1.0"

mansona commented 4 years ago

Hey @gokatz 👋 yes this is unfortunately a strange behaviour in ember-cli that doesn't behave the same way as it does with a "normal" Ember app 🙈 for now you can create a .gitkeep file in that folder using the following command:

mkdir -p tests/dummy/app/templates/ && touch tests/dummy/app/templates/.gitkeep

for more info you can check out: https://github.com/ember-cli/ember-cli/issues/9082

I might actually solve this for other people by creating a .empress hidden file in that folder with the blueprint but unfortunatley I can't create a .gitkeep because the API for ember-cli ignores them in blueprints 🙃