1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors_sveltejs-svelte-cli

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.md

svelte-cli

Command line interface for Svelte.

DEPRECATION NOTE

As of Svelte version 2.4.0, the CLI is integrated into the svelte package itself, and this package should no longer be used.

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

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

Комментарии ( 0 )

Вы можете оставить комментарий после Вход в систему

Введение

Command line interface for Svelte. Развернуть Свернуть
MIT
Отмена

Обновления

Пока нет обновлений

Участники

все

Недавние действия

Загрузить больше
Больше нет результатов для загрузки
1
https://api.gitlife.ru/oschina-mirror/mirrors_sveltejs-svelte-cli.git
git@api.gitlife.ru:oschina-mirror/mirrors_sveltejs-svelte-cli.git
oschina-mirror
mirrors_sveltejs-svelte-cli
mirrors_sveltejs-svelte-cli
master