1.0.6 • Published 2 years ago
@quarkd/cli v1.0.6
Quark CLI
With this CLI, you can use this to create a cross-framework/tech stack component, or perhaps you can package it as an npm package for distribution for others to use.
English | 简体中文
Installation:
NOTE: Vite requires Node.js version 14.18+, 16+.
npm i -g @quarkd/cli
Create project
With NPX:
npx create-quark-element
how to use
import { QuarkElement, property, customElement } from "quarkc";
@customElement({ tag: "quark-count" })
export default class MyElement extends QuarkElement {
@property({
type: Number
})
count = 0;
add = () => {
this.count += 1;
}
render() {
return (
<button onClick={this.add}>count is: { this.count }</button>
);
}
}
Use it as a normal html element in various frameworks (React/Vue/Angular/JQ):
<my-component></my-component>
Documentation
For full documentation, visit quark.hellobike.com
1.0.6
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago