Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove dashboard tooling config

dominik-zeglen5d29517d5ef7
diff --git a/.plop/component/componentName.class.tsx.hbs b/.plop/component/componentName.class.tsx.hbs
deleted file mode 100644
index 7b40570d35..0000000000
--- a/.plop/component/componentName.class.tsx.hbs
+++ /dev/null
@@ -1,45 +0,0 @@
-{{#if styled}}
-import {
- createStyles,
- Theme,
- withStyles,
- WithStyles
-} from "@material-ui/core/styles";
-{{/if}}
-import React from "react";
-
-export interface {{ properCase name }}Props {
-
-}
-interface {{ properCase name }}State {
-
-}
-
-{{#if styled}}
-const styles = (theme: Theme) => createStyles({
-
-});
-const {{ properCase name }} = withStyles(styles, { name: "{{ properCase name }}" })(
- class Inner{{ properCase name }} extends React.Component<{{ properCase name }}Props, {{ properCase name }}State> {
- state: {{ properCase name }}State = {
-
- }
-
- render() {
-
- }
- }
-);
-{{else}}
-class {{ properCase name }} extends React.Component<{{ properCase name }}Props, {{ properCase name }}State> {
- state: {{ properCase name }}State = {
-
- }
-
- render() {
-
- }
-}
-{{/if}}
-{{ properCase name }}.displayName = "{{ properCase name }}";
-export default {{ properCase name }};
diff --git a/.plop/component/componentName.fc.tsx.hbs b/.plop/component/componentName.fc.tsx.hbs
deleted file mode 100644
index 7c7eb30222..0000000000
--- a/.plop/component/componentName.fc.tsx.hbs
+++ /dev/null
@@ -1,26 +0,0 @@
-{{#if styled}}
-import {
- createStyles,
- Theme,
- withStyles,
- WithStyles
-} from "@material-ui/core/styles";
-{{/if}}
-import React from "react";
-
-export interface {{ properCase name }}Props {
-
-}
-
-{{#if styled}}
-const styles = (theme: Theme) => createStyles({
-
-});
-const {{ properCase name }} = withStyles(styles, { name: "{{ properCase name }}" })(
- ({ classes }: {{ properCase name }}Props & WithStyles<typeof styles>) => <div />
-);
-{{else}}
-const {{ properCase name }}: React.StatelessComponent<{{ properCase name }}Props> = () => <div />;
-{{/if}}
-{{ properCase name }}.displayName = "{{ properCase name }}";
-export default {{ properCase name }};
diff --git a/.plop/component/componentName.story.tsx.hbs b/.plop/component/componentName.story.tsx.hbs
deleted file mode 100644
index 94b91b7596..0000000000
--- a/.plop/component/componentName.story.tsx.hbs
+++ /dev/null
@@ -1,15 +0,0 @@
-import { storiesOf } from "@storybook/react";
-import React from "react";
-
-import {{ properCase name }}, {
- {{ properCase name }}Props
-} from "../../../{{ section }}/components/{{ properCase name }}";
-import Decorator from "../../Decorator";
-
-const props: {{ properCase name }}Props = {
-
-};
-
-storiesOf("{{ sentenceCase section }} / {{ name }}", module)
- .addDecorator(Decorator)
- .add("default", () => <{{ properCase name }} {...props} />);
diff --git a/.plop/component/index.ts.hbs b/.plop/component/index.ts.hbs
deleted file mode 100644
index 2c10773b73..0000000000
--- a/.plop/component/index.ts.hbs
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default } from './{{ name }}';
-export * from './{{ name }}';
\ No newline at end of file
diff --git a/.plop/plopfile.js b/.plop/plopfile.js
deleted file mode 100644
index 67650ac7d3..0000000000
--- a/.plop/plopfile.js
+++ /dev/null
@@ -1,75 +0,0 @@
-const ROOT = "../saleor/static/dashboard-next";
-
-const componentGeneratorConfig = {
- description: "New component",
- prompts: [
- {
- type: "input",
- name: "name",
- message: "Component name?"
- },
- {
- type: "input",
- name: "section",
- message: "Component path?",
- default: 'components'
- },
- {
- type: "confirm",
- name: "fc",
- message: "Is it a functional component?",
- default: "y"
- },
- {
- type: "confirm",
- name: "styled",
- message: "Is it a styled component?",
- default: "y"
- },
- {
- type: "confirm",
- name: "story",
- message: "Create story?",
- default: "y"
- }
- ],
- actions: ({ fc, section, story }) => {
- const actions = [
- {
- type: "add",
- path:
- section === "components"
- ? `${ROOT}/{{ dashCase section }}/{{ properCase name }}/index.ts`
- : `${ROOT}/{{ dashCase section }}/components/{{ properCase name }}/index.ts`,
- templateFile: "./component/index.ts.hbs",
- abortOnFail: true
- },
- {
- type: "add",
- path:
- section === "components"
- ? `${ROOT}/{{ dashCase section }}/{{ properCase name }}/{{ properCase name }}.tsx`
- : `${ROOT}/{{ dashCase section }}/components/{{ properCase name }}/{{ properCase name }}.tsx`,
- templateFile: fc
- ? "./component/componentName.fc.tsx.hbs"
- : "./component/componentName.class.tsx.hbs",
- abortOnFail: true
- }
- ];
-
- if (story) {
- actions.push({
- type: "add",
- path: `${ROOT}/storybook/stories/{{ dashCase section }}/{{ properCase name }}.tsx`,
- templateFile: "./component/componentName.story.tsx.hbs",
- abortOnFail: true
- });
- }
-
- return actions;
- }
-};
-
-module.exports = plop => {
- plop.setGenerator("component", componentGeneratorConfig);
-};
diff --git a/.testcafe/exampleTest.js b/.testcafe/exampleTest.js
deleted file mode 100644
index c147296549..0000000000
--- a/.testcafe/exampleTest.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Selector } from "testcafe";
-
-fixture("Example test").page("http://localhost:8000/dashboard/next");
-
-test("User can log in", async t => {
- await t
- .typeText('[name="email"]', "[email protected]")
- .typeText('[name="password"]', "admin")
- .click('[type="submit"]');
-
- const header = await Selector('[data-tc="home-header"]').exists;
- await t.expect(header).ok();
-});