Skip to content

Commit 330a33e

Browse files
committed
docs: add svg size
1 parent 2bdf9b8 commit 330a33e

9 files changed

Lines changed: 203 additions & 100 deletions

File tree

.export-size-svg.mjs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import { defineConfig } from "export-size-svg";
2+
3+
export default defineConfig({
4+
title: "@embra/reactivity",
5+
out: "./docs/assets",
6+
svg: {
7+
theme: {
8+
titleColor: "#fb4c1bf7",
9+
progressColor: "#fb4a1b",
10+
progressTrackColor: "#fb4c1b37",
11+
},
12+
},
13+
exports: [
14+
{
15+
title: "*",
16+
code: "export * from './src/index.ts'",
17+
},
18+
{
19+
title: "{ readable, writable } (core)",
20+
code: "export { readable, writable } from './src/index.ts'",
21+
},
22+
{
23+
title: "{ watch }",
24+
code: "export { watch } from './src/watch.ts'",
25+
externals: ["./batch", "./utils"],
26+
},
27+
{
28+
title: "{ compute }",
29+
code: "export { compute } from './src/compute.ts'",
30+
externals: ["./readable", "./utils"],
31+
},
32+
{
33+
title: "{ combine }",
34+
code: "export { combine } from './src/combine.ts'",
35+
externals: ["./compute"],
36+
},
37+
{
38+
title: "{ derive }",
39+
code: "export { derive } from './src/derive.ts'",
40+
externals: ["./compute"],
41+
},
42+
{
43+
title: "{ reactiveMap }",
44+
code: "export { reactiveMap } from './src/collections/reactiveMap.ts'",
45+
externals: ["../batch", "../readable", "../utils"],
46+
},
47+
{
48+
title: "{ reactiveSet }",
49+
code: "export { reactiveSet } from './src/collections/reactiveSet.ts'",
50+
externals: ["../batch", "../readable", "../utils"],
51+
},
52+
],
53+
});

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
[![Build Status](https://github.com/embrajs/reactivity/actions/workflows/build.yml/badge.svg)](https://github.com/embrajs/reactivity/actions/workflows/build.yml)
99
[![npm-version](https://img.shields.io/npm/v/embra/reactivity.svg)](https://www.npmjs.com/package/embra/reactivity)
1010
[![Coverage Status](https://img.shields.io/coverallsCoverage/github/embrajs/reactivity)](https://coveralls.io/github/embrajs/reactivity)
11-
[![minified-size](https://img.shields.io/bundlephobia/minzip/embra/reactivity)](https://bundlephobia.com/package/embra/reactivity)
1211

1312
Chainable, hook-flavored signals.
1413

@@ -17,3 +16,5 @@ Chainable, hook-flavored signals.
1716
```bash
1817
npm add @embra/reactivity
1918
```
19+
20+
![export size](https://embrajs.github.io/reactivity/assets/export-size.svg)

0 commit comments

Comments
 (0)