sveltejs/svelte-cli

Name: svelte-cli

Owner: Svelte

Description: Command line interface for Svelte

Created: 2016-11-27 01:11:50.0

Updated: 2018-05-22 01:14:30.0

Pushed: 2018-04-21 17:01:47.0

Homepage: null

Size: 118

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

svelte-cli

Command line interface for Svelte.

Why you shouldn't use this

svelte-cli is useful if you want to try out Svelte, but it's not recommended for serious production use. It will compile your components to standalone JavaScript files, but won't automatically recompile them when they change, and won't deduplicate code shared between your components.

Instead, we recommend using a bundler such as Rollup (with rollup-plugin-svelte), Webpack (with svelte-loader), or another integration listed here. See here for an easy get-started guide.

Installation
install -g svelte-cli
Usage
t help
te --help

nerate a JavaScript module from MyComponent.html
te compile MyComponent.html > MyComponent.js
te compile -i MyComponent.html -o MyComponent.js

nerate a UMD module from MyComponent.html, inferring
me from the filename ('MyComponent')
te compile -f umd MyComponent.html > MyComponent.js

nerate a UMD module, specifying the name
te compile -f umd -n CustomName MyComponent.html > MyComponent.js

mpile all .html files in components/
te compile -i src/components -o build/components
License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.