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.

Add more support to yarn create

See original GitHub issue

Yarn supports add “create-*” in global env and update automagically: https://yarnpkg.com/docs/cli/create/ Why don’t create an alias? like yarn create angular-app ng-app
I use a command similar in npm with npx

npx @angular/cli new ng-app --minimal

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
cmckni3commented, Mar 27, 2019

This would be very nice. The package create-angular-app already exists on npm.

The create command supports namespaces as well though.

It could be something like:

yarn create @angular/cli my-app

This would require the cli to be published as @angular/create-cli as well.

Another option I like is yarn create @angular/app my-app which would require a @angular/create-app package to be published.

1reaction
dgp1130commented, Jul 9, 2020

We were able to take ownership of the create-angular package, which is how yarn create angular would actually be implemented. Currently this package is empty, so we’ll need to push a new version that just runs ng new. Hopefully we can do a simple one-off publish, but we might need to include this in our usual release cycle (sadly npx is not installed by default with yarn, so we can’t just npx @angular/cli@latest new).

Read more comments on GitHub >

github_iconTop Results From Across the Web

yarn create
Creates new projects from any create-* starter kits. yarn create <starter-kit-package> [<args>]. This command is a shorthand that helps you do two things...
Read more >
How To Install and Use the Yarn Package Manager for Node.js
First you install the yarn command globally, then you use the global yarn command to install a specific local version of Yarn into...
Read more >
Create a custom YARN service | CDP Public Cloud
On the Services page of the YARN Web User Interface, click New Service. · Click the Custom tab. · In the User name...
Read more >
Running Spark on YARN - Spark 3.3.1 Documentation
Support for running on YARN (Hadoop NextGen) was added to Spark in version 0.6.0, and improved ... See the configuration page for more...
Read more >
How to Install Yarn on Ubuntu {With Screenshots} - phoenixNAP
Create a New Yarn Project · Add a Dependency to Your Project · Upgrade a Yarn Dependency · Remove a Yarn Dependency ·...
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