svelte-add-test

0.0.1-beta-11 • Public • Published

Svelte Adders

What is this?

This is a community project of commands to add particular functionality to Svelte projects.

They are all composable, meaning that it should always be possible to run one after running any other command without something breaking (ideally). This should put an end to the boilerplate problem: too much or too little is included.

🧰 SvelteKit

SvelteKit is an alpha project now, but work is starting now so that there are good integrations for when it enters beta.

💡 Example

To migrate from sapper-firebase-typescript-graphql-tailwindcss-actions-template to SvelteKit, these commands can be run to recreate all the functionality:

# Use the official SvelteKit template
npm init svelte@next  # Say yes to TypeScript preprocessing and select plain CSS

npx apply svelte-add/postcss
npx apply svelte-add/tailwindcss

npx apply svelte-add/graphql

npx apply svelte-add/firebase-hosting
# Actually, there's a limitation for right now that server functions like a GraphQL server
# aren't supported by svelte-add/firebase-hosting, but that could be solved later!

So, to exclude a feature you weren't using that was still included in the boilerplate anyway, don't run its corresponding command. Suppose you only wanted PostCSS and to host on Firebase, then drop the svelte-add/tailwindcss and svelte-add/graphql commands.

🎁 Contributing

This is a community project! Here are some ways you can help:


Repository preview image generated with GitHub Social Preview

This README was generated with ❤️ by readme-md-generator

Package Sidebar

Install

npm i svelte-add-test

Weekly Downloads

3

Version

0.0.1-beta-11

License

MIT

Unpacked Size

35.8 kB

Total Files

7

Last publish

Collaborators

  • manuel3108