简体   繁体   English

使用TypeScript的Aurelias捆绑过程

[英]Aurelias Bundling Process using TypeScript

I'm using the asp.net 5 typescript skeleton. 我正在使用asp.net 5打字稿框架。 When I bundle the application, inside the "dist" folder, I'm seeing a bunch of html and js files. 当我将应用程序捆绑在“ dist”文件夹中时,我看到了一堆html和js文件。 According to the bundles.js file as in: 根据bundles.js文件,如下所示:

"bundles": {
"dist/app-build": {
  "includes": [
    "[**/*.js]",
    "**/*.html!text",
    "**/*.css!text"
  ],

If I'm thinking correctly, I should the the bundled version of those file with an app-build.html and app-build.js, yes. 如果我的想法正确,我应该将这些文件的捆绑版本与app-build.html和app-build.js捆绑在一起,是的。 Instead I see all the files basically within the "src" folder. 相反,我基本上看到了“ src”文件夹中的所有文件。

What is working correctly though is the aurelia.js file is being generated properly from the following: 虽然正确运行的是从以下位置正确生成了aurelia.js文件:

 "dist/aurelia": {
  "includes": [
    "aurelia-framework",
    "aurelia-materialize-bridge",
    "aurelia-bootstrapper",
    "aurelia-fetch-client",
    more stuff here...

I haven't changed the skeleton at all. 我根本没有改变骨架。 Just trying to get things to work. 只是想让事情起作用。

Any ideas what may be going on? 任何想法可能会发生什么?

Thank much 非常感谢

I'm not sure I understand your question completely and I'm not using the asp.net version of the skeleton but my Aurelia Typescript app has the following bundle config: 我不确定我是否完全理解您的问题,并且没有使用asp.net版本的框架,但是我的Aurelia Typescript应用程序具有以下捆绑包配置:

"dist/app-build": {
  "includes": [
    "[*.js]",
    "*.html!text",
    "[*/**/*.js]",
    "*/**/*.html!text",
    "*/**/*.css!text"
  ]

In my case index.html, app.ts (view root) and main.ts (aurelia config) are located in the 'root' folder src . 以我的index.html为例,app.ts(查看根目录)和main.ts(aurelia配置)位于“根目录”文件夹src中 The rest of my code is located in subdirectories. 我的代码的其余部分位于子目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM