Aurelia CLI
Bridge Installation
Aurelia-CLI
npm install aurelia-kendoui-bridge --saveOpen
aurelia_project/aurelia.jsonand append the following to thedependenciessection of thevendor-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
resourcesproperty inaurelia.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)While still in the
aurelia.jsonfile, change thestubproperty of thetextplugin tofalse:{ "name": "text", "extensions": [ ".html", ".css" ], "stub": false }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
It is strongly recommended to continue with the getting started page
Last updated