Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

compatibility with npm init #244

Open
alexkrolick opened this issue Mar 15, 2020 · 5 comments
Open

compatibility with npm init #244

alexkrolick opened this issue Mar 15, 2020 · 5 comments

Comments

@alexkrolick
Copy link

As an alternative to degit, npm now supports a template in the init command.

https://docs.npmjs.com/cli/init

Usage could look like this

npm init @sveltejs/sapper --webpack

EDIT: Actually it looks like @eps1lon already made the package that does this. IMO this should be upstreamed and documented as the default. https://github.com/eps1lon/create-sapper-app

@antony
Copy link
Member

antony commented Apr 2, 2020

@alexkrolick Thanks for the pointer - it would be nice to have this, as a convenience wrapper for degit. I can personally see the value in this for a Sapper application, which has a fair amount of initial structure.

However, this is probably the wrong repository for it, so moving to the Sapper repository.

@antony antony transferred this issue from sveltejs/sapper-template Apr 2, 2020
@dmtrshat
Copy link

As an alternative to degit, npm now supports a template in the init command.

https://docs.npmjs.com/cli/init

Usage could look like this

npm init @sveltejs/sapper --webpack

EDIT: Actually it looks like @eps1lon already made the package that does this. IMO this should be upstreamed and documented as the default. https://github.com/eps1lon/create-sapper-app

You can create a Svelte project using npm init svelte. In the process, you can choose what to create (svelte, svelte native or sapper), as well as which bundler to use.
Try it. If it suits you, then I will update the documentation.
2020-04-11 (4)
2020-04-11 (5)

@alexkrolick
Copy link
Author

sounds good to me!

@tejas-hosamani
Copy link

Why is this not featured in the Sapper landing page? This is a pretty nice way to start

@antony
Copy link
Member

antony commented May 26, 2020

@CodingCreate101 Things that are listed on the Sapper landing page are things that we can officially maintain and support. I agree it's a nice way to start, but it's a risk to put things that are not under our control onto an official site, especially for something this core. This isn't to say it will never happen, however.

@benmccann benmccann transferred this issue from sveltejs/sapper Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants