Home
Softono
b

beforesemicolon

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by beforesemicolon

cwco
Open Source

cwco

# CWCO (DEPRECATED) # πŸ›‘ STOP: Project Deprecated πŸ›‘ > ⚠️ **DEPRECATED:** This project is no longer maintained. > > ⚠️ Please use **[@beforesemicolon/web-component](https://markup.beforesemicolon.com/documentation/capabilities/web-component)** instead. # ---------------------------------- ![CWCO Banner](https://github.com/beforesemicolon/cwco/blob/master/docs/Git-Banner.jpg) [![website](https://img.shields.io/badge/website-cwco.beforesemicolon.com-blue)](https://cwco.beforesemicolon.com/) [![npm](https://img.shields.io/npm/v/cwco)](https://www.npmjs.com/package/cwco) [![license](https://img.shields.io/github/license/beforesemicolon/cwco)](https://github.com/beforesemicolon/cwco/blob/master/LICENSE) [![sponsor](https://img.shields.io/github/sponsors/beforesemicolon)](https://github.com/sponsors/beforesemicolon) ![node version](https://img.shields.io/badge/min%20node%20version-14.*-brightgreen) ![Build](https://github.com/beforesemicolon/cwco/actions/workflows/codeql-analysis.yml/badge.svg) ![Build](https://github.com/beforesemicolon/cwco/actions/workflows/node.js.yml/badge.svg) **Contextfull Web Component Library** created to improve native Web Component APIs user experience with: - βœ… No Build Required (Plug and Play)! - βœ… Works with other library and frameworks like React, Angular, Vue, Svelte, etc; - βœ… Truly Reactive Template - βœ… Powerful built-in Directives(including ability to create your own) - βœ… Built-in Context Data Handling - βœ… Event and Data Binding in HTML and CSS - βœ… Build view directly in HTML file - βœ… Simple API - βœ… Fast rendering - βœ… Lightweight package ### Documentation ([cwco.beforesemicolon.com](https://cwco.beforesemicolon.com/)) - [Getting Started](https://cwco.beforesemicolon.com/documentation/getting-started) - [WebComponent](https://cwco.beforesemicolon.com/documentation/web-component) - [ContextProviderComponent](https://cwco.beforesemicolon.com/documentation/context-provider-component) - [Configurations](https://cwco.beforesemicolon.com/documentation/configurations) - [Template](https://cwco.beforesemicolon.com/documentation/template) - [Styling](https://cwco.beforesemicolon.com/documentation/stylesheet) - [Events](https://cwco.beforesemicolon.com/documentation/events) - [Attributes](https://cwco.beforesemicolon.com/documentation/observed-attributes) - [Properties](https://cwco.beforesemicolon.com/documentation/properties) - [Context](https://cwco.beforesemicolon.com/documentation/context) - [Directives](https://cwco.beforesemicolon.com/documentation/if-directive) - [Custom Directives](https://cwco.beforesemicolon.com/documentation/custom-directive) - [LiveCycles](https://cwco.beforesemicolon.com/documentation/on-mount) - [Error Handling](https://cwco.beforesemicolon.com/documentation/on-error) ### Install This module can be used directly in the browser as well in Node environment. You can even use it along with other web libraries and frameworks like `React` and `Angular`. #### Browser ```html <!-- use the latest version --> <script src="https://unpkg.com/cwco/dist/cwco.min.js"></script> <!-- use a specific version --> <script src="https://unpkg.com/[email protected]/dist/cwco.min.js"></script> <!-- link your app script after --> <script src="app.js"></script> ``` #### NodeJs ``` npm install cwco ``` You can then import the constructors class according to what you are building. ```js const { WebComponent, ContextProviderComponent, Directive } = require('cwco'); ``` ### Code Editors & IDEs CWCO is just HTML and if you want syntax highlighting for VSCode you can use the inline-html #### VSCode For syntax highlighting of HTML and CSS in javascript use [inline-html](https://github.com/pushqrdx/vscode-inline-html) or [lit-html](https://marketplace.visualstudio.com/items?itemName=bierner.lit-html) plugins. You can import `html` from `cwco` which is just a help for VSCode which does nothing special to the HTML string you use it with. ```js import {html, css, WebComponent} from "./cwco"; class MyButton extends WebComponent { get template() { return html`<button><slot></slot></button>` } get stylesheet() { return css`<style>button {color: #222}</style>` // or // return css`button {color: #222}` } } ``` #### Jet Brain IDEs These IDEs have built-in HTML-in-Javascript syntax highlighting which can be useful when developing CWCO web components. ### Want to Help? [Learn How](https://github.com/beforesemicolon/cwco/blob/master/CONTRIBUTING.md)

CSS Frameworks & UI Kits Web Components & Widgets
58 Github Stars