ember-learn / ember-learn/ember-cli-addon-docs
Doesn't work with disabled addons
- Vorherrschende Sprache
- JavaScript
- Sterne
- 172
- Forks
- 142
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I've got an addon that's made for testing & development, so I'm using ember-cli's `isEnabled` hook to [disable the addon](https://ember-cli.com/api/classes/Addon.html#method_isEnabled) in production environments.
```js
isEnabled() {
return this.app.env !== "production";
}
```
I just noticed that this returns `false` when `ember deploy production` is run. The deploy completes, but what is shipped to gh-pages is not a complete addon docs app. The `docs` subfolder is missing and the app errors when it tries to request the json file with all modules.
For now I've set `isEnabled` to always return `true`, but I'm wondering if I can somehow have this hook detect if it's running as part of an addon docs deploy?
Beitragsleitfaden
Rechercherichtung
Beginne mit dem isEnabled-Hook des Add-ons und reproduziere das Problem, indem du ember deploy production ausführst. Verfolge, warum der Deploy den docs-Unterordner und die JSON-Datei mit allen Modulen auslässt; abgeschlossen ist die Aufgabe, wenn ein deaktiviertes Add-on weiterhin eine vollständige Add-on-Dokumentations-App auf gh-pages erzeugen kann, ohne dass die App-Anfrage fehlschlägt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- build-system, documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100