Whilst I am still encountering problems with the CLI it now runs for me.
I really wanted to add the module Aurelia-bootstrap to the project but it appears the info on the developer’s website is out of sync with the current version of the CLI.
He has provided the following details
Aurelia CLI
For Aurelia CLI there are a couple of things that need to be done. We need to install:
npm install aurelia-bootstrap -s
npm install velocity-animate -s
npm install tether -s
Once the packages are installed we need to indicate Aurelia CLI how to load the plugins. Add the following in your aurelia-project/aurelia.json project file:
"velocity-animate",
"tether",
{
"name": "aurelia-bootstrap",
"path": "../node_modules/aurelia-bootstrap/dist/amd",
"main": "index",
"resources": [
"**/*.html"
]
}
Finally you need to indicate Aurelia to use the plugin. To do this find your main.js file and add the plugin:
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-bootstrap')
.feature('resources');
aurelia.start().then(() => aurelia.setRoot());
}
However the latest CLI does not have an aurelia.json so the setup will have changed.
I did run the following:
npm install aurelia-bootstrap -s
npm install velocity-animate -s
npm install tether -s
However I note that whilst it has loaded these into the node-modules directory it has not updated the package.json.
I am unsure how to add these to the package.json file and further to modify the main.ts as well as actually add and reference bootstrap 3.3.7 in the middle of all this…
What do I need to do to get this module to work with the latest CLI?