@theholocron/holocron-config 8.4.7 → 8.5.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/dist/configs/monorepo.d.ts +1 -1
- package/dist/configs/nextjs.d.ts +1 -1
- package/dist/configs/nextjs.js +1 -1
- package/dist/configs/node-docs.d.ts +1 -1
- package/dist/configs/node-docs.js +1 -1
- package/dist/configs/node.d.ts +1 -1
- package/dist/configs/node.js +2 -1
- package/dist/configs/react.d.ts +1 -1
- package/dist/configs/react.js +2 -1
- package/dist/index.d.ts +11 -10
- package/dist/index.js +4 -3
- package/dist/{nextjs-CorAF9jM.d.ts → nextjs-DF6ifcAm.d.ts} +1 -1
- package/dist/{nextjs-DAzq_mG7.js → nextjs-Q-9hbfm1.js} +2 -1
- package/dist/node-BLjkrd5k.js +63 -0
- package/dist/{node-docs-DI6yiUlZ.js → node-docs-CcZ9-AX_.js} +2 -1
- package/dist/{react-C7k74R65.d.ts → react-Da48S4-Q.d.ts} +1 -1
- package/package.json +6 -4
- package/dist/assets/keyring.linux-x64-gnu-DGLgDGdk.node +0 -0
- package/dist/index-BZQJvxGu.d.ts +0 -497
- package/dist/node-C6uBnA36.js +0 -919
package/dist/configs/nextjs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NextjsOptions, t as nextjs } from "../nextjs-
|
|
1
|
+
import { n as NextjsOptions, t as nextjs } from "../nextjs-DF6ifcAm.js";
|
|
2
2
|
export { type NextjsOptions, nextjs };
|
package/dist/configs/nextjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as nextjs } from "../nextjs-
|
|
1
|
+
import { t as nextjs } from "../nextjs-Q-9hbfm1.js";
|
|
2
2
|
export { nextjs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nodeDocsSite, t as nodeDocs } from "../node-docs-
|
|
1
|
+
import { n as nodeDocsSite, t as nodeDocs } from "../node-docs-CcZ9-AX_.js";
|
|
2
2
|
export { nodeDocs, nodeDocsSite };
|
package/dist/configs/node.d.ts
CHANGED
package/dist/configs/node.js
CHANGED
package/dist/configs/react.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ReactOptions, t as react } from "../react-
|
|
1
|
+
import { n as ReactOptions, t as react } from "../react-Da48S4-Q.js";
|
|
2
2
|
export { type ReactOptions, react };
|
package/dist/configs/react.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as node } from "../node-BLjkrd5k.js";
|
|
2
2
|
import { t as typecheck } from "../typecheck-CG1ePvP6.js";
|
|
3
3
|
import { t as react$1 } from "../react-4Ap2ev6C.js";
|
|
4
|
+
import { compose } from "@theholocron/cli";
|
|
4
5
|
//#region configs/react.ts
|
|
5
6
|
/**
|
|
6
7
|
* Preset for single-package React/Vite application repos. Includes Storybook,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { n as ComposedPreset, r as compose, t as Capability } from "./index-BZQJvxGu.js";
|
|
2
1
|
import { monorepo } from "./configs/monorepo.js";
|
|
3
|
-
import { n as NextjsOptions, r as nextjs$1, t as nextjs } from "./nextjs-
|
|
2
|
+
import { n as NextjsOptions, r as nextjs$1, t as nextjs } from "./nextjs-DF6ifcAm.js";
|
|
4
3
|
import { NodeDocsPreset, NodeDocsSitePreset, nodeDocs, nodeDocsSite } from "./configs/node-docs.js";
|
|
5
|
-
import {
|
|
4
|
+
import { HolocronPreset as ComposedPreset$1 } from "./configs/node.js";
|
|
5
|
+
import { n as ReactOptions, r as react$1, t as react } from "./react-Da48S4-Q.js";
|
|
6
|
+
import { Capability, Capability as Capability$1, ComposedPreset, compose } from "@theholocron/cli";
|
|
6
7
|
//#region constants.d.ts
|
|
7
8
|
/** Cloudflare account ID for the theholocron org. */
|
|
8
9
|
declare const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
|
|
@@ -18,7 +19,7 @@ declare const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
|
|
|
18
19
|
* `lint` and `test` are marked `required` — `holocron setup` derives their
|
|
19
20
|
* `… / Conclusion` branch-protection check contexts from the manifest.
|
|
20
21
|
*/
|
|
21
|
-
declare function node(): Capability;
|
|
22
|
+
declare function node(): Capability$1;
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region capabilities/typecheck.d.ts
|
|
24
25
|
/**
|
|
@@ -26,7 +27,7 @@ declare function node(): Capability;
|
|
|
26
27
|
* derives the `Typecheck / Conclusion` branch-protection check from the manifest.
|
|
27
28
|
* Requires: node
|
|
28
29
|
*/
|
|
29
|
-
declare function typecheck(): Capability;
|
|
30
|
+
declare function typecheck(): Capability$1;
|
|
30
31
|
//#endregion
|
|
31
32
|
//#region capabilities/docs.d.ts
|
|
32
33
|
/**
|
|
@@ -35,7 +36,7 @@ declare function typecheck(): Capability;
|
|
|
35
36
|
* `extraRequiredChecks` (enabled for all docs repos).
|
|
36
37
|
* Requires: node
|
|
37
38
|
*/
|
|
38
|
-
declare function docs(): Capability;
|
|
39
|
+
declare function docs(): Capability$1;
|
|
39
40
|
//#endregion
|
|
40
41
|
//#region capabilities/audit.d.ts
|
|
41
42
|
interface AuditOptions {
|
|
@@ -52,7 +53,7 @@ interface AuditOptions {
|
|
|
52
53
|
* from the manifest.
|
|
53
54
|
* Requires: node
|
|
54
55
|
*/
|
|
55
|
-
declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions): Capability;
|
|
56
|
+
declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions): Capability$1;
|
|
56
57
|
//#endregion
|
|
57
58
|
//#region capabilities/monorepo.d.ts
|
|
58
59
|
/**
|
|
@@ -63,7 +64,7 @@ declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions):
|
|
|
63
64
|
* @example
|
|
64
65
|
* const preset = compose(node(), typecheck(), nextjs(), monorepo());
|
|
65
66
|
*/
|
|
66
|
-
declare function monorepo$1(): Capability;
|
|
67
|
+
declare function monorepo$1(): Capability$1;
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region capabilities/wiki.d.ts
|
|
69
70
|
/**
|
|
@@ -77,6 +78,6 @@ declare function monorepo$1(): Capability;
|
|
|
77
78
|
* const preset = compose(nodeDocs(), wiki());
|
|
78
79
|
* ```
|
|
79
80
|
*/
|
|
80
|
-
declare function wiki(): Capability;
|
|
81
|
+
declare function wiki(): Capability$1;
|
|
81
82
|
//#endregion
|
|
82
|
-
export { type AuditOptions, CLOUDFLARE_ACCOUNT_ID, type Capability, type ComposedPreset, type ComposedPreset as HolocronPreset, type NextjsOptions, type NodeDocsPreset, type NodeDocsSitePreset, type ReactOptions, audit, compose, docs, monorepo, monorepo$1 as monorepoCapability, nextjs, nextjs$1 as nextjsBundle, node, nodeDocs, nodeDocsSite, react, react$1 as reactCapability, typecheck, wiki as wikiCapability };
|
|
83
|
+
export { type AuditOptions, CLOUDFLARE_ACCOUNT_ID, type Capability, type ComposedPreset, type ComposedPreset$1 as HolocronPreset, type NextjsOptions, type NodeDocsPreset, type NodeDocsSitePreset, type ReactOptions, audit, compose, docs, monorepo, monorepo$1 as monorepoCapability, nextjs, nextjs$1 as nextjsBundle, node, nodeDocs, nodeDocsSite, react, react$1 as reactCapability, typecheck, wiki as wikiCapability };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
1
|
+
import { i as CLOUDFLARE_ACCOUNT_ID, n as nodeDocsSite, r as docs, t as nodeDocs } from "./node-docs-CcZ9-AX_.js";
|
|
2
|
+
import { t as node } from "./node-BLjkrd5k.js";
|
|
3
3
|
import { t as typecheck } from "./typecheck-CG1ePvP6.js";
|
|
4
4
|
import { t as react$1 } from "./react-4Ap2ev6C.js";
|
|
5
|
-
import { n as nextjs$1, t as nextjs } from "./nextjs-
|
|
5
|
+
import { n as nextjs$1, t as nextjs } from "./nextjs-Q-9hbfm1.js";
|
|
6
6
|
import { react } from "./configs/react.js";
|
|
7
7
|
import { monorepo } from "./configs/monorepo.js";
|
|
8
|
+
import { compose } from "@theholocron/cli";
|
|
8
9
|
//#region capabilities/audit.ts
|
|
9
10
|
/**
|
|
10
11
|
* Adds BundleWatch + optional Knip and Lighthouse auditing. Marked `required` —
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Capability, ComposedPreset } from "@theholocron/cli";
|
|
2
2
|
//#region capabilities/nextjs.d.ts
|
|
3
3
|
interface NextjsOptions {
|
|
4
4
|
/** Extra `with:` inputs merged into the `test` workflow entry. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as node } from "./node-BLjkrd5k.js";
|
|
2
2
|
import { t as typecheck } from "./typecheck-CG1ePvP6.js";
|
|
3
3
|
import { t as react } from "./react-4Ap2ev6C.js";
|
|
4
|
+
import { compose } from "@theholocron/cli";
|
|
4
5
|
//#region capabilities/nextjs.ts
|
|
5
6
|
/**
|
|
6
7
|
* Bundle preset for Next.js application repos. Returns a Capability[] that
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region capabilities/node.ts
|
|
2
|
+
/** The org-standard linter set — drives both CI super-linter and `holocron run lint`. */
|
|
3
|
+
const ORG_LINTERS = [
|
|
4
|
+
"eslint",
|
|
5
|
+
"prettier",
|
|
6
|
+
"yamllint",
|
|
7
|
+
"actionlint",
|
|
8
|
+
"gitleaks",
|
|
9
|
+
"editorconfig",
|
|
10
|
+
"commitlint",
|
|
11
|
+
"git-merge-conflict-markers"
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* Base capability for all theholocron Node.js repositories.
|
|
15
|
+
* Contributes: GitHub source/CI/issues providers, strict branch protection,
|
|
16
|
+
* and the standard workflow set (lint, test, security, review, stale, greetings,
|
|
17
|
+
* dependencies, bookkeeping). Does NOT include typecheck — add that separately.
|
|
18
|
+
* The `lint` task carries the org linter list explicitly so every repo runs the
|
|
19
|
+
* same set (a repo can override with its own `{ name: "lint", linters: [...] }`).
|
|
20
|
+
* `lint` and `test` are marked `required` — `holocron setup` derives their
|
|
21
|
+
* `… / Conclusion` branch-protection check contexts from the manifest.
|
|
22
|
+
*/
|
|
23
|
+
function node() {
|
|
24
|
+
return {
|
|
25
|
+
id: "node",
|
|
26
|
+
providers: {
|
|
27
|
+
source: "github",
|
|
28
|
+
ci: "github",
|
|
29
|
+
issues: ["github", { labels: {
|
|
30
|
+
inProgress: "status:in-progress",
|
|
31
|
+
inReview: "status:in-review"
|
|
32
|
+
} }]
|
|
33
|
+
},
|
|
34
|
+
repo: {
|
|
35
|
+
protection: "strict",
|
|
36
|
+
properties: {
|
|
37
|
+
lifecycle: "active",
|
|
38
|
+
open_source: true,
|
|
39
|
+
runtime_environment: "node",
|
|
40
|
+
uses_external_packages: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
tasks: [
|
|
44
|
+
{
|
|
45
|
+
name: "lint",
|
|
46
|
+
required: true,
|
|
47
|
+
linters: ORG_LINTERS
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "test",
|
|
51
|
+
required: true
|
|
52
|
+
},
|
|
53
|
+
"security",
|
|
54
|
+
"review",
|
|
55
|
+
"stale",
|
|
56
|
+
"greetings",
|
|
57
|
+
"dependencies",
|
|
58
|
+
"bookkeeping"
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { node as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as node } from "./node-BLjkrd5k.js";
|
|
2
2
|
import { t as typecheck } from "./typecheck-CG1ePvP6.js";
|
|
3
|
+
import { compose } from "@theholocron/cli";
|
|
3
4
|
//#region constants.ts
|
|
4
5
|
/** Cloudflare account ID for the theholocron org. */
|
|
5
6
|
const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Capability, ComposedPreset } from "@theholocron/cli";
|
|
2
2
|
//#region capabilities/react.d.ts
|
|
3
3
|
interface ReactOptions {
|
|
4
4
|
/** Extra `with:` inputs merged into the `test` workflow entry (e.g. run-chromatic). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Shareable holocron configuration presets for theholocron repositories.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holocron",
|
|
@@ -53,14 +53,16 @@
|
|
|
53
53
|
"files": [
|
|
54
54
|
"dist/"
|
|
55
55
|
],
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@theholocron/cli": "5.0.0-alpha.3"
|
|
58
|
+
},
|
|
56
59
|
"devDependencies": {
|
|
57
|
-
"@theholocron/cli": "5.0.0-alpha.3",
|
|
58
60
|
"@vitest/coverage-v8": "^4.1.10",
|
|
59
61
|
"tsdown": "^0.22.14",
|
|
60
62
|
"typescript": "^5.9.3",
|
|
61
63
|
"vitest": "^4.1.10",
|
|
62
|
-
"@theholocron/tsconfig": "8.
|
|
63
|
-
"@theholocron/vitest-config": "8.
|
|
64
|
+
"@theholocron/tsconfig": "8.5.0",
|
|
65
|
+
"@theholocron/vitest-config": "8.5.0"
|
|
64
66
|
},
|
|
65
67
|
"engines": {
|
|
66
68
|
"node": ">=22.0.0"
|
|
Binary file
|