Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused plop actions #2403

Merged
merged 5 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react";
import { fireEvent, render } from "@testing-library/react";
import {{properCase componentName}} from "../{{properCase componentName}}";
import { {{properCase componentName}}Props } from "../{{properCase componentName}}.types";

const renderComponent = props => {
const renderComponent = (props: {{properCase componentName}}Props) => {
return render(<{{properCase componentName}} {...props} />);
};

Expand Down
10 changes: 5 additions & 5 deletions packages/core/plop/component/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export default {
description: "New monday component",
description: "New Vibe component",
prompts: [
{
type: "input",
name: "componentName",
message: "What is the name of your component? (use spaces if multi word)"
message: "What is the name of your component? (e.g. ButtonGroup)"
}
],
actions: [
Expand All @@ -27,7 +27,7 @@ export default {
{
type: "add",
path: "src/components/{{properCase componentName}}/__stories__/{{properCase componentName}}.mdx",
templateFile: "plop/general/component-stories-mdx.txt"
templateFile: "plop/component/component-stories-mdx.txt"
},
{
type: "modify",
Expand All @@ -38,7 +38,7 @@ export default {
{
type: "add",
path: "src/components/{{properCase componentName}}/__stories__/{{properCase componentName}}.stories.tsx",
templateFile: "plop/general/component-stories-tsx.txt"
templateFile: "plop/component/component-stories-tsx.txt"
},
{
type: "add",
Expand All @@ -53,7 +53,7 @@ export default {
{
type: "add",
path: "src/components/{{properCase componentName}}/__tests__/{{properCase componentName}}.test.tsx",
templateFile: "plop/general/component-tests.txt"
templateFile: "plop/component/component-tests.txt"
},
{
type: "append",
Expand Down
18 changes: 0 additions & 18 deletions packages/core/plop/hooks/hook-story-js.txt

This file was deleted.

3 changes: 0 additions & 3 deletions packages/core/plop/hooks/hook-story-scss.txt

This file was deleted.

41 changes: 0 additions & 41 deletions packages/core/plop/hooks/hook-story.txt

This file was deleted.

5 changes: 0 additions & 5 deletions packages/core/plop/hooks/hook.txt

This file was deleted.

45 changes: 0 additions & 45 deletions packages/core/plop/hooks/index.js

This file was deleted.

41 changes: 0 additions & 41 deletions packages/core/plop/stories/index.js

This file was deleted.

30 changes: 0 additions & 30 deletions packages/core/plop/tests/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/core/plopfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import component from "./plop/component/index.js";
import tests from "./plop/tests/index.js";
import stories from "./plop/stories/index.js";
import hooksStory from "./plop/hooks/index.js";

export default function (plop) {
plop.setGenerator("Component", component);
plop.setGenerator("Tests", tests);
plop.setGenerator("Stories", stories);
plop.setGenerator("Hooks Story", hooksStory);
}