如何将stripe.js添加到ember-cli应用程序?

Jim*_*ows 5 ember.js bower bower-install ember-cli broccolijs

首先,我通过bower包含了stripe.js文件:

bower install --save stripe.js=https://js.stripe.com/v2/
Run Code Online (Sandbox Code Playgroud)

其中创建了"vendor/stripe/index"(注意不是 index.js,而是索引).然后我把它添加到我的西兰花文件中:

app.import('vendor/stripe/index')
Run Code Online (Sandbox Code Playgroud)

这给我带来了这个错误:

You must pass a file to `app.import`. For directories specify them to the constructor under the `trees` option.Error: You must pass a file to `app.import`. For directories specify them to the constructor under the `trees` option.
  at EmberApp.import (/home/jim/Desktop/TaskVelocity/task-velocity/node_modules/ember-cli/lib/broccoli/ember-app.js:521:11)
  at Object.<anonymous> (/home/jim/Desktop/TaskVelocity/task-velocity/Brocfile.js:9:11)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
Run Code Online (Sandbox Code Playgroud)

为了让这个工作,我错过了什么?

尝试了用户的建议,并收到此错误:

Path or pattern "vendor/stripe/stripe.js" did not match any files Error: Path or pattern "vendor/stripe/stripe.js" did not match any files 
at Object.multiGlob   (/home/jim/Desktop/TaskVelocity/web/node_modules/ember-cli/node_modules/broccoli??-concat/node_modules/broccoli-kitchen-sink-helpers/index.js:221:13) – 
Run Code Online (Sandbox Code Playgroud)