Skip to content

Commit

Permalink
docs: updated README (Shopify#20)
Browse files Browse the repository at this point in the history
## Context

Updated the `README.md` in all packages with the correct information for
the `.npmrc`

## Changes

Added the new config into the `README.md`

## Checklist

- [x] My code follows the style guidelines of this project
- [x] I've performed a self-review of my own code
- [x] I've added a changeset if this PR contains user-facing or
noteworthy changes
- [x] I've commented my code, particularly in hard-to-understand areas
- [x] I've made corresponding changes to the documentation
- [x] I've tested my code for breaking changes and added the
corresponding
      footer in this PR if needed
  • Loading branch information
remcolakens authored Jun 7, 2023
1 parent e6c4f96 commit eb993b1
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 29 deletions.
12 changes: 12 additions & 0 deletions .changeset/empty-pumpkins-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@code-internet-applications/eslint-config-code': patch
'@code-internet-applications/tailwind-utils': patch
'@code-internet-applications/prettier-config': patch
'@code-internet-applications/tailwind-config': patch
'@code-internet-applications/postcss-config': patch
'@code-internet-applications/accordion': patch
'@code-internet-applications/react': patch
'@code-internet-applications/tsconfig': patch
---

updated the README docs with the correct .npmrc information
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@shopify:registry=https://registry.npmjs.com
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*

auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
50 changes: 31 additions & 19 deletions packages/components/accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ pnpm add @code-internet-applications/accordion

```
import {
Accordion,
AccordionItem,
AccordionButton,
AccordionPanel,
} from "@code-internet-applications/accordion"
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@code-internet-applications/accordion';
```

## Component
Expand All @@ -31,20 +31,26 @@ import {
## Usage

```
<Accordion>
<AccordionItem>
<h2>
<AccordionButton>Section 1 title</AccordionButton>
</h2>
<AccordionPanel>Panel 1</AccordionPanel>
</AccordionItem>
<AccordionItem>
<h2>
<AccordionButton>Section 2 title</AccordionButton>
</h2>
<AccordionPanel>Panel 2</AccordionPanel>
</AccordionItem>
<Accordion type="single" collapsible className="w-full">
<AccordionItem value="item-1">
<AccordionTrigger>Is it accessible?</AccordionTrigger>
<AccordionContent>
Yes. It adheres to the WAI-ARIA design pattern.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
<AccordionTrigger>Is it styled?</AccordionTrigger>
<AccordionContent>
Yes. It comes with default styles that matches the other components
aesthetic.
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionTrigger>Is it animated?</AccordionTrigger>
<AccordionContent>
Yes. Its animated by default, but you can disable it if you prefer.
</AccordionContent>
</AccordionItem>
</Accordion>
```

Expand All @@ -62,4 +68,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/components/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/config/eslint-config-code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/config/postcss-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/config/prettier-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
12 changes: 11 additions & 1 deletion packages/config/tailwind-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ file as follows:

```
import type { Config } from 'tailwindcss';
import { tailwindConfig } from '../../packages/config/tailwind-config/tailwind.config';
import { tailwindConfig } from '@code-internet-applications/tailwind-config';
export default {
presets: [tailwindConfig],
content: [
'./app/**/*.{js,jsx,ts,tsx}',
'./node_modules/@code-internet-applications/**/**/*.js',
],
} satisfies Config;
```
Expand All @@ -37,4 +41,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/config/tsconfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
6 changes: 6 additions & 0 deletions packages/utilities/tailwind-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*
auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```
36 changes: 27 additions & 9 deletions plop/component/README.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,30 @@

{{description}}

## Installation ``` pnpm add @code-internet-applications/{{dashCase
componentName
}}
``` ## Contribution See the [contributing
guidelines](https://github.com/code-internet-applications/cbt-hydrogen/blob/main/CONTRIBUTING.md)
for more details. ## Troubleshooting To ensure that you can access the packages
from the GitHub package registry, make sure to add the following line to your
`.npmrc` file in the root directory of your project: ```
@code-internet-applications:registry=https://npm.pkg.github.com ```
## Installation

```
pnpm add @code-internet-applications/{{dashCase componentName}}
```

## Contribution

See the
[contributing guidelines](https://github.com/code-internet-applications/cbt-hydrogen/blob/main/CONTRIBUTING.md)
for more details.

## Troubleshooting

To ensure that you can access the packages from the GitHub package registry,
make sure to add the following line to your `.npmrc` file in the root directory
of your project:

```
@code-internet-applications:registry=https://npm.pkg.github.com
public-hoist-pattern[]=@code-internet-applications/*

auto-install-peers=true
strict-peer-dependencies=false
enable-pre-post-scripts=true
node-linker=hoisted
```

0 comments on commit eb993b1

Please sign in to comment.