项目作者: manufosela

项目描述 :
Web-component with Lit-Element to show a animated text like in StarWars
高级语言: JavaScript
项目地址: git://github.com/manufosela/animation-starwarstext.git
创建时间: 2021-01-07T18:51:48Z
项目社区:https://github.com/manufosela/animation-starwarstext

开源协议:Other

下载


animation-starwarstext npm-package github codepen-example

This webcomponent follows the open-wc recommendation.

Installation

  1. npm i @manufosela/animation-starwarstext

Usage

  1. <script type="module">
  2. import 'animation-starwarstext/animation-starwarstext.js';
  3. </script>
  4. <animation-starwarstext></animation-starwarstext>

Linting and formatting

To scan the project for linting and formatting errors, run

  1. npm run lint

To automatically fix linting and formatting errors, run

  1. npm run format

Testing with Web Test Runner

To execute a single test run:

  1. npm run test

To run the tests in interactive watch mode run:

  1. npm run test:watch

Demoing with Storybook

To run a local instance of Storybook for your component, run

  1. npm run storybook

To build a production version of Storybook, run

  1. npm run storybook:build

Tooling configs

For most of the tools, the configuration is in the package.json to minimize the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with web-dev-server

  1. npm start

To run a local development server that serves the basic demo located in demo/index.html