ember-learn / ember-learn/ember-cli-addon-docs

Doesn't work with disabled addons

オープン
#362 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
172
フォーク
142
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

アドオンの isEnabled フックから始め、ember deploy production を実行して問題を再現します。deploy によって docs サブフォルダーとすべてのモジュールを含む JSON ファイルが省略される理由を追跡します。無効化されたアドオンでも、アプリのリクエストが失敗することなく gh-pages 上に完全なアドオン docs アプリを生成できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
build-system, documentation
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。