如何开始使用Aurelia UX

如何开始使用Aurelia UX,aurelia,Aurelia,所以,我试图让aurelia ux工作,但无法 有一个演示应用程序,但该应用程序基于0.3,而0.6.1则存在。似乎有些东西变了 aurelia ux的最新npm包是0.3.0,所以我想这不是应该使用的。aurelia ux/components包似乎就是要使用的包。。为此,存在一个0.6.1包 因此,我在package.json中添加了: "dependencies": { "@aurelia-ux/components": "^0.6.1", 对于我的aurelia.jso

所以,我试图让aurelia ux工作,但无法

有一个演示应用程序,但该应用程序基于0.3,而0.6.1则存在。似乎有些东西变了

aurelia ux的最新npm包是0.3.0,所以我想这不是应该使用的。aurelia ux/components包似乎就是要使用的包。。为此,存在一个0.6.1包

因此,我在package.json中添加了:

  "dependencies": {
      "@aurelia-ux/components": "^0.6.1",
对于我的aurelia.json:

      {
        "name": "aurelia-ux",
        "path": "../node_modules/@aurelia-ux/components/dist/amd",
        "main": "index",
        "resources": ["**/*.{css,html}"]
      }
这在我的构建输出中提供了:

Tracing aurelia-ux...
 ------- File not found or not accessible ------
| Location: C:/Work/Dat/AuFront/src/@aurelia-ux/button.js|
| Requested by: C:\Work\Dat\AuFront\node_modules\@aurelia-ux\components\dist\amd\index.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package

这看起来像是某种路径引用问题?是否有人提供了一个有效的示例?

因此,诀窍是包括以下npm包:

@aurelia ux/组件

在Aurelia.json中添加以下内容:

     {
        "name": "@aurelia-ux/core",
        "path": "../node_modules/@aurelia-ux/core/dist/amd",
        "main": "index",
        "resources": ["**/*.{css,html}"]
      },
然后您想要使用的每个组件,如下所示:

      {
        "name": "@aurelia-ux/button",
        "path": "../node_modules/@aurelia-ux/button/dist/amd",
        "main": "index",
        "resources": ["**/*.{css,html}"]
      },
然后,在main.ts上使用它,如下所示:

    .plugin('@aurelia-ux/core')
    .plugin('@aurelia-ux/button')