aurelia Aurelia CLI Adding Aurelia Configuration to a CLI Application


Adding the aurelia-configuration to a cli application sometimes produces a build error. This is caused by a missing dependency so we simply add the dependency to the build bundle.

Try the following:

npm install deep-extend --save  
npm install aurelia-configuration --save

Now add the following to the aurelia.json file in the dependencies array:

    "name": "deep-extend",
    "path": "../node_modules/deep-extend/lib/deep-extend"
    "name": "aurelia-configuration",
    "path": "../node_modules/aurelia-configuration/dist/amd",
    "main": "index"