# @design.estate/dees-wcctools wcc tools for creating element catalogues ## Install To install `@design.estate/dees-wcctools`, you can use npm: ```bash npm install @design.estate/dees-wcctools --save ``` ## Usage The `@design.estate/dees-wcctools` package provides a set of tools for creating element catalogues using Web Components. It leverages LitElement for creating custom elements and provides a structured way to showcase and test these elements in various environments and themes. ### Setting Up First, ensure that your project is set up to use TypeScript and ESM syntax. This guide assumes you have a basic understanding of TypeScript and modern JavaScript development practices. Start by importing the necessary tools from `@design.estate/dees-wcctools` in your main TypeScript file. ```typescript import { setupWccTools } from '@design.estate/dees-wcctools'; ``` ### Defining Custom Elements Define your custom elements using LitElement. Here's a simple example of an element: ```typescript import { LitElement, html, customElement } from 'lit'; @customElement('my-element') class MyElement extends LitElement { render() { return html`
Hello, world!
`; } } ``` ### Bootstrapping the WCCTools Dashboard To showcase your elements, `@design.estate/dees-wcctools` provides a handy way to bootstrap a dashboard where your elements can be registered and displayed. Create a bootstrap function in your main file or a separate module: ```typescript async function bootstrapWCCTools() { // Define your elements here const elements = { 'my-element': MyElement, // Assuming MyElement is imported }; // Optionally, define pages as functions returning Lit HTML Templates const pages = { home: () => html`Hello, ${this.name}!
`; } } ``` ### Conclusion `@design.estate/dees-wcctools` provides a powerful, flexible platform for developing, showcasing, and testing web components. By leveraging modern development practices like TypeScript and LitElement, you can build a robust catalogue of reusable web components ready for any project. ## License and Legal Information This repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. **Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file. ### Trademarks This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH. ### Company Information Task Venture Capital GmbH Registered at District court Bremen HRB 35230 HB, Germany For any legal inquiries or if you require further information, please contact us via email at hello@task.vc. By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.