Search code examples
aurelia

Using Aurelia CLI to create the navigation-skeleton project


Can I create the navigation-skeleton project using aurelia-cli (v 1.0)?

When I copy the skeleton (also v 1.0) into a folder and then run au start --watch I get an error
Cannot read property 'getTaskMetada' of null

I've also tried using the cli to create a new project first, then copying the skeleton over the resulting folder structure - no go. I'm excited by Aurelia, but still low on the learning curve.


Solution

  • No you cannot. At least the way you are approaching it. The Aurelia-CLI uses requireJS and npm as opposed to JSPM and SystemJS. If you would like, simply run au new from the CLI and follow the project setup and choose yes for install dependencies. You should then be able to copy over the skeletons CSS JS and HTML and mimic the file structure in your new cli project. Once you have paths correct for css and everything it should run just fine. You will see that aurelia.json is the new config.json from the skeletons. Do your bundling and referencing there.

    Refer to this on how to properly configure libraries for bundling in aurelia.json and how to refrence css with <require> tags in cli projects.