@object-ui/create-plugin 6.2.3 → 7.1.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/CHANGELOG.md +4 -0
- package/dist/index.js +0 -38
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -318,44 +318,6 @@ describe('${pascalCaseName}', () => {
|
|
|
318
318
|
path.join(targetDir, "src", `${pascalCaseName}Impl.test.tsx`),
|
|
319
319
|
testFile
|
|
320
320
|
);
|
|
321
|
-
const storyFile = `/**
|
|
322
|
-
* ObjectUI
|
|
323
|
-
* Copyright (c) ${vars.YEAR}-present ObjectStack Inc.
|
|
324
|
-
*
|
|
325
|
-
* This source code is licensed under the MIT license found in the
|
|
326
|
-
* LICENSE file in the root directory of this source tree.
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
330
|
-
import React from 'react';
|
|
331
|
-
import { ${pascalCaseName} } from './${pascalCaseName}Impl';
|
|
332
|
-
|
|
333
|
-
const meta = {
|
|
334
|
-
title: 'Plugins/${pascalCaseName}',
|
|
335
|
-
component: ${pascalCaseName},
|
|
336
|
-
parameters: {
|
|
337
|
-
layout: 'padded',
|
|
338
|
-
},
|
|
339
|
-
tags: ['autodocs'],
|
|
340
|
-
} satisfies Meta<typeof ${pascalCaseName}>;
|
|
341
|
-
|
|
342
|
-
export default meta;
|
|
343
|
-
type Story = StoryObj<typeof meta>;
|
|
344
|
-
|
|
345
|
-
export const Default: Story = {
|
|
346
|
-
args: {},
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
export const WithClassName: Story = {
|
|
350
|
-
args: {
|
|
351
|
-
className: 'p-4 border rounded',
|
|
352
|
-
},
|
|
353
|
-
};
|
|
354
|
-
`;
|
|
355
|
-
fs.writeFileSync(
|
|
356
|
-
path.join(targetDir, "src", `${pascalCaseName}.stories.tsx`),
|
|
357
|
-
storyFile
|
|
358
|
-
);
|
|
359
321
|
console.log(chalk.green("\u2705 Plugin created successfully!\n"));
|
|
360
322
|
console.log(chalk.blue("Next steps:\n"));
|
|
361
323
|
console.log(chalk.gray(` cd packages/${fullPackageName}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/create-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "CLI tool to scaffold ObjectUI plugins",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"chalk": "^5.6.2",
|
|
19
|
-
"commander": "^
|
|
19
|
+
"commander": "^15.0.0",
|
|
20
20
|
"fs-extra": "^11.3.5",
|
|
21
21
|
"prompts": "^2.4.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/fs-extra": "^11.0.4",
|
|
25
|
-
"@types/node": "^
|
|
25
|
+
"@types/node": "^26.0.0",
|
|
26
26
|
"@types/prompts": "^2.4.9",
|
|
27
27
|
"tsup": "^8.5.1",
|
|
28
28
|
"typescript": "^6.0.3",
|
|
29
|
-
"vitest": "^4.1.
|
|
29
|
+
"vitest": "^4.1.9"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"objectui",
|