@astrojs/alpinejs
Advanced tools
Comparing version 0.1.0 to 0.1.1
# @astrojs/alpinejs | ||
## 0.1.1 | ||
### Patch Changes | ||
- [#4501](https://github.com/withastro/astro/pull/4501) [`17e217856`](https://github.com/withastro/astro/commit/17e2178568d5a5a8134743bfb87c62f4c04979e5) Thanks [@mohammed-elhaouari](https://github.com/mohammed-elhaouari)! - add renderer category to alpinejs package keywords | ||
## 0.1.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@astrojs/alpinejs", | ||
"description": "The official Alpine.js integration for Astro.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "module", | ||
@@ -17,2 +17,4 @@ "types": "./dist/index.d.ts", | ||
"astro-component", | ||
"renderer", | ||
"alpinejs", | ||
"performance" | ||
@@ -31,3 +33,3 @@ ], | ||
"devDependencies": { | ||
"astro": "1.0.7", | ||
"astro": "1.1.0", | ||
"astro-scripts": "0.0.7" | ||
@@ -34,0 +36,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# @astrojs/alpinejs ⚛️ | ||
# @astrojs/alpinejs | ||
@@ -28,3 +28,3 @@ This **[Astro integration][astro-integration]** adds [Alpine.js](https://alpinejs.dev/) to your project so that you can use Alpine.js anywhere on your page. | ||
Then, restart the dev server by typing `CTRL-C` and then `npm run astro dev` in the terminal window that was running Astro. | ||
Finally, in the terminal window running Astro, press `CTRL+C` and then type `npm run astro dev` to restart the dev server. | ||
@@ -39,3 +39,3 @@ ### Manual Install | ||
Most package managers will install associated peer dependencies as well. Still, if you see a "Cannot find package 'alpinejs'" (or similar) warning when you start up Astro, you'll need to install Alpine.js yourself: | ||
Most package managers will install associated peer dependencies as well. However, if you see a "Cannot find package 'alpinejs'" (or similar) warning when you start up Astro, you'll need to manually install Alpine.js yourself: | ||
@@ -48,5 +48,4 @@ ```sh | ||
__`astro.config.mjs`__ | ||
```js | ||
```js title="astro.config.mjs" ins={2} "alpine()" | ||
import { defineConfig } from 'astro/config'; | ||
@@ -65,3 +64,3 @@ import alpine from '@astrojs/alpinejs'; | ||
Once the integration is installed, you can use [Alpine.js](https://alpinejs.dev/) directivers and syntax inside any Astro component. The Alpine.js script is automatically added and enabled on every page of your website. | ||
Once the integration is installed, you can use [Alpine.js](https://alpinejs.dev/) directives and syntax inside any Astro component. The Alpine.js script is automatically added and enabled on every page of your website. | ||
@@ -76,3 +75,3 @@ Check our [Astro Integration Documentation][astro-integration] for more on integrations. | ||
```astro | ||
```astro title="src/pages/index.astro" | ||
<!-- Example: Load AlpineJS on a single page. --> | ||
@@ -79,0 +78,0 @@ <script> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10764
108