@style-this/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/compiler.cjs +492 -0
- package/dist/compiler.d.cts +31 -0
- package/dist/compiler.d.cts.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# style-this - Core
|
|
2
|
+
|
|
3
|
+
Core functionality for the style-this library with WebAssembly bindings.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @style-this/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { init, css, initialize } from "@style-this/core";
|
|
15
|
+
|
|
16
|
+
// Initialize the WebAssembly module
|
|
17
|
+
await init();
|
|
18
|
+
|
|
19
|
+
// Use the CSS functionality
|
|
20
|
+
const styles = css`
|
|
21
|
+
color: red;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
`;
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Development
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Build the native WebAssembly module
|
|
30
|
+
pnpm build:native
|
|
31
|
+
|
|
32
|
+
# Build the JavaScript package
|
|
33
|
+
pnpm build:js
|
|
34
|
+
|
|
35
|
+
# Build everything
|
|
36
|
+
pnpm build
|
|
37
|
+
|
|
38
|
+
# Watch mode for development
|
|
39
|
+
pnpm dev
|
|
40
|
+
```
|