@yunsoft/yuncms 0.1.22 → 0.1.24
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 +4 -0
- package/package.json +7 -3
- package/src/cli.js +7 -1
- package/src/community-links.js +10 -0
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@ Command-line setup, runtime launcher and guarded upgrade tooling for YunCMS.
|
|
|
4
4
|
|
|
5
5
|
YunCMS is developed and maintained by **[Yunsoft Software](https://yunsoft.com)**.
|
|
6
6
|
|
|
7
|
+
Need help building your project, integrating YunCMS or migrating an existing backend? [Talk to Yunsoft](https://yunsoft.com/contact?utm_source=npm&utm_medium=yuncms&utm_campaign=yuncms-services). Support the project by [starring it on GitHub](https://github.com/Yunsoft-Software/yuncms) or [sponsor YunCMS](https://github.com/sponsors/Yunsoft-Software).
|
|
8
|
+
|
|
9
|
+
Configure repeated summaries, classifications or translations through Studio/MCP with [AI Automations](https://github.com/Yunsoft-Software/yuncms/blob/main/docs/ai-automations.md): preview a record, select restricted input/output fields and inspect persistent run history.
|
|
10
|
+
|
|
7
11
|
## Quick start
|
|
8
12
|
|
|
9
13
|
You do **not** need to clone or fork the YunCMS repository. From an empty project directory, run the published package directly:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yunsoft/yuncms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Command-line setup and runtime launcher for YunCMS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,11 @@
|
|
|
30
30
|
"test": "node --test"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@yunsoft/yuncms-api": "0.1.
|
|
34
|
-
"@yunsoft/yuncms-core": "0.1.
|
|
33
|
+
"@yunsoft/yuncms-api": "0.1.24",
|
|
34
|
+
"@yunsoft/yuncms-core": "0.1.24"
|
|
35
|
+
},
|
|
36
|
+
"funding": {
|
|
37
|
+
"type": "github",
|
|
38
|
+
"url": "https://github.com/sponsors/Yunsoft-Software"
|
|
35
39
|
}
|
|
36
40
|
}
|
package/src/cli.js
CHANGED
|
@@ -4,6 +4,7 @@ import { runInitCommand } from './init-command.js';
|
|
|
4
4
|
import { runRestoreCommand } from './restore-command.js';
|
|
5
5
|
import { runStartCommand } from './start-command.js';
|
|
6
6
|
import { runUpdateCommand } from './update-command.js';
|
|
7
|
+
import { printCommunityLinks } from './community-links.js';
|
|
7
8
|
|
|
8
9
|
function assertSupportedNode(version = process.versions.node) {
|
|
9
10
|
const major = Number(String(version).split('.')[0]);
|
|
@@ -41,7 +42,11 @@ export async function runCli(argv = process.argv.slice(2), {
|
|
|
41
42
|
switch (command) {
|
|
42
43
|
case 'init':
|
|
43
44
|
assertNoArguments(command, rest);
|
|
44
|
-
|
|
45
|
+
{
|
|
46
|
+
const result = await runInitCommand({ env, cwd, output, ...(prompts ? { prompts } : {}) });
|
|
47
|
+
printCommunityLinks({ env, output });
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
45
50
|
case 'bootstrap':
|
|
46
51
|
assertNoArguments(command, rest);
|
|
47
52
|
return runBootstrapCommand({ env, output });
|
|
@@ -59,6 +64,7 @@ export async function runCli(argv = process.argv.slice(2), {
|
|
|
59
64
|
case '-h':
|
|
60
65
|
assertNoArguments(command, rest);
|
|
61
66
|
printHelp(output);
|
|
67
|
+
printCommunityLinks({ env, output, help: true });
|
|
62
68
|
return null;
|
|
63
69
|
default: {
|
|
64
70
|
const error = new Error(`Unknown YunCMS command: ${command}`);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const COMMUNITY_LINKS = Object.freeze({
|
|
2
|
+
github: 'https://github.com/Yunsoft-Software/yuncms',
|
|
3
|
+
services: 'https://yunsoft.com/contact?utm_source=cli&utm_medium=yuncms&utm_campaign=yuncms-services',
|
|
4
|
+
sponsorship: 'https://github.com/sponsors/Yunsoft-Software',
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
export function printCommunityLinks({ output = console, env = process.env, isTTY = process.stdout.isTTY, help = false } = {}) {
|
|
8
|
+
if (!help && (!isTTY || env.CI)) return;
|
|
9
|
+
output.log?.(`\nEnjoy YunCMS? Star the project: ${COMMUNITY_LINKS.github}\nBuild with Yunsoft — setup, migration and AI workflows: ${COMMUNITY_LINKS.services}\nSponsor YunCMS: ${COMMUNITY_LINKS.sponsorship}`);
|
|
10
|
+
}
|