Skip to content

Commit

Permalink
chore: remove unused plop actions
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Aug 29, 2024
1 parent 8a31b67 commit e9d692b
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 195 deletions.
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);
}

0 comments on commit e9d692b

Please sign in to comment.