Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazzkiq/svelte-brunch
Compile Svelte components inside Brunch projects
https://github.com/kazzkiq/svelte-brunch
brunch brunch-plugin svelte
Last synced: 26 days ago
JSON representation
Compile Svelte components inside Brunch projects
- Host: GitHub
- URL: https://github.com/kazzkiq/svelte-brunch
- Owner: kazzkiq
- License: mit
- Created: 2017-05-12T01:53:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T21:43:52.000Z (over 7 years ago)
- Last Synced: 2024-09-17T03:15:47.755Z (about 2 months ago)
- Topics: brunch, brunch-plugin, svelte
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm version](https://badge.fury.io/js/svelte-brunch.svg)](https://badge.fury.io/js/svelte-brunch)
# Installation
1. Inside your project, simply run: `npm install --save-dev svelte-brunch`
2. Thats it.This plugin listen for any `.svelte` file in your project and compiles it with your JavaScript.
Here is an example of how to import a component to your page (using ES6):
```js
// initialize.js
// importing mycomponent.svelte file
import MyComponent from './path/to/mycomponent' // notice how we omit the '.svelte' extensionconst mycomp = new MyComponent({
// Svelte opts, etc...
});
```