skatejs

WebJar for skatejs

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

skatejs
Последняя версия

Последняя версия

0.13.17
Дата

Дата

Тип

Тип

jar
Описание

Описание

skatejs
WebJar for skatejs
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/skatejs/skatejs

Скачать skatejs

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/skatejs/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>skatejs</artifactId>
    <version>0.13.17</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/skatejs/
implementation 'org.webjars.npm:skatejs:0.13.17'
// https://jarcasting.com/artifacts/org.webjars.npm/skatejs/
implementation ("org.webjars.npm:skatejs:0.13.17")
'org.webjars.npm:skatejs:jar:0.13.17'
<dependency org="org.webjars.npm" name="skatejs" rev="0.13.17">
  <artifact name="skatejs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='skatejs', version='0.13.17')
)
libraryDependencies += "org.webjars.npm" % "skatejs" % "0.13.17"
[org.webjars.npm/skatejs "0.13.17"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Skate

Build Status Downloads per month Join the chat at https://gitter.im/skatejs/skatejs Follow @skate_js on Twitter

Skate is a functional reactive abstraction over the web component standards as a set of packages that enables you to write small, fast and scalable web components using popular view libraries such as React, Preact and LitHTML.

  • 🌏 Cross-framework compatible components.
  • ⚛️ Render components using your favourite view library, or none at all.
  • 👑 Guided conventions for best-practices when reflecting between, and reacting to attributes, properties and events.
  • 🌟 Full TypeScript support.
  • 📚 Docs https://skatejs.netlify.com.

Getting started

The simplest way to get up and running is to start with a pre-configured element such as @skatejs/element-lit-html.

npm i @skatejs/element-lit-html

Simple example

import Element, { html } from '@skatejs/element-lit-html';

export default class extends Element {
  static get props() {
    return {
      name: String
    };
  }
  render() {
    return html`
      Hello, ${this.name}!
    `;
  }
}

Other examples

  1. Todo list

Cli

There's a CLI to get you up and running: https://skatejs.netlify.com/packages/cli.

$ npm i -g @skatejs/cli
$ skatejs

Polyfills

Skate builds upon the Custom Elements and the Shadow DOM standards. It is capable of operating without the Shadow DOM — it just means you don't get any encapsulation of your component's HTML or styles. It also means that it's up to you to provide a way to project content (i.e. <slot>). It's highly recommended you use Shadow DOM whenever possible.

Though most modern browsers support these standards, some still need polyfills to implement missing or inconsistent behaviours for them.

For more information on the polyfills, see the web components polyfill documentation, emphasis on the caveats.

Browser Support

Skate supports all evergreens and IE11, and is subject to the browser support matrix of the polyfills.

Backers

Support us with a monthly donation and help us continue our activities. Become a backer!

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. Become a sponsor!

org.webjars.npm

Версии библиотеки

Версия
0.13.17