question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arelia CLI (au new) does not use latest packages in new projects

See original GitHub issue

@boshinski commented on Mon Jan 23 2017

I’m submitting a bug report

  • Library Version: AURELIA-CLI 0.24.0

Please tell us about your environment:

  • Operating System: Windows 7

  • Node Version: 4.5.0

  • NPM Version: 3.10.8
  • JSPM OR Webpack AND Version NA
  • Browser: NA

  • Language: TypeScript 2.0

Current behavior: Creating a new project with aurelia-cli (“au new”) does not use the latest packages. For example, created a new TypeScript project and then ran “ncu” and it displayed the following:

aurelia-bootstrapper             ^1.0.0  →  ^2.0.1
aurelia-tools                    ^0.2.2  →  ^1.0.0
gulp-typescript                 ^2.13.6  →  ^3.1.4
gulp-tslint                      ^5.0.0  →  ^7.0.1
tslint                          ^3.11.0  →  ^4.3.1
typings                          ^1.3.0  →  ^2.1.0
karma                          ^0.13.22  →  ^1.4.0
karma-chrome-launcher            ^1.0.1  →  ^2.0.0
karma-typescript-preprocessor    ^0.2.1  →  ^0.3.1

I believe the issue also occurs in new ESNext projects as well.

Expected/desired behavior:

  • What is the expected behavior? I would expect it to use the latest released versions of the packages.

  • What is the motivation / use case for changing the behavior? Avoid the need for the developer to manually upgrade each of these packages when creating a new Aurelia project with the CLI.


@AshleyGrant commented on Tue Jan 24 2017

For the non-aurelia packages listed, this is expected behavior. We would not want to automatically update the package to a new major version without first testing it. That being said, we can likely update all of these dependencies after we have done some testing to make sure everything still works.

A PR for this would be greatly appreciated, but I will try to work on this on my flight today. Thanks @boshinski!

@EisenbergEffect please move this issue to the CLI repo and assign me, if possible. I’ll create a PR later today.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
JeroenVinkecommented, Feb 25, 2017

@sbolel Feel free to open a PR to the CLI so we can do a proper review. Thanks for working on this!

1reaction
s-hoffcommented, Jan 24, 2017

So far I did a full update of all packages with every project I did, all of them in TypeScript and with unit tests (using aurelia-testing). The only issue I came across is that when building, gulp-typescript gives me a deprecation warning:

gulp-typescript: ts(tsProject) has been deprecated - use .pipe(tsProject(reporter)) instead
  As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject()).
  More information: http://dev.ivogabe.com/gulp-typescript-3/

This is easily fixed by changing the .pipe(ts(typescriptCompiler))line to .pipe(typescriptCompiler())

Also, as far as I know, au test --watch only watches the scriptsand testdirectories anyway and we would have to run an au run --watchin parallel to get the src changes? (au build does not have a watch option)

Read more comments on GitHub >

github_iconTop Results From Across the Web

au new --here fails to scaffold project · Issue #1188 · aurelia/cli
With zero install, npx makes always uses latest makes version. It doesn't keep makes in your npm global installed packages.
Read more >
Updating the Aurelia CLI
The recommended way to do this is to update the CLI globally and create a new project using au new . Then you...
Read more >
Getting this error after installing node js, npm, aurelia-cli when ...
Getting this error after installing node js, npm, aurelia-cli when building aurelia project repository using au build command
Read more >
Building your First Aurelia Application - Manning Publications
These are the three main pathways for creating a new project with Aurelia: ... We'll use the Aurelia CLI to create and run...
Read more >
aurelia-cli - npm
The au new command now simplify wraps npx makes aurelia/v1 . Users can directly use that makes command to create new project. Building....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found