Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-diff-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:
jobs:
analyze:
if: github.repository == 'rameel/ramstack.alpinegear.js'
name: Analyze package size changes

runs-on: ubuntu-latest

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ name: Publish
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+"
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+'

permissions:
contents: write

jobs:
publish:
if: github.repository == 'rameel/ramstack.alpinegear.js'
name: "Publish Packages"
name: 'Publish Packages'
runs-on: ubuntu-latest

steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
node-version: '24'
registry-url: 'https://registry.npmjs.org'

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,8 +34,8 @@ jobs:
- name: Publish packages
run: |
for dir in dist/*; do
if [ -d "$dir" ]; then
cd "$dir"
if [ -d '$dir' ]; then
cd '$dir'
npm publish --access public
cd - > /dev/null
fi
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**.js"
- "**.ts"
- "**.json"
- '**.js'
- '**.ts'
- '**.json'

jobs:
main:
if: ${{ !github.event.pull_request.draft }}
name: "Build & Test"
name: 'Build & Test'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.57.0-noble
Expand All @@ -22,21 +22,21 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
node-version: '24'

- name: Checkout
uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci
run: npm ci --include=dev

- name: Build (Debug version)
run: npm run build:debug

- name: "Test: Alpine.js plugins (playwright)"
- name: 'Test: Alpine.js plugins (playwright)'
run: npm run test:playwright
env:
CI: true

- name: "Test: Alpine.js plugins (vitest)"
- name: 'Test: Alpine.js plugins (vitest)'
run: npm run test:vitest
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function create_configuration({ plugin_name, input, format, optimize }) {
[input]: format === "iife"
? `import { listen } from "src/utilities/utils.js";
import __${plugin_name} from "src/plugins/${plugin_name}/index.js";
listen(document, "alpine:init", () => { Alpine.plugin(__${plugin_name}); });`
listen(document, "alpine:init", () => Alpine.plugin(__${plugin_name}));`
: `import plugin from "src/plugins/${plugin_name}/index.js";
export default plugin;
export * from "src/plugins/${plugin_name}/index.js";`
Expand Down