rattail 2.0.0 → 2.0.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/dist/{api-D47gffSz.mjs → api-JIv93aRD.mjs} +1 -1
- package/dist/{changelog-BfA2GB4q.mjs → changelog-D_dgNgWe.mjs} +1 -1
- package/dist/{clean-C6NM27Sn.mjs → clean-DeYuezzs.mjs} +1 -1
- package/dist/cli/bin.mjs +17 -7
- package/dist/cli/index.d.mts +7 -3
- package/dist/cli/index.mjs +9 -8
- package/dist/{config-DWLGZgfr.d.mts → config-DSUWeyjT.d.mts} +2 -1
- package/dist/{config-DH-XPKxB.mjs → config-DqfOxl3N.mjs} +3 -1
- package/dist/{hook-B7MNHWsP.mjs → hook-DzxvFQRx.mjs} +1 -1
- package/dist/publish-BtyDV0uq.mjs +10 -0
- package/dist/{release-Bc1Vh4x5.mjs → release-BFEGCZ4T.mjs} +1 -1
- package/dist/vite-plus/index.d.mts +1 -1
- package/package.json +3 -3
- /package/dist/{commitLint-Dl7rdM3J.mjs → commitLint-DfoTcmGe.mjs} +0 -0
- /package/dist/{lockfileCheck-BbnvQa4G.mjs → lockfileCheck-DV9K79oB.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
3
3
|
import { generate } from "api-farmer";
|
|
4
4
|
//#region src/cli/api.ts
|
|
5
5
|
var api_exports = /* @__PURE__ */ __exportAll({ api: () => api });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
3
3
|
import { changelog } from "@varlet/release";
|
|
4
4
|
//#region src/cli/changelog.ts
|
|
5
5
|
var changelog_exports = /* @__PURE__ */ __exportAll({ changelog: () => changelog$1 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
2
|
import { n as isArray, t as isString } from "./isString-eoLxw4CX.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
4
4
|
import { rimraf } from "rimraf";
|
|
5
5
|
//#region src/cli/clean.ts
|
|
6
6
|
var clean_exports = /* @__PURE__ */ __exportAll({ clean: () => clean });
|
package/dist/cli/bin.mjs
CHANGED
|
@@ -12,31 +12,41 @@ function getCliVersion() {
|
|
|
12
12
|
const program = new Command();
|
|
13
13
|
program.version(getCliVersion());
|
|
14
14
|
program.command("clean").description("Remove files and directories").argument("[patterns...]").action(async (patterns) => {
|
|
15
|
-
const { clean } = await import("../clean-
|
|
15
|
+
const { clean } = await import("../clean-DeYuezzs.mjs").then((n) => n.n);
|
|
16
16
|
return clean(patterns.length ? patterns : void 0);
|
|
17
17
|
});
|
|
18
18
|
program.command("api").description("Generate API modules from OpenAPI/Swagger schema").action(async () => {
|
|
19
|
-
const { api } = await import("../api-
|
|
19
|
+
const { api } = await import("../api-JIv93aRD.mjs").then((n) => n.n);
|
|
20
20
|
return api();
|
|
21
21
|
});
|
|
22
22
|
program.command("hook").description("Install git hooks from config").action(async () => {
|
|
23
|
-
const { hook } = await import("../hook-
|
|
23
|
+
const { hook } = await import("../hook-DzxvFQRx.mjs").then((n) => n.r);
|
|
24
24
|
return hook();
|
|
25
25
|
});
|
|
26
26
|
program.command("release").description("Release all packages and generate changelogs").action(async () => {
|
|
27
|
-
const { release } = await import("../release-
|
|
27
|
+
const { release } = await import("../release-BFEGCZ4T.mjs").then((n) => n.n);
|
|
28
28
|
return release();
|
|
29
29
|
});
|
|
30
|
+
program.command("publish").description("Publish workspace packages to npm (pnpm recursive publish)").option("-c, --checkRemoteVersion", "Skip publish if the current version already exists on npm").option("-t, --npmTag <tag>", "npm dist-tag (e.g. beta, next); ignored when --pre-release is set").option("--pre-release", "Publish with alpha dist-tag").action(async (options) => {
|
|
31
|
+
const { getConfig } = await import("../config-DqfOxl3N.mjs").then((n) => n.t);
|
|
32
|
+
const { publish } = await import("../publish-BtyDV0uq.mjs").then((n) => n.n);
|
|
33
|
+
return publish({
|
|
34
|
+
...(await getConfig()).publish ?? {},
|
|
35
|
+
...options.checkRemoteVersion ? { checkRemoteVersion: true } : {},
|
|
36
|
+
...options.npmTag != null ? { npmTag: options.npmTag } : {},
|
|
37
|
+
...options.preRelease ? { preRelease: true } : {}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
30
40
|
program.command("changelog").description("Generate changelog").action(async () => {
|
|
31
|
-
const { changelog } = await import("../changelog-
|
|
41
|
+
const { changelog } = await import("../changelog-D_dgNgWe.mjs").then((n) => n.n);
|
|
32
42
|
return changelog();
|
|
33
43
|
});
|
|
34
44
|
program.command("commit-lint").description("Lint commit message").argument("<commitMessagePath>", "Git commit message path").action(async (commitMessagePath) => {
|
|
35
|
-
const { commitLint } = await import("../commitLint-
|
|
45
|
+
const { commitLint } = await import("../commitLint-DfoTcmGe.mjs").then((n) => n.n);
|
|
36
46
|
return commitLint({ commitMessagePath });
|
|
37
47
|
});
|
|
38
48
|
program.command("lockfile-check").description("Check if lockfile has been updated and auto-install dependencies").option("-m, --packageManager <manager>", "Package manager (npm, yarn, pnpm)").option("-s, --skipInstall", "Skip install dependencies when lockfile changed").action(async (options) => {
|
|
39
|
-
const { lockfileCheck } = await import("../lockfileCheck-
|
|
49
|
+
const { lockfileCheck } = await import("../lockfileCheck-DV9K79oB.mjs").then((n) => n.n);
|
|
40
50
|
return lockfileCheck(options);
|
|
41
51
|
});
|
|
42
52
|
program.parse();
|
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as HookConfig } from "../config-
|
|
1
|
+
import { t as HookConfig } from "../config-DSUWeyjT.mjs";
|
|
2
2
|
import { GenerateOptions } from "api-farmer";
|
|
3
|
-
import { ChangelogOptions, CommitLintCommandOptions, LockfileCheckOptions, ReleaseCommandOptions } from "@varlet/release";
|
|
3
|
+
import { ChangelogOptions, CommitLintCommandOptions, LockfileCheckOptions, PublishCommandOptions, ReleaseCommandOptions } from "@varlet/release";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/clean.d.ts
|
|
6
6
|
declare function clean(patterns?: string[]): Promise<void>;
|
|
@@ -18,6 +18,10 @@ declare function hook(): Promise<void>;
|
|
|
18
18
|
type ReleaseConfig = ReleaseCommandOptions;
|
|
19
19
|
declare function release(config?: ReleaseConfig): Promise<void>;
|
|
20
20
|
//#endregion
|
|
21
|
+
//#region src/cli/publish.d.ts
|
|
22
|
+
type PublishConfig = PublishCommandOptions;
|
|
23
|
+
declare function publish(config?: PublishConfig): Promise<void>;
|
|
24
|
+
//#endregion
|
|
21
25
|
//#region src/cli/changelog.d.ts
|
|
22
26
|
type ChangelogConfig = ChangelogOptions;
|
|
23
27
|
declare function changelog(config?: ChangelogConfig): Promise<void>;
|
|
@@ -30,4 +34,4 @@ declare function commitLint(options: CommitLintCommandOptions): void;
|
|
|
30
34
|
type LockfileCheckConfig = LockfileCheckOptions;
|
|
31
35
|
declare function lockfileCheck(options?: LockfileCheckOptions): Promise<void>;
|
|
32
36
|
//#endregion
|
|
33
|
-
export { ApiConfig, ChangelogConfig, CommitLintConfig, LockfileCheckConfig, ReleaseConfig, api, changelog, clean, commitLint, getHooksDir, hook, lockfileCheck, release, writeHooks };
|
|
37
|
+
export { ApiConfig, ChangelogConfig, CommitLintConfig, LockfileCheckConfig, PublishConfig, ReleaseConfig, api, changelog, clean, commitLint, getHooksDir, hook, lockfileCheck, publish, release, writeHooks };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as clean } from "../clean-
|
|
2
|
-
import { t as api } from "../api-
|
|
3
|
-
import { i as writeHooks, n as hook, t as getHooksDir } from "../hook-
|
|
4
|
-
import { t as release } from "../release-
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
|
|
1
|
+
import { t as clean } from "../clean-DeYuezzs.mjs";
|
|
2
|
+
import { t as api } from "../api-JIv93aRD.mjs";
|
|
3
|
+
import { i as writeHooks, n as hook, t as getHooksDir } from "../hook-DzxvFQRx.mjs";
|
|
4
|
+
import { t as release } from "../release-BFEGCZ4T.mjs";
|
|
5
|
+
import { t as publish } from "../publish-BtyDV0uq.mjs";
|
|
6
|
+
import { t as changelog } from "../changelog-D_dgNgWe.mjs";
|
|
7
|
+
import { t as commitLint } from "../commitLint-DfoTcmGe.mjs";
|
|
8
|
+
import { t as lockfileCheck } from "../lockfileCheck-DV9K79oB.mjs";
|
|
9
|
+
export { api, changelog, clean, commitLint, getHooksDir, hook, lockfileCheck, publish, release, writeHooks };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenerateOptions } from "api-farmer";
|
|
2
|
-
import { ChangelogOptions, ReleaseCommandOptions } from "@varlet/release";
|
|
2
|
+
import { ChangelogOptions, PublishCommandOptions, ReleaseCommandOptions } from "@varlet/release";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/config.d.ts
|
|
5
5
|
type GitHook = 'applypatch-msg' | 'pre-applypatch' | 'post-applypatch' | 'pre-commit' | 'pre-merge-commit' | 'prepare-commit-msg' | 'commit-msg' | 'post-commit' | 'pre-rebase' | 'post-checkout' | 'post-merge' | 'pre-push' | 'pre-auto-gc' | 'post-rewrite';
|
|
@@ -12,6 +12,7 @@ type RattailConfig = {
|
|
|
12
12
|
hook?: HookConfig;
|
|
13
13
|
api?: GenerateOptions;
|
|
14
14
|
release?: ReleaseCommandOptions;
|
|
15
|
+
publish?: PublishCommandOptions;
|
|
15
16
|
changelog?: ChangelogOptions;
|
|
16
17
|
};
|
|
17
18
|
//#endregion
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
1
2
|
import { t as callOrReturn } from "./callOrReturn-MpTzoGlG.mjs";
|
|
2
3
|
import { loadConfig } from "unconfig";
|
|
3
4
|
//#region src/cli/config.ts
|
|
5
|
+
var config_exports = /* @__PURE__ */ __exportAll({ getConfig: () => getConfig });
|
|
4
6
|
async function getConfig() {
|
|
5
7
|
const { config } = await loadConfig({ sources: [{
|
|
6
8
|
files: "vite.config",
|
|
@@ -11,4 +13,4 @@ async function getConfig() {
|
|
|
11
13
|
return config ?? {};
|
|
12
14
|
}
|
|
13
15
|
//#endregion
|
|
14
|
-
export { getConfig as t };
|
|
16
|
+
export { getConfig as n, config_exports as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { execSync } from "node:child_process";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
3
|
+
import { publish } from "@varlet/release";
|
|
4
|
+
//#region src/cli/publish.ts
|
|
5
|
+
var publish_exports = /* @__PURE__ */ __exportAll({ publish: () => publish$1 });
|
|
6
|
+
async function publish$1(config) {
|
|
7
|
+
await publish(config ?? (await getConfig()).publish ?? {});
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { publish_exports as n, publish$1 as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-D1SwGrFN.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as getConfig } from "./config-DqfOxl3N.mjs";
|
|
3
3
|
import { release } from "@varlet/release";
|
|
4
4
|
//#region src/cli/release.ts
|
|
5
5
|
var release_exports = /* @__PURE__ */ __exportAll({ release: () => release$1 });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RattailConfig, t as HookConfig } from "../config-
|
|
1
|
+
import { n as RattailConfig, t as HookConfig } from "../config-DSUWeyjT.mjs";
|
|
2
2
|
import { CreateVueConfigOptions, DummyRule, FmtOptions, LintOptions, LintOptionsVue, OxlintConfig, OxlintOverride, StagedConfig, fmt, lint, staged } from "@configurajs/vite-plus";
|
|
3
3
|
import { ConfigEnv, UserConfig } from "@voidzero-dev/vite-plus-core";
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rattail",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A Vite+ oriented, AI Agent friendly front-end toolchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agent",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@configurajs/vite-plus": "0.2.4",
|
|
95
95
|
"@varlet/axle": "1.0.2",
|
|
96
|
-
"@varlet/release": "^2.2.
|
|
96
|
+
"@varlet/release": "^2.2.1",
|
|
97
97
|
"api-farmer": "0.1.5",
|
|
98
98
|
"commander": "^13.0.0",
|
|
99
99
|
"js-cookie": "3.0.5",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"docs:preview": "vitepress preview docs",
|
|
139
139
|
"format": "vp fmt",
|
|
140
140
|
"lint": "vp lint --fix",
|
|
141
|
-
"release": "pnpm build &&
|
|
141
|
+
"release": "pnpm build && tsx src/cli/bin.ts release",
|
|
142
142
|
"test:watch": "vp test watch",
|
|
143
143
|
"test": "vp test run --coverage"
|
|
144
144
|
}
|
|
File without changes
|
|
File without changes
|