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.

Downloading template from npm registry

See original GitHub issue

Currently something like vue init webpack will make vue-cli download git repo vuejs-template/webpack, I thought instead we can make it download from npm registry if the template name does not contain /. For example vue init webpack would install package vue-template-webpack, thus everyone can type less to generate from their own template 🤗 just like sao

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
LinusBorgcommented, Mar 6, 2019

Yeah we don’t intend to change anything about the init feature in the foreeable future as we see it as a legacy feature. We focus on the new plugin-base approach of vue create

0reactions
fcrocecommented, Mar 6, 2019

@LinusBorg it’s more or less the same as we do now:

git clone ...
vue init ./my-template

I was curious if there was a better way.

Something like vue init npm@my-template my-project would be nice and because it’s using NPM we can have a private package manager in .npmrc

registry = http://verdaccio.on.docker:4873/

If it’s overkill I guess git clone or using the node_modules folder will do.

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

templates - npm
System for creating and managing template collections, and rendering templates with any node.js template engine.
Read more >
HOWTO: Inspect, Download and Extract NPM Packages
This post outlines how to inspect the registry information of an NPM package using the npm view command, download an NPM package directly ......
Read more >
Installing the Reference Template - Conga Product Documentation
After cloning a template, the first task is to run the npm install command. For this, you must have access to the npm...
Read more >
npm packages in the Package Registry - GitLab Docs
Learn how to build an npm or yarn package. Watch a video demo of how to publish npm packages to the GitLab Package...
Read more >
Installing private npm modules · Gemfury Dev Center
Install packages via command-line. You can use your Registry URL to install packages individually. First, you need to configure npm authentication to enable ......
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