ember-engines
0.4.0
,ember-cli
2.10.0
というスタンドアロンのルーティング可能なエンジンを作成しました。エバーエンジンのセットアップ方法は?
私はエンジンのインデックスにルート(/thingy/
)を呼び出す場合、私はこのエラーを取得する:
this.mount('thingy-frontend', { as: 'thingy', path: 'thingy' });
エンジンのApp routes.js
:
this.route('index', { path: '/' });
のApp router.js
の消費
Assertion Failed: Asset manifest does not list any available bundles.
をザエンジンは、ember-cli
アプリのディレクトリにシンボリックリンクでインストールされています。 (See here why)。
this.mount('thingy-frontend', { as: 'thingy' });
エンジンのApp routes.js
:
this.route('index', { path: 'new' });
IのApp router.js
を消費私はそれが動作するかどうかをテストするためにルートを変更しようとした楽しみのためだけに
...
/thingy/new
と呼ばれ、UnrecognizedURLError
があります。私はルートパスを呼び出す場合の代替は、私はエンジンindex.js
でconsole.log('...');
を配置する場合、私は任意の出力を参照することはできません。またAssertion Failed: Asset manifest does not list any available bundles.
を取得します。それはまったく読み込まれていないようです。
セットアップは、公式のREADMEと公式のサンプルreposに触発されました。
このEmberエンジンの設定を修正する方法はありますか?
あなたはGitHubの上のリポジトリを見つけることができます。
- エンジン:https://github.com/phortx/ember-engines-engine
- はREADMEとアプリケーションの消費:https://github.com/phortx/ember-engines-app
'ember generate in-repo-addon'ではなく、既存のエンジンのファイルをコピーしてIn-Repo-Addonを作成したので、 – givanse