テスト Web アプリを開発しています。私は使用しています
- RequireJS
- 背骨
- ロダッシュ
- バウアー
jQuery Mobileも使いたいので、入力してインストールしました
bower install jquery-mobile --save
これで、デフォルトの「bower-components」フォルダーにすべての jqm プロジェクトができました。
その後、requirejs構成セクションにjqmパスを追加しました
requirejs.config({
baseUrl: '../scripts/app',
paths: {
jquery: '../../bower_components/jquery/jquery.min',
jquerymobile: '../../bower_components/jquery-mobile/js/jquery.mobile',
underscore: '../../bower_components/lodash/lodash',
backbone: '../../bower_components/backbone/backbone',
text: '../../bower_components/requirejs-text/text',
},
shim: {
backbone: {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
}
}
});
ここで、アプリを起動すると、requirejs は、jqm モジュール パス「bower_components」からではなく、アプリ ルート「app」からすべての jqm サブモジュール (前のリンク ファイルで定義) をロードしようとします。
私は何が欠けていますか?