1153331cbbaa66a88645d15c6e949432210d4acc
Thanks @florian-lefebvre! - Allows extending Alpine using the new entrypoint
configurationYou can extend Alpine by setting the entrypoint
option to a root-relative import specifier (for example, entrypoint: "/src/entrypoint"
).
The default export of this file should be a function that accepts an Alpine instance prior to starting, allowing the use of custom directives, plugins and other customizations for advanced use cases.
// astro.config.mjs
import { defineConfig } from 'astro/config';
import alpine from '@astrojs/alpinejs';
export default defineConfig({
// ...
integrations: [alpine({ entrypoint: '/src/entrypoint' })],
});
// src/entrypoint.ts
import type { Alpine } from 'alpinejs'
export default (Alpine: Alpine) => {
Alpine.directive('foo', el => {
el.textContent = 'bar';
})
}
1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates README6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CI#8188 d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
#8179 6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate
1eae2e3f7
Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.a13e9d7e3
Thanks @Yan-Thomas! - Consistency improvements to several package descriptionsafbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 1463cd9d89e
Thanks @mohammed-elhaouari! - Update homepage link17e217856
Thanks @mohammed-elhaouari! - add renderer category to alpinejs package keywords7310e8a17
Thanks @FredKSchott! - Add new official Alpine.js integration