Kendo-UI-Library-Installation-version-2.0
  • Introduction
  • Kendo UI Library
  • Library Installation
    • General comments
    • Simple (via script tags)
    • Custom Library
    • Advanced (via module loader)
      • JSPM
      • Webpack
      • Aurelia CLI
  • Kendo UI Bridge Plugin
  • Bridge Installation
    • Webpack
      • JavascriptServices
      • Skeleton
    • Aurelia CLI
    • JSPM
  • Next Steps
Powered by GitBook
On this page
  • Aurelia-CLI
  • Important
  1. Bridge Installation

Aurelia CLI

Bridge Installation

Aurelia-CLI

  1. npm install aurelia-kendoui-bridge --save

  2. Open aurelia_project/aurelia.json and append the following to the dependencies section of the vendor-bundle:

    {
     "name": "aurelia-kendoui-bridge",
     "path": "../node_modules/aurelia-kendoui-bridge/dist/amd",
     "main": "index",
     "resources": [
       "common/*.{js,html}",
       "button/*.{js,html}"
     ]
    }

    Note: When getting ready to create a production bundle you will want to make sure that all resources that you use of the bridge (all wrappers) are defined in the resources property in aurelia.json. This tells the CLI to add these files to the bundle. If you don't do this you will get 404's after deploying, as RequireJS will look for the missing files in their original location (node_modules/aurelia-kendoui-bridge/some-file.js)

  3. While still in the aurelia.json file, change the stub property of the text plugin to false:

    {
     "name": "text",
     "extensions": [
       ".html",
       ".css"
     ],
     "stub": false
    }
  4. open main.js and register the plugin:

     export function configure(aurelia) {
       aurelia.use
         .standardConfiguration()
         .developmentLogging()
         .plugin('aurelia-kendoui-bridge');
    
       aurelia.start().then(a => a.setRoot());
     }

Important

PreviousSkeletonNextJSPM

Last updated 7 years ago

It is strongly recommended to continue with the page

getting started