chore(lint): Prettier fix
This commit is contained in:
parent
eb70732704
commit
317c62a247
1 changed files with 7 additions and 26 deletions
|
@ -17,7 +17,7 @@ Looking for inspiration? Check out some of [our favorite themes & components][/t
|
||||||
## Creating a package
|
## Creating a package
|
||||||
|
|
||||||
> Before diving in, it will help have a basic understanding of:
|
> Before diving in, it will help have a basic understanding of:
|
||||||
>
|
>
|
||||||
> - [Node Modules](https://docs.npmjs.com/creating-node-js-modules)
|
> - [Node Modules](https://docs.npmjs.com/creating-node-js-modules)
|
||||||
> - [JSON Manifest (`package.json`)](https://docs.npmjs.com/creating-a-package-json-file)
|
> - [JSON Manifest (`package.json`)](https://docs.npmjs.com/creating-a-package-json-file)
|
||||||
> - [Workspaces](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#workspaces)
|
> - [Workspaces](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#workspaces)
|
||||||
|
@ -43,10 +43,7 @@ This is configured in the project root’s `package.json` file.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "my-project",
|
"name": "my-project",
|
||||||
"workspaces": [
|
"workspaces": ["demo", "packages/*"]
|
||||||
"demo",
|
|
||||||
"packages/*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -73,16 +70,8 @@ The `package.json` in the package directory includes all of the information rela
|
||||||
"./astro": "./MyAstroComponent.astro",
|
"./astro": "./MyAstroComponent.astro",
|
||||||
"./react": "./MyReactComponent.jsx"
|
"./react": "./MyReactComponent.jsx"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"],
|
||||||
"index.js",
|
"keywords": ["astro-component", "... etc", "... etc"]
|
||||||
"MyAstroComponent.astro",
|
|
||||||
"MyReactComponent.jsx"
|
|
||||||
],
|
|
||||||
"keywords": [
|
|
||||||
"astro-component",
|
|
||||||
"... etc",
|
|
||||||
"... etc"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -92,7 +81,7 @@ The short description of your component used to help others know what it does.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"description": "An Astro Element Generator",
|
"description": "An Astro Element Generator"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -128,11 +117,7 @@ In this example, importing `my-component` would use `index.js`, while importing
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"files": [
|
"files": ["index.js", "MyAstroComponent.astro", "MyReactComponent.jsx"]
|
||||||
"index.js",
|
|
||||||
"MyAstroComponent.astro",
|
|
||||||
"MyReactComponent.jsx"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -144,11 +129,7 @@ We recommend adding the `astro-component` as a special keyword to maximize its d
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": ["astro-component", "... etc", "... etc"]
|
||||||
"astro-component",
|
|
||||||
"... etc",
|
|
||||||
"... etc"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue