robuild 0.1.0 → 0.1.2
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 +31 -5
- package/dist/_chunks/build-DsVOIGdc.mjs +3 -0
- package/dist/_chunks/{build-DbAuaVYJ.mjs → build-ZPgEqYgE.mjs} +562 -510
- package/dist/_chunks/manager-CnmjrU85.mjs +3 -0
- package/dist/_chunks/{plugin-manager-CwMXjVtp.mjs → manager-DyYf90Z5.mjs} +1 -1
- package/dist/_chunks/{package-05zYHSH0.mjs → package-Cq3r5Qfx.mjs} +26 -26
- package/dist/cli.mjs +2 -2
- package/dist/config.d.mts +1 -2
- package/dist/index.d.mts +173 -14
- package/dist/index.mjs +387 -86
- package/package.json +26 -26
- package/dist/_chunks/build-tpynh1ZI.mjs +0 -3
- package/dist/_chunks/plugin-manager-pCQvlo7q.mjs +0 -3
package/README.md
CHANGED
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
[![npm version][npm-version-src]][npm-version-href]
|
|
8
8
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
|
-
[![bundle][bundle-src]][bundle-href]
|
|
10
|
-
[![JSDocs][jsdocs-src]][jsdocs-href]
|
|
11
9
|
[![License][license-src]][license-href]
|
|
10
|
+
[![Coverage][coverage-src]][coverage-href]
|
|
12
11
|
|
|
13
12
|
English | <a href="./README-zh.md">简体中文</a>
|
|
14
13
|
|
|
@@ -93,6 +92,34 @@ Visit our documentation site for detailed guides, API reference, and examples.
|
|
|
93
92
|
- [unbuild](https://github.com/unjs/unbuild): Stable solution based on rollup and [mkdist](https://github.com/unjs/mkdist).
|
|
94
93
|
- [tsdown](https://tsdown.dev/): Alternative bundler based on rolldown.
|
|
95
94
|
|
|
95
|
+
## Test Coverage
|
|
96
|
+
|
|
97
|
+
<!-- coverage-start -->
|
|
98
|
+
| File | Stmts | Branch | Funcs | Lines |
|
|
99
|
+
|------|-------|--------|-------|-------|
|
|
100
|
+
| **All files** | **30.90%** | **64.07%** | **51.02%** | **30.90%** |
|
|
101
|
+
| src/build.ts | 70.93% | 55.56% | 100.00% | 70.93% |
|
|
102
|
+
| src/builders | 58.78% | 57.38% | 41.18% | 58.78% |
|
|
103
|
+
| src/config | 19.62% | 65.00% | 46.67% | 19.62% |
|
|
104
|
+
| src/config.ts | 0.00% | 100.00% | 100.00% | 0.00% |
|
|
105
|
+
| src/core | 63.86% | 90.91% | 50.00% | 63.86% |
|
|
106
|
+
| src/deprecated | 0.00% | 100.00% | 100.00% | 0.00% |
|
|
107
|
+
| src/index.ts | 0.00% | 0.00% | 0.00% | 0.00% |
|
|
108
|
+
| src/plugins | 13.62% | 68.75% | 47.37% | 13.62% |
|
|
109
|
+
| src/plugins/builtin | 7.65% | 92.31% | 23.33% | 7.65% |
|
|
110
|
+
| src/plugins/extras | 0.00% | 100.00% | 100.00% | 0.00% |
|
|
111
|
+
| src/transforms | 16.94% | 78.95% | 66.67% | 16.94% |
|
|
112
|
+
| src/types.ts | 0.00% | 100.00% | 100.00% | 0.00% |
|
|
113
|
+
| src/utils | 75.87% | 62.50% | 77.27% | 75.87% |
|
|
114
|
+
| src/watch.ts | 4.24% | 0.00% | 0.00% | 4.24% |
|
|
115
|
+
<!-- coverage-end -->
|
|
116
|
+
|
|
117
|
+
Run coverage locally:
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
pnpm test:coverage
|
|
121
|
+
```
|
|
122
|
+
|
|
96
123
|
## License
|
|
97
124
|
|
|
98
125
|
💛 [MIT](./LICENSE) License © [Sunny-117](https://github.com/Sunny-117)
|
|
@@ -102,9 +129,8 @@ Visit our documentation site for detailed guides, API reference, and examples.
|
|
|
102
129
|
[npm-version-href]: https://npmjs.com/package/robuild
|
|
103
130
|
[npm-downloads-src]: https://img.shields.io/npm/dm/robuild?style=flat&colorA=080f12&colorB=1fa669
|
|
104
131
|
[npm-downloads-href]: https://npmjs.com/package/robuild
|
|
105
|
-
[bundle-src]: https://img.shields.io/bundlephobia/minzip/robuild?style=flat&colorA=080f12&colorB=1fa669&label=minzip
|
|
106
132
|
[bundle-href]: https://bundlephobia.com/result?p=robuild
|
|
107
133
|
[license-src]: https://img.shields.io/github/license/Sunny-117/robuild.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
108
134
|
[license-href]: https://github.com/Sunny-117/robuild/blob/main/LICENSE
|
|
109
|
-
[
|
|
110
|
-
[
|
|
135
|
+
[coverage-src]: https://img.shields.io/badge/coverage-30.9%25-orange?style=flat&colorA=080f12
|
|
136
|
+
[coverage-href]: #test-coverage
|