Skip to content

Commit

Permalink
Replace npm commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Apr 6, 2024
1 parent d84a31b commit 9117988
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/advanced/csp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/csp
npm add @alpinejs/csp
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/advanced/extending.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Alpine.magic('clipboard', () => (subject) => {

Теперь вы должны убедиться, насколько удобно и просто регистрировать свои собственные директивы и магические функции в вашем приложении, но как насчёт того, чтобы поделиться этой функциональностью с другими через пакет NPM или что-то в этом роде?

Вы можете быстро начать работу с официальным пакетом плагинов Alpine. Это так же просто, как клонировать репозиторий и запустить `npm install && npm run build`, чтобы создать плагин.
Вы можете быстро начать работу с официальным пакетом плагинов Alpine. Это так же просто, как клонировать репозиторий и запустить `npm add && npm run build`, чтобы создать плагин.

В демонстрационных целях давайте создадим с нуля воображаемый плагин Alpine под названием `Foo`, который включает в себя как директиву (`x-foo`), так и магию (`$foo`).

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/essentials/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const requiredCode = `<script defer src="https://cdn.jsdelivr.net/npm/alp
<Tabs>
<TabItem label="npm">
```shell
npm install alpinejs
npm add alpinejs
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/anchor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/anchor
npm add @alpinejs/anchor
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/collapse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/collapse
npm add @alpinejs/collapse
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/focus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/focus
npm add @alpinejs/focus
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/intersect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/intersect
npm add @alpinejs/intersect
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/mask.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/mask
npm add @alpinejs/mask
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/morph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/morph
npm add @alpinejs/morph
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/persist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install @alpinejs/persist
npm add @alpinejs/persist
```
</TabItem>
<TabItem label="pnpm">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/plugins/slug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs>
<TabItem label="npm">
```shell
npm install alpinejs-slug
npm add alpinejs-slug
```
</TabItem>
<TabItem label="pnpm">
Expand Down

0 comments on commit 9117988

Please sign in to comment.