@ykdz/template 0.0.17 → 0.0.18
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/node_modules/@ykdz/template-builtin-source/dist/templates/hono-api/projection.js +5 -5
- package/node_modules/@ykdz/template-builtin-source/dist/templates/ts-lib/projection.js +4 -4
- package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-app/projection.js +5 -5
- package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-hono-app/projection.js +20 -20
- package/node_modules/@ykdz/template-builtin-source/package.json +7 -7
- package/node_modules/@ykdz/template-core/dist/module-graph.d.ts +1 -0
- package/node_modules/@ykdz/template-core/dist/module-graph.js +19 -12
- package/node_modules/@ykdz/template-core/dist/package-addition.js +3 -5
- package/node_modules/@ykdz/template-core/dist/projection-capabilities.js +24 -23
- package/node_modules/@ykdz/template-core/package.json +4 -4
- package/node_modules/@ykdz/template-shared/package.json +4 -4
- package/package.json +6 -6
|
@@ -48,13 +48,13 @@ export function honoApiBlueprint(options = { targetDir: process.cwd() }) {
|
|
|
48
48
|
export function projectHonoApiPackageScripts() {
|
|
49
49
|
return {
|
|
50
50
|
"build:run": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
51
|
-
"format:check:run": "oxfmt --
|
|
51
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
52
52
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
53
|
-
"lint:run": "oxlint --config ../../oxlint.config.ts .",
|
|
54
|
-
"lint:fix:run": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
53
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
54
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
55
55
|
start: "node dist/server.js",
|
|
56
|
-
"test:run": "vitest run",
|
|
57
|
-
"typecheck:run": "tsc -p tsconfig.json --noEmit",
|
|
56
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
57
|
+
"typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
function packageAdditionOperations(packagePath, packageNameValue, nodeVersion) {
|
|
@@ -53,11 +53,11 @@ export function tsLibBlueprint(options = { targetDir: process.cwd() }) {
|
|
|
53
53
|
}
|
|
54
54
|
export function projectTsLibPackageScripts() {
|
|
55
55
|
return {
|
|
56
|
-
"format:check:run": "oxfmt --
|
|
56
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
57
57
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
58
|
-
"lint:run": "oxlint --config ../../oxlint.config.ts .",
|
|
59
|
-
"lint:fix:run": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
60
|
-
"typecheck:run": "tsc -p tsconfig.json --noEmit",
|
|
58
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
59
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
60
|
+
"typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
function packageAdditionOperations(packagePath, packageNameValue, nodeVersion) {
|
|
@@ -49,14 +49,14 @@ export function projectVueAppPackageScripts() {
|
|
|
49
49
|
return {
|
|
50
50
|
"build:run": "vite build",
|
|
51
51
|
dev: "vite",
|
|
52
|
-
"format:check:run": "oxfmt --
|
|
52
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
53
53
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
54
|
-
"lint:run": "oxlint --config ../../oxlint.config.ts .",
|
|
55
|
-
"lint:fix:run": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
54
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
55
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
56
56
|
preview: "vite preview",
|
|
57
|
-
"test:run": "vitest run",
|
|
57
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
58
58
|
"test:e2e:run": "node --experimental-strip-types scripts/run-playwright.ts",
|
|
59
|
-
"typecheck:run": "vue-tsc --build --noEmit",
|
|
59
|
+
"typecheck:run": "vue-tsc --build --noEmit --pretty false",
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function isNodeError(error) {
|
package/node_modules/@ykdz/template-builtin-source/dist/templates/vue-hono-app/projection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { builtInPresetProjectionSourceRoots, loadBuiltInPresetProjectionDeclaration, } from "@ykdz/template-builtin-source";
|
|
3
|
-
import { playwrightBrowserAssetsEnvironmentNeed, renderFixCommand, renderRootCheckCommand, } from "@ykdz/template-core/module-graph";
|
|
3
|
+
import { playwrightBrowserAssetsEnvironmentNeed, renderFixCommand, renderRootCheckCommand, renderTurboRunCommand, } from "@ykdz/template-core/module-graph";
|
|
4
4
|
import { interpretPresetProjectionDeclaration } from "@ykdz/template-core/projection-capabilities";
|
|
5
5
|
import { renderNewProject } from "@ykdz/template-core/renderer";
|
|
6
6
|
import { PackageAdditionSupport, } from "@ykdz/template-shared";
|
|
@@ -92,43 +92,43 @@ export function projectVueHonoRootPackageScripts() {
|
|
|
92
92
|
dev: "turbo run dev --parallel",
|
|
93
93
|
fix: renderFixCommand(planVueHonoRootFixes()),
|
|
94
94
|
"fix:run": 'node -e ""',
|
|
95
|
-
"format:check": "
|
|
96
|
-
"format:check:run": "oxfmt --
|
|
97
|
-
"format:write": "
|
|
95
|
+
"format:check": renderTurboRunCommand(["format:check:run"]),
|
|
96
|
+
"format:check:run": "oxfmt --list-different oxlint.config.ts oxfmt.config.ts",
|
|
97
|
+
"format:write": renderTurboRunCommand(["format:write:run"]),
|
|
98
98
|
"format:write:run": "oxfmt --write oxlint.config.ts oxfmt.config.ts",
|
|
99
|
-
lint: "
|
|
100
|
-
"lint:fix": "
|
|
101
|
-
"lint:fix:run": "oxlint oxlint.config.ts oxfmt.config.ts --fix",
|
|
102
|
-
"lint:run": "oxlint oxlint.config.ts oxfmt.config.ts",
|
|
103
|
-
typecheck: "
|
|
104
|
-
"typecheck:run": "tsc -p tsconfig.config.json --noEmit",
|
|
99
|
+
lint: renderTurboRunCommand(["lint:run"]),
|
|
100
|
+
"lint:fix": renderTurboRunCommand(["lint:fix:run"]),
|
|
101
|
+
"lint:fix:run": "oxlint --format=unix oxlint.config.ts oxfmt.config.ts --fix",
|
|
102
|
+
"lint:run": "oxlint --quiet --format=unix oxlint.config.ts oxfmt.config.ts",
|
|
103
|
+
typecheck: renderTurboRunCommand(["typecheck:run"]),
|
|
104
|
+
"typecheck:run": "tsc -p tsconfig.config.json --noEmit --pretty false",
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
export function projectVueHonoApiPackageScripts() {
|
|
108
108
|
return {
|
|
109
109
|
"build:run": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
110
110
|
dev: "tsx watch src/server.ts",
|
|
111
|
-
"format:check:run": "oxfmt --
|
|
111
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
112
112
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
113
|
-
"lint:run": "oxlint --config ../../oxlint.config.ts .",
|
|
114
|
-
"lint:fix:run": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
113
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
114
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
115
115
|
start: "node dist/server.js",
|
|
116
|
-
"test:run": "vitest run",
|
|
117
|
-
"typecheck:run": "tsc -p tsconfig.json --noEmit",
|
|
116
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
117
|
+
"typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
export function projectVueHonoWebPackageScripts() {
|
|
121
121
|
return {
|
|
122
122
|
"build:run": "vite build",
|
|
123
123
|
dev: "vite",
|
|
124
|
-
"format:check:run": "oxfmt --
|
|
124
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
125
125
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
126
|
-
"lint:run": "oxlint --config ../../oxlint.config.ts .",
|
|
127
|
-
"lint:fix:run": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
126
|
+
"lint:run": "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
127
|
+
"lint:fix:run": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
128
128
|
preview: "vite preview",
|
|
129
|
-
"test:run": "vitest run",
|
|
129
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
130
130
|
"test:e2e:run": "node --experimental-strip-types scripts/run-playwright.ts",
|
|
131
|
-
"typecheck:run": "vue-tsc --build",
|
|
131
|
+
"typecheck:run": "vue-tsc --build --pretty false",
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
export const vueHonoAppPresetProjection = {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
36
36
|
"check:templates": "pnpm run check:templates:shared-oxc && pnpm run check:templates:static-source",
|
|
37
37
|
"check:templates:shared-oxc": "pnpm run check:templates:shared-oxc:format && pnpm run check:templates:shared-oxc:lint && pnpm run check:templates:shared-oxc:typecheck",
|
|
38
|
-
"check:templates:shared-oxc:format": "oxfmt --
|
|
39
|
-
"check:templates:shared-oxc:lint": "oxlint --config templates/shared/oxc/node/oxlint.config.ts templates/shared/oxc",
|
|
40
|
-
"check:templates:shared-oxc:typecheck": "tsc -p templates/shared/oxc/tsconfig.json --noEmit",
|
|
38
|
+
"check:templates:shared-oxc:format": "oxfmt --list-different templates/shared/oxc",
|
|
39
|
+
"check:templates:shared-oxc:lint": "oxlint --quiet --format=unix --config templates/shared/oxc/node/oxlint.config.ts templates/shared/oxc",
|
|
40
|
+
"check:templates:shared-oxc:typecheck": "tsc -p templates/shared/oxc/tsconfig.json --noEmit --pretty false",
|
|
41
41
|
"check:templates:static-source": "rustup run stable rustfmt --check templates/rust-bin/src/main.rs",
|
|
42
|
-
"format:check": "oxfmt --
|
|
42
|
+
"format:check": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
43
43
|
"format:write": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
44
|
-
"lint": "oxlint --config ../../oxlint.config.ts src templates/projection-plans.ts templates/registry.ts templates/*/projection.ts",
|
|
45
|
-
"lint:fix": "oxlint --config ../../oxlint.config.ts src templates/projection-plans.ts templates/registry.ts templates/*/projection.ts --fix",
|
|
46
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
44
|
+
"lint": "oxlint --quiet --format=unix --config ../../oxlint.config.ts src templates/projection-plans.ts templates/registry.ts templates/*/projection.ts",
|
|
45
|
+
"lint:fix": "oxlint --format=unix --config ../../oxlint.config.ts src templates/projection-plans.ts templates/registry.ts templates/*/projection.ts --fix",
|
|
46
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --pretty false"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ykdz/template-core": "workspace:*",
|
|
@@ -37,6 +37,7 @@ export type CheckPlan = {
|
|
|
37
37
|
export type FixPlan = {
|
|
38
38
|
readonly components: FixComponent[];
|
|
39
39
|
};
|
|
40
|
+
export declare function renderTurboRunCommand(taskNames: readonly string[], args?: readonly string[]): string;
|
|
40
41
|
export declare function checkComponentTaskName(component: CheckComponent): string;
|
|
41
42
|
export declare function fixComponentTaskName(component: FixComponent): string;
|
|
42
43
|
export declare function renderCheckLeafCommand(component: CheckComponent): string;
|
|
@@ -4,6 +4,13 @@ function renderTurboPackageFilter(owner) {
|
|
|
4
4
|
}
|
|
5
5
|
return `--filter './${owner.path}'`;
|
|
6
6
|
}
|
|
7
|
+
const turboAgentOutputArgs = [
|
|
8
|
+
"--output-logs=errors-only",
|
|
9
|
+
"--log-order=grouped",
|
|
10
|
+
];
|
|
11
|
+
export function renderTurboRunCommand(taskNames, args = []) {
|
|
12
|
+
return ["turbo run", ...taskNames, ...args, ...turboAgentOutputArgs].join(" ");
|
|
13
|
+
}
|
|
7
14
|
export function checkComponentTaskName(component) {
|
|
8
15
|
return checkComponentTaskNames(component)[0] ?? "check:run";
|
|
9
16
|
}
|
|
@@ -73,17 +80,17 @@ export function renderCheckLeafCommand(component) {
|
|
|
73
80
|
case "e2e-test":
|
|
74
81
|
return "pnpm run test:e2e";
|
|
75
82
|
case "turbo-check":
|
|
76
|
-
return "
|
|
83
|
+
return renderTurboRunCommand(["check"]);
|
|
77
84
|
case "turbo-package-typecheck":
|
|
78
|
-
return
|
|
85
|
+
return renderTurboRunCommand(["typecheck"], [renderTurboPackageFilter(component.owner)]);
|
|
79
86
|
case "turbo-package-build":
|
|
80
|
-
return
|
|
87
|
+
return renderTurboRunCommand(["build"], [renderTurboPackageFilter(component.owner)]);
|
|
81
88
|
case "turbo-package-test":
|
|
82
|
-
return
|
|
89
|
+
return renderTurboRunCommand(["test"], [renderTurboPackageFilter(component.owner)]);
|
|
83
90
|
case "turbo-package-e2e-test":
|
|
84
|
-
return
|
|
91
|
+
return renderTurboRunCommand(["test:e2e"], [renderTurboPackageFilter(component.owner)]);
|
|
85
92
|
case "turbo-package-check":
|
|
86
|
-
return
|
|
93
|
+
return renderTurboRunCommand(["check"], [renderTurboPackageFilter(component.owner)]);
|
|
87
94
|
case "rustfmt-check":
|
|
88
95
|
return "cargo fmt --all -- --check";
|
|
89
96
|
case "cargo-clippy":
|
|
@@ -99,24 +106,24 @@ export function renderFixLeafCommand(component) {
|
|
|
99
106
|
case "oxc-lint-fix":
|
|
100
107
|
return "pnpm run lint:fix";
|
|
101
108
|
case "turbo-fix":
|
|
102
|
-
return "
|
|
109
|
+
return renderTurboRunCommand(["fix"]);
|
|
103
110
|
case "turbo-package-fix":
|
|
104
|
-
return
|
|
111
|
+
return renderTurboRunCommand(["fix"], [renderTurboPackageFilter(component.owner)]);
|
|
105
112
|
case "rustfmt-write":
|
|
106
113
|
return "cargo fmt --all";
|
|
107
114
|
}
|
|
108
115
|
}
|
|
109
116
|
export function renderRootCheckCommand(plan) {
|
|
110
|
-
return
|
|
117
|
+
return renderTurboRunCommand(uniqueTaskNames([
|
|
111
118
|
...plan.components.flatMap(checkComponentTaskNames),
|
|
112
119
|
"check:run",
|
|
113
|
-
])
|
|
120
|
+
]));
|
|
114
121
|
}
|
|
115
122
|
export function renderFixCommand(plan) {
|
|
116
|
-
return
|
|
123
|
+
return renderTurboRunCommand(uniqueTaskNames([
|
|
117
124
|
...plan.components.flatMap(fixComponentTaskNames),
|
|
118
125
|
"fix:run",
|
|
119
|
-
])
|
|
126
|
+
]));
|
|
120
127
|
}
|
|
121
128
|
function playwrightBrowserInstallArgs(need, options = {}) {
|
|
122
129
|
const installArgs = [
|
|
@@ -3,6 +3,7 @@ import path from "node:path";
|
|
|
3
3
|
import { validateProjectBlueprint, } from "@ykdz/template-shared";
|
|
4
4
|
import { PackageAdditionSupport, } from "@ykdz/template-shared";
|
|
5
5
|
import { collectGeneratedManifestCatalogReferences, pnpmWorkspaceYamlWithCatalogDependencies, } from "./dependency-catalog.js";
|
|
6
|
+
import { renderTurboRunCommand } from "./module-graph.js";
|
|
6
7
|
import { assertTypeScriptPackageBoundaryForLinkIntent, packageTurboTasks, planPackageLinks, } from "./package-linking.js";
|
|
7
8
|
import { findPresetSourceManifestPreset, } from "./preset-source.js";
|
|
8
9
|
import { defaultPackagePathForPresetSourcePackageAddition, planPresetSourcePackageAddition, } from "./projection-capabilities.js";
|
|
@@ -385,11 +386,8 @@ function rootScriptWithTurboPackageTasks(options) {
|
|
|
385
386
|
const rootCommands = options.script
|
|
386
387
|
.split(" && ")
|
|
387
388
|
.filter((command) => !command.startsWith("turbo run "));
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
...options.taskNames,
|
|
391
|
-
...(options.concurrency === undefined ? [] : ["--concurrency=1"]),
|
|
392
|
-
].join(" ");
|
|
389
|
+
const turboArgs = options.concurrency === undefined ? [] : ["--concurrency=1"];
|
|
390
|
+
const turboCommand = renderTurboRunCommand(options.taskNames, turboArgs);
|
|
393
391
|
return [...rootCommands, turboCommand].join(" && ");
|
|
394
392
|
}
|
|
395
393
|
function rootPackageJsonWithPackageTaskFilters(input, blueprint) {
|
|
@@ -5,7 +5,7 @@ import { normalizePresetProjectionDeclaration, projectionCapabilityIssues, valid
|
|
|
5
5
|
import { collectGeneratedManifestCatalogDependencies, collectGeneratedManifestCatalogReferences, renderGeneratedPnpmWorkspaceYaml, } from "./dependency-catalog.js";
|
|
6
6
|
import { browserTestToolLayer, checkedDockerfileFirstNodePnpmDevcontainer, dockerfileFirstRustPnpmDevcontainer, nodePnpmToolLayer, rustToolLayer, } from "./devcontainer.js";
|
|
7
7
|
import { editorCustomizationForCapabilities, loadEditorCustomizationDeclarations, } from "./editor-customization.js";
|
|
8
|
-
import { playwrightBrowserAssetsEnvironmentNeed, renderCheckLeafCommand, renderFixCommand, renderFixLeafCommand, renderRootCheckCommand, } from "./module-graph.js";
|
|
8
|
+
import { playwrightBrowserAssetsEnvironmentNeed, renderCheckLeafCommand, renderFixCommand, renderFixLeafCommand, renderRootCheckCommand, renderTurboRunCommand, } from "./module-graph.js";
|
|
9
9
|
import { packageManifestExposureFields, packageTurboTasks, planPackageLinks, } from "./package-linking.js";
|
|
10
10
|
export { normalizePresetProjectionDeclaration, projectionCapabilityIssues, validateProjectionCapabilities, };
|
|
11
11
|
const strictTypescriptRootBoundary = {
|
|
@@ -139,8 +139,9 @@ const capabilityInterpreters = {
|
|
|
139
139
|
owner: workspacePackageBoundary,
|
|
140
140
|
});
|
|
141
141
|
state.rootScriptFragments.typecheck =
|
|
142
|
-
"tsc -p tsconfig.config.json --noEmit";
|
|
143
|
-
state.packageScriptFragments.typecheck =
|
|
142
|
+
"tsc -p tsconfig.config.json --noEmit --pretty false";
|
|
143
|
+
state.packageScriptFragments.typecheck =
|
|
144
|
+
"tsc -p tsconfig.json --noEmit --pretty false";
|
|
144
145
|
state.rootDevDependencies.add("typescript");
|
|
145
146
|
state.packageDevDependencies.add("@types/node");
|
|
146
147
|
state.packageDevDependencies.add("typescript");
|
|
@@ -173,21 +174,21 @@ const capabilityInterpreters = {
|
|
|
173
174
|
});
|
|
174
175
|
state.packageFixComponents.push({ kind: "oxc-format-write", owner: workspacePackageBoundary }, { kind: "oxc-lint-fix", owner: workspacePackageBoundary });
|
|
175
176
|
state.rootScriptFragments["format:check"] =
|
|
176
|
-
"oxfmt --
|
|
177
|
+
"oxfmt --list-different oxlint.config.ts oxfmt.config.ts";
|
|
177
178
|
state.rootScriptFragments["format:write"] =
|
|
178
179
|
"oxfmt --write oxlint.config.ts oxfmt.config.ts";
|
|
179
180
|
state.rootScriptFragments.lint =
|
|
180
|
-
"oxlint oxlint.config.ts oxfmt.config.ts";
|
|
181
|
+
"oxlint --quiet --format=unix oxlint.config.ts oxfmt.config.ts";
|
|
181
182
|
state.rootScriptFragments["lint:fix"] =
|
|
182
|
-
"oxlint oxlint.config.ts oxfmt.config.ts --fix";
|
|
183
|
+
"oxlint --format=unix oxlint.config.ts oxfmt.config.ts --fix";
|
|
183
184
|
state.packageScriptFragments["format:check"] =
|
|
184
|
-
"oxfmt --
|
|
185
|
+
"oxfmt --list-different --config ../../oxfmt.config.ts .";
|
|
185
186
|
state.packageScriptFragments["format:write"] =
|
|
186
187
|
"oxfmt --write --config ../../oxfmt.config.ts .";
|
|
187
188
|
state.packageScriptFragments.lint =
|
|
188
|
-
"oxlint --config ../../oxlint.config.ts .";
|
|
189
|
+
"oxlint --quiet --format=unix --config ../../oxlint.config.ts .";
|
|
189
190
|
state.packageScriptFragments["lint:fix"] =
|
|
190
|
-
"oxlint --config ../../oxlint.config.ts . --fix";
|
|
191
|
+
"oxlint --format=unix --config ../../oxlint.config.ts . --fix";
|
|
191
192
|
state.rootDevDependencies.add("oxfmt");
|
|
192
193
|
state.rootDevDependencies.add("oxlint");
|
|
193
194
|
state.rootDevDependencies.add("oxlint-tsgolint");
|
|
@@ -850,7 +851,7 @@ function rootTaskEntrypoints(checkPlan, fixPlan) {
|
|
|
850
851
|
if (taskName === undefined) {
|
|
851
852
|
continue;
|
|
852
853
|
}
|
|
853
|
-
entries.push([taskName,
|
|
854
|
+
entries.push([taskName, renderTurboRunCommand([`${taskName}:run`])]);
|
|
854
855
|
}
|
|
855
856
|
return Object.fromEntries(entries);
|
|
856
857
|
}
|
|
@@ -1525,10 +1526,10 @@ function workspaceNodePackagesOperations({ context, state, packageScripts, }) {
|
|
|
1525
1526
|
}
|
|
1526
1527
|
function nodePackageScripts(nodePackage, workspace) {
|
|
1527
1528
|
const oxcScripts = {
|
|
1528
|
-
"format:check": "oxfmt --
|
|
1529
|
+
"format:check": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
1529
1530
|
"format:write": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
1530
|
-
lint: "oxlint --config ../../oxlint.config.ts .",
|
|
1531
|
-
"lint:fix": "oxlint --config ../../oxlint.config.ts . --fix",
|
|
1531
|
+
lint: "oxlint --quiet --format=unix --config ../../oxlint.config.ts .",
|
|
1532
|
+
"lint:fix": "oxlint --format=unix --config ../../oxlint.config.ts . --fix",
|
|
1532
1533
|
};
|
|
1533
1534
|
if (nodePackage.kind === "hono-api") {
|
|
1534
1535
|
return {
|
|
@@ -1538,8 +1539,8 @@ function nodePackageScripts(nodePackage, workspace) {
|
|
|
1538
1539
|
: {}),
|
|
1539
1540
|
...leafScriptFragments(oxcScripts),
|
|
1540
1541
|
start: "node dist/server.js",
|
|
1541
|
-
"test:run": "vitest run",
|
|
1542
|
-
"typecheck:run": "tsc -p tsconfig.json --noEmit",
|
|
1542
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
1543
|
+
"typecheck:run": "tsc -p tsconfig.json --noEmit --pretty false",
|
|
1543
1544
|
};
|
|
1544
1545
|
}
|
|
1545
1546
|
if (nodePackage.kind === "vike-app") {
|
|
@@ -1550,15 +1551,15 @@ function nodePackageScripts(nodePackage, workspace) {
|
|
|
1550
1551
|
"drizzle:generate": "drizzle-kit generate",
|
|
1551
1552
|
"drizzle:migrate": "drizzle-kit migrate",
|
|
1552
1553
|
"drizzle:studio": "drizzle-kit studio",
|
|
1553
|
-
"format:check:run": "oxfmt --
|
|
1554
|
+
"format:check:run": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
1554
1555
|
"format:write:run": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
1555
|
-
"lint:run": "oxlint --type-aware --config ../../oxlint.config.ts .",
|
|
1556
|
-
"lint:fix:run": "oxlint --type-aware --config ../../oxlint.config.ts . --fix",
|
|
1556
|
+
"lint:run": "oxlint --quiet --format=unix --type-aware --config ../../oxlint.config.ts .",
|
|
1557
|
+
"lint:fix:run": "oxlint --type-aware --format=unix --config ../../oxlint.config.ts . --fix",
|
|
1557
1558
|
preview: "pnpm run db:push && vike preview",
|
|
1558
1559
|
start: "node ./dist/server/index.mjs",
|
|
1559
|
-
"test:run": "DATABASE_FILE=./node_modules/.tmp/test.sqlite pnpm run db:push && DATABASE_FILE=./node_modules/.tmp/test.sqlite vitest run",
|
|
1560
|
+
"test:run": "DATABASE_FILE=./node_modules/.tmp/test.sqlite pnpm run db:push && DATABASE_FILE=./node_modules/.tmp/test.sqlite vitest run --reporter=agent --silent=passed-only",
|
|
1560
1561
|
"test:e2e:run": "playwright test --config playwright.config.ts",
|
|
1561
|
-
"typecheck:run": "vue-tsc --build --noEmit",
|
|
1562
|
+
"typecheck:run": "vue-tsc --build --noEmit --pretty false",
|
|
1562
1563
|
};
|
|
1563
1564
|
}
|
|
1564
1565
|
return {
|
|
@@ -1566,11 +1567,11 @@ function nodePackageScripts(nodePackage, workspace) {
|
|
|
1566
1567
|
dev: "vite",
|
|
1567
1568
|
...leafScriptFragments(oxcScripts),
|
|
1568
1569
|
preview: "vite preview",
|
|
1569
|
-
"test:run": "vitest run",
|
|
1570
|
+
"test:run": "vitest run --reporter=agent --silent=passed-only",
|
|
1570
1571
|
"test:e2e:run": "node --experimental-strip-types scripts/run-playwright.ts",
|
|
1571
1572
|
"typecheck:run": workspace.packages.length > 1
|
|
1572
|
-
? "vue-tsc --build"
|
|
1573
|
-
: "vue-tsc --build --noEmit",
|
|
1573
|
+
? "vue-tsc --build --pretty false"
|
|
1574
|
+
: "vue-tsc --build --noEmit --pretty false",
|
|
1574
1575
|
};
|
|
1575
1576
|
}
|
|
1576
1577
|
function nodePackageTsconfigOperations(nodePackage, workspace) {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp ../../pnpm-workspace.yaml dist/pnpm-workspace.yaml",
|
|
17
|
-
"format:check": "oxfmt --
|
|
17
|
+
"format:check": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
18
18
|
"format:write": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
19
|
-
"lint": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
20
|
-
"lint:fix": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
21
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
19
|
+
"lint": "oxlint --quiet --format=unix --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
20
|
+
"lint:fix": "oxlint --format=unix --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
21
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --pretty false"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ykdz/template-shared": "workspace:*",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
17
|
-
"format:check": "oxfmt --
|
|
17
|
+
"format:check": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
18
18
|
"format:write": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
19
|
-
"lint": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
20
|
-
"lint:fix": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
21
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
19
|
+
"lint": "oxlint --quiet --format=unix --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
20
|
+
"lint:fix": "oxlint --format=unix --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
21
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --pretty false"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"valibot": "catalog:"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ykdz/template",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Project template generator for YKDZ starter projects.",
|
|
6
6
|
"keywords": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"typescript": "^6.0.3",
|
|
36
36
|
"valibot": "^1.4.2",
|
|
37
|
-
"@ykdz/template-builtin-source": "0.0.0",
|
|
38
37
|
"@ykdz/template-core": "0.0.0",
|
|
38
|
+
"@ykdz/template-builtin-source": "0.0.0",
|
|
39
39
|
"@ykdz/template-shared": "0.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
57
|
-
"format:check": "oxfmt --
|
|
57
|
+
"format:check": "oxfmt --list-different --config ../../oxfmt.config.ts .",
|
|
58
58
|
"format:write": "oxfmt --write --config ../../oxfmt.config.ts .",
|
|
59
|
-
"lint": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
60
|
-
"lint:fix": "oxlint --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
61
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
59
|
+
"lint": "oxlint --quiet --format=unix --config ../../oxlint.config.ts --ignore-pattern dist .",
|
|
60
|
+
"lint:fix": "oxlint --format=unix --config ../../oxlint.config.ts --ignore-pattern dist . --fix",
|
|
61
|
+
"typecheck": "tsc -p tsconfig.json --noEmit --pretty false"
|
|
62
62
|
}
|
|
63
63
|
}
|