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.

[Proposal] Moving files & packages to aurelia-cli

See original GitHub issue

Hey everyone ! šŸ‘‹

After the default installation of Aurelia with the CLI somes files are created under aurelia_project.

Those are Gulp’s tasks, stubs for generators, environment configuration and the aurelia.json.

I think that those files shouldn’t be managed by the developer. All gulp packages and tasks can be moved inside the CLI and same goes for stubs.

This will allow the aurelia team to manage them easily. Actually, we (devs) need to check with a new installation if tasks has been changed, gulp package updated, etc.

I feel that the current default installation of aurelia with the CLI is kinda bloated cause of that. We will remove 12 packages of the package.json, it will also ensure that aurelia provide the version of package it supports (https://github.com/aurelia/cli/issues/636).

So to resume, my proposal is to…

  1. Move all Gulp’s packages to aurelia/cli directly.
  2. Move all stubs to aurelia/cli directly.
  3. Move all Gulp’s tasks to aurelia/cli directly.
  4. Move env’s configuration to aurelia.json.
  5. Move aurelia.json to the root of the project.
  6. Create a command to ā€œextractā€ tasks and stubs to be able to custom them (like React eject command).

What do you think?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
JeroenVinkecommented, Jun 2, 2017

Hey @RomainLanz. Having the gulp tasks in the project (as opposed to in the CLI ) allows developers to easily modify and extend them, which many developers do. I believe this is a big plus, and I would like to keep it that way. We can definitely improve the update process, which is tracked in https://github.com/aurelia/cli/issues/231, but we have other priorities to take care of right now.

We’re thinking of a solution where developers can install gulp tasks / generators that they need, where community members can share their tasks and generators so that others can install them. Perhaps we could use versioning of tasks/generators that would help with automatically updating the CLI (as discussed in https://github.com/aurelia/cli/issues/231)

3reactions
plwalterscommented, May 17, 2018

Currently when starting a new project and using the aurelia-cli you are giving up configurability for convenience. It makes deciding to use the cli a bit of a gamble because once a project starts to grow larger or the team decides to tweak tooling it can be very tough to maintain a large cli project.

As mentioned before, at this point there should be a command in the cli which ejects and moves all of the tasks out of the cli and gives complete control back to the project, cli-free.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aurelia CLI - documentation - GitHub
The CLI utilises a project file format in the form of aurelia.json which contains all of the dependencies that exist inside of your...
Read more >
How to import packages within my Aurelia application
So this is adding the css file into the bootstrap package. Now, in my typescript file, I'm calling import 'jquery' and import 'bootstrap'...
Read more >
Migrate from aurelia-cli - dumber
Fixed compatibility with various npm packages which is impossible for aurelia-cli due to architecture flaw. Greatly simplified configuration. Aurelia 2 usesĀ ...
Read more >
Blog | Aurelia
This month we've had big releases for the Aurelia-CLI, the Aurelia Dialog plugin and ... default main file "index.js" when "main" is missing...
Read more >
Files Ā· 5dcef1e1377adfbfe10df628897ef420a93f20bc Ā· Christian ...
You can run the tests using aurelia cli au test or in order to be able to debug ... by copying /tasks/merge-language-files.js to...
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