Command line interface for Svelte
JavaScript
Latest commit 132110c Dec 17, 2016 @Rich-Harris Rich-Harris -> v1.3.0
Permalink
Failed to load latest commit information.
src sanitize names Dec 17, 2016
.eslintrc initial commit Nov 27, 2016
.gitignore initial commit Nov 27, 2016
CHANGELOG.md -> v1.3.0 Dec 17, 2016
LICENSE add license and readme Nov 27, 2016
README.md Fix installation command. Nov 29, 2016
index.js initial commit Nov 27, 2016
package.json -> v1.3.0 Dec 17, 2016
rollup.config.js initial commit Nov 27, 2016

README.md

svelte-cli

Command line interface for Svelte.

Installation

npm install -g svelte-cli

Usage

# get help
svelte --help

# generate a JavaScript module from MyComponent.html
svelte compile MyComponent.html > MyComponent.js
svelte compile -i MyComponent.html -o MyComponent.js

# generate a UMD module from MyComponent.html, inferring
# name from the filename ('MyComponent')
svelte compile -f umd MyComponent.html > MyComponent.js

# generate a UMD module, specifying the name
svelte compile -f umd -n CustomName MyComponent.html > MyComponent.js

# compile all .html files in components/
svelte compile -i src/components -o build/components

License

MIT