@code-pushup/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 +38 -0
- package/index.js +1757 -0
- package/package.json +13 -0
- package/src/index.d.ts +7 -0
- package/src/lib/collect-and-persist.d.ts +4 -0
- package/src/lib/implementation/collect.d.ts +8 -0
- package/src/lib/implementation/execute-plugin.d.ts +54 -0
- package/src/lib/implementation/json-to-gql.d.ts +60 -0
- package/src/lib/implementation/persist.d.ts +10 -0
- package/src/lib/implementation/read-code-pushup-config.d.ts +225 -0
- package/src/lib/implementation/runner.d.ts +8 -0
- package/src/lib/types.d.ts +4 -0
- package/src/lib/upload.d.ts +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @code-pushup/core
|
|
2
|
+
|
|
3
|
+
🔎🔬 **Quality metrics for your software project.** 📉🔍
|
|
4
|
+
|
|
5
|
+
1. ⚙️ **Configure what you want to track using your favourite tools.**
|
|
6
|
+
2. 🤖 **Integrate it in your CI.**
|
|
7
|
+
3. 🌈 **Visualize reports in a beautiful dashboard.**
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
This package contains the **core business logic** for the Code PushUp CLI.
|
|
12
|
+
|
|
13
|
+
For most use cases, you'll probably want to use the [@code-pushup/cli](../cli/README.md) package instead.
|
|
14
|
+
The core package is useful if you prefer programmatic usage (avoids going through the command line).
|
|
15
|
+
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install --save-dev @code-pushup/core
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
yarn add --dev @code-pushup/core
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add --save-dev @code-pushup/core
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { collect } from '@code-pushup/core';
|
|
34
|
+
|
|
35
|
+
const report = await collect({
|
|
36
|
+
// ...
|
|
37
|
+
});
|
|
38
|
+
```
|