Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Reformat of how to create a component section in the main readme file (#2098)

Anton89a498f95390
diff --git a/README.md b/README.md
index 1be77f305..976f4f80e 100644
--- a/README.md
+++ b/README.md
@@ -179,6 +179,7 @@ To create a component you can run:
# Make sure you have run `pnpm install` at least once before.
pnpm run create:component [component name in PascalCase]
for example: pnpm run create:component VButtonGreen
+```
This command will create a component file, a story file for the component, a
unit test file, and a regression test file. It also adds the component name to
@@ -187,26 +188,31 @@ working with. We use the
[itsjonq/remake](https://www.npmjs.com/package/@itsjonq/remake?activeTab=readme)
package to create files out of templates.
-You can also create all those files manually by running the following
-commands:
+You can also create all those files manually by running the following commands:
+
+<b>create a component file </b>
+```
+pnpm run create:component-sfc --output=[path] --name=[component name]
```
-create a component file: pnpm run create:component-sfc --output=[path]
---name=[component name]
+<b>create a story file </b>
-create a story file: pnpm run create:story --output=[path] --name=[component
-name]
+```
+pnpm run create:story --output=[path] --name=[component name]
+```
-create a component unit test file: pnpm run create:component-unit-test
---output=[path] --name=[component name] --fileName=[component name in
-kebab-case]
+<b>create a component unit test file</b>
-create a component regression test file: pnpm run
-create:component-storybook-test --output=[path] --name=[component name
-kebab-case] --fileName=[component name in kebab-case]
+```
+pnpm run create:component-unit-test --output=[path] --name=[component name] --fileName=[component name in kebab-case]
+```
-````
+<b>create a component regression test file</b>
+
+```
+pnpm run create:component-storybook-test --output=[path] --name=[component name kebab-case] --fileName=[component name in kebab-case]
+```
### CSS Framework
@@ -235,7 +241,7 @@ you wish to build the production image for yourself, run the following:
```shell
pnpm docker:build
-````
+```
You can also find the latest `openverse-frontend` images on our
[GitHub packages page](https://github.com/WordPress/openverse-frontend/pkgs/container/openverse-frontend).