Skip to content

Commit

Permalink
♻️ Migrate to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Nov 5, 2022
1 parent 1c1fa35 commit a141bee
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 116 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build

on:
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ^16.0.0
- run: npm install
- run: npm run build
5 changes: 0 additions & 5 deletions builds/cdn.js

This file was deleted.

5 changes: 5 additions & 0 deletions builds/cdn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import autosize from '../src/index';

document.addEventListener('alpine:init', (): void => {
autosize((<any>window).Alpine);
});
97 changes: 43 additions & 54 deletions dist/alpine-autosize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpine-autosize.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/alpine-autosize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a141bee

Please sign in to comment.