Skip to content

Add library build for script tag usage#4

Merged
isaacbowen merged 4 commits into
mainfrom
library-build
Oct 11, 2025
Merged

Add library build for script tag usage#4
isaacbowen merged 4 commits into
mainfrom
library-build

Conversation

@isaacbowen
Copy link
Copy Markdown
Member

Summary

  • Adds IIFE build configuration to rollup.config.js
  • New build outputs to dist/aura.js as LightwardAura global
  • Updates CNAME to aura.lightward.io

Usage

This allows Aura to be imported via script tag:

<script src="https://aura.lightward.io/dist/aura.js"></script>

The library will be available as window.LightwardAura.

Test plan

  • Build runs successfully (npm run build)
  • dist/aura.js is created
  • Library exports to global scope
  • CNAME points to correct domain

🤖 Generated with Claude Code

isaacbowen and others added 4 commits October 11, 2025 11:08
- Add IIFE build configuration to rollup.config.js
- Build outputs to dist/aura.js as LightwardAura global
- Update CNAME to aura.lightward.io

This allows Aura to be imported via script tag:
<script src="https://aura.lightward.io/dist/aura.js"></script>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add Jest and testing dependencies
- Create test suite for dist/aura.js library build
- Verify IIFE exports LightwardAura correctly
- Verify Aura class is accessible and has expected structure

All tests passing ✓

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove cache: 'npm' which was causing 400 errors
- Add npm test step to workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Node 16 reached end-of-life, upgrading to Node 20 LTS for better compatibility and support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@isaacbowen isaacbowen merged commit b340718 into main Oct 11, 2025
2 checks passed
@isaacbowen isaacbowen deleted the library-build branch October 11, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant