Gulp 如何正确地捆绑包含html文件、js文件和依赖项的aurelia插件? 处境

Gulp 如何正确地捆绑包含html文件、js文件和依赖项的aurelia插件? 处境,gulp,aurelia,jspm,Gulp,Aurelia,Jspm,我们正在应用程序中使用 jspm install github:shaunluttin/aurelia-leaflet 插件和结果将导致以下安装 jspm_packages github Leaflet <----- the original Leaflet@0.7.7 dist images leaftlet.css leaflet.js

我们正在应用程序中使用

jspm install github:shaunluttin/aurelia-leaflet
插件和结果将导致以下安装

jspm_packages
  github
    Leaflet              <----- the original
      Leaflet@0.7.7
        dist 
          images
          leaftlet.css
          leaflet.js
          leaflet-src.js      <----- dependency
      Leaflet@0.7.7.js
    shaunluttin
      aurelia-leftlet@0.1.2       <----- the aurelia plugin
        helpers
        aurelia-leaflet-exceptions.js
        index.js                         <----- dependency
        leaflet.html
        leaflet.js
        leaflet-defaults.js
      aurelia-leaflet@0.1.2.js
奥雷利亚-leaflet@0.1.2.js

define(["github:shaunluttin/aurelia-leaflet@0.1.2/index"], function(main) {
  return main;
});
为了提高性能,我们将aurelia传单捆绑如下:

"dist/leaflet-bundle":
  "includes": [
    "shaunluttin/aurelia-leaflet",        
    "shaunluttin/aurelia-leaflet/*.js",
    "shaunluttin/aurelia-leaflet/leaflet.html!text"
    ],
"dist/leaflet-bundle":
  "includes": [
    "shaunluttin/aurelia-leaflet",        
    "shaunluttin/aurelia-leaflet/*.js",
    "shaunluttin/aurelia-leaflet/leaflet.html!text"
    ],
gulp bundle
使用aurelia bundler创建以下bundle

"leaflet-bundle.js" : [
  "github:Leaflet/Leaflet@0.7.7.js",
  "github:Leaflet/Leaflet@0.7.7/dist/leaflet-src.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/aurelia-leaflet-exceptions.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/helpers/layer-factory.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/index.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/leaflet-defaults.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/leaflet.html!github:systemjs/plugin-text@0.0.3.js",
  "github:shaunluttin/aurelia-leaflet@0.1.2/leaflet.js"
]
捆绑包括原始的leaftlet,因为aurelia传单在其index.js文件中指定了依赖项

问题: 有没有一种不必指定每种文件类型就可以捆绑aurelia传单的方法?这似乎很冗长:

"dist/leaflet-bundle":
  "includes": [
    "shaunluttin/aurelia-leaflet",        
    "shaunluttin/aurelia-leaflet/*.js",
    "shaunluttin/aurelia-leaflet/leaflet.html!text"
    ],