ply-ui-cli 1.1.126 → 1.1.128
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 +2 -2
- package/dist/commands/add.js +10 -0
- package/dist/commands/init.js +1 -2
- package/dist/index.js +2 -2
- package/dist/registry.js +2 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -168,9 +168,9 @@ Get a license and browse live previews of every component at [ply-ui.com](https:
|
|
|
168
168
|
|
|
169
169
|
```json
|
|
170
170
|
{
|
|
171
|
+
"$schema": "https://ply-ui.com/schema.json",
|
|
171
172
|
"aliases": {
|
|
172
|
-
"components": "src/app/components"
|
|
173
|
-
"utils": "src/app/utils"
|
|
173
|
+
"components": "src/app/components"
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
```
|
package/dist/commands/add.js
CHANGED
|
@@ -107,6 +107,7 @@ var CLI_BIN = "ply-ui-cli";
|
|
|
107
107
|
var CLI_NPX = `npx ${CLI_BIN}`;
|
|
108
108
|
var MCP_PACKAGE = "ply-ui-mcp";
|
|
109
109
|
var MCP_NPX = `npx -y ${MCP_PACKAGE}`;
|
|
110
|
+
var GITHUB_HUB_URL = "https://github.com/ply-ui-ng/ply";
|
|
110
111
|
|
|
111
112
|
// src/config.ts
|
|
112
113
|
function readConfig() {
|
|
@@ -273,6 +274,14 @@ function writeSnapshot(component, file, content) {
|
|
|
273
274
|
import_fs4.default.writeFileSync(dest, content, "utf8");
|
|
274
275
|
}
|
|
275
276
|
|
|
277
|
+
// src/license-note.ts
|
|
278
|
+
function installLicenseLine(name, tier) {
|
|
279
|
+
if (tier === "pro") {
|
|
280
|
+
return " Ply Pro \u2014 licensed; see LICENSE-PRO.md";
|
|
281
|
+
}
|
|
282
|
+
return ` MIT ${GITHUB_HUB_URL}/tree/main/components/${name}`;
|
|
283
|
+
}
|
|
284
|
+
|
|
276
285
|
// src/commands/add.ts
|
|
277
286
|
function detectPackageManager(cwd) {
|
|
278
287
|
if (import_fs5.default.existsSync(import_path5.default.join(cwd, "pnpm-lock.yaml"))) return "pnpm";
|
|
@@ -433,6 +442,7 @@ async function add(components, options = {}) {
|
|
|
433
442
|
installedItems.push(name);
|
|
434
443
|
recordComponent(lock, name, entry.tier, item.files);
|
|
435
444
|
spinner.succeed(`${name} \u2192 ${import_path5.default.relative(process.cwd(), targetDir)}${entry.tier === "pro" ? " (pro)" : ""}`);
|
|
445
|
+
console.log(installLicenseLine(name, entry.tier));
|
|
436
446
|
}
|
|
437
447
|
if (installedItems.length) {
|
|
438
448
|
writeLockFile(lock);
|
package/dist/commands/init.js
CHANGED
|
@@ -302,8 +302,7 @@ async function init(options = {}) {
|
|
|
302
302
|
cssVariables: true
|
|
303
303
|
},
|
|
304
304
|
aliases: {
|
|
305
|
-
components: response.componentsAlias
|
|
306
|
-
utils: "src/app/utils"
|
|
305
|
+
components: response.componentsAlias
|
|
307
306
|
}
|
|
308
307
|
};
|
|
309
308
|
import_fs3.default.writeFileSync(configPath, JSON.stringify(config, null, 2), "utf8");
|
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ function parseArgs(argv) {
|
|
|
108
108
|
async function main() {
|
|
109
109
|
const { command, positionals, flags } = parseArgs(process.argv.slice(2));
|
|
110
110
|
if (flags.version && !command) {
|
|
111
|
-
console.log("1.1.
|
|
111
|
+
console.log("1.1.128");
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
if (flags.help || !command) {
|
|
@@ -158,7 +158,7 @@ async function main() {
|
|
|
158
158
|
}
|
|
159
159
|
case "--version":
|
|
160
160
|
case "-V":
|
|
161
|
-
console.log("1.1.
|
|
161
|
+
console.log("1.1.128");
|
|
162
162
|
return;
|
|
163
163
|
default:
|
|
164
164
|
console.error(`Unknown command: ${command}`);
|
package/dist/registry.js
CHANGED
|
@@ -132,7 +132,8 @@ var registryItemSchema = import_vendor.z.object({
|
|
|
132
132
|
usage: import_vendor.z.string().optional().default(""),
|
|
133
133
|
keywords: import_vendor.z.array(import_vendor.z.string()).optional().default([]),
|
|
134
134
|
files: import_vendor.z.array(registryFileSchema),
|
|
135
|
-
type: import_vendor.z.string().optional()
|
|
135
|
+
type: import_vendor.z.string().optional(),
|
|
136
|
+
license: import_vendor.z.enum(["MIT", "Ply Pro"]).optional()
|
|
136
137
|
});
|
|
137
138
|
var registryIndexSchema = import_vendor.z.array(
|
|
138
139
|
registryItemSchema.omit({ files: true }).extend({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ply-ui-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.128",
|
|
4
4
|
"description": "Ply CLI — add Angular + Tailwind CSS components to your project (shadcn-style, code is copied in and owned by you). Not MUI Base UI.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/ply-ui-ng/ply.git"
|
|
11
|
+
"url": "https://github.com/ply-ui-ng/ply.git",
|
|
12
|
+
"directory": "packages/cli"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://ply-ui.com",
|
|
14
15
|
"bugs": {
|