-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
125 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name: Build | ||
|
||
on: | ||
- pull_request | ||
- 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 | ||
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-dist: | ||
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 | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 📦 Update compiled files | ||
file_pattern: dist/**/* | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^16.0.0 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Check package version | ||
uses: technote-space/package-version-check-action@v1 | ||
with: | ||
COMMIT_DISABLED: 1 | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | ||
publish-github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^16.0.0 | ||
- name: Check package version | ||
uses: technote-space/package-version-check-action@v1 | ||
with: | ||
COMMIT_DISABLED: 1 | ||
- run: npm install | ||
- run: npm run build | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ^16.0.0 | ||
registry-url: 'https://npm.pkg.github.com' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
update-dist: | ||
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 | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 📦 Update compiled files | ||
file_pattern: dist/**/* | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^16.0.0 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Check package version | ||
uses: technote-space/package-version-check-action@v1 | ||
with: | ||
COMMIT_DISABLED: 1 | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | ||
publish-github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^16.0.0 | ||
- name: Check package version | ||
uses: technote-space/package-version-check-action@v1 | ||
with: | ||
COMMIT_DISABLED: 1 | ||
- run: npm install | ||
- run: npm run build | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ^16.0.0 | ||
registry-url: 'https://npm.pkg.github.com' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 4, | ||
"semi": true, | ||
"singleQuote": true | ||
"trailingComma": "all", | ||
"tabWidth": 4, | ||
"semi": true, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | ||
/> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Alpine Autosize Examples</title> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Alpine Autosize Examples</title> | ||
|
||
<script defer src="../dist/alpine-autosize.min.js"></script> | ||
<script | ||
defer | ||
src="https://unpkg.com/[email protected]/dist/cdn.min.js" | ||
></script> | ||
</head> | ||
<body x-data> | ||
<h1>Examples</h1> | ||
<h2>Default</h2> | ||
<textarea x-autosize aria-label=""></textarea> | ||
<h2>With padding</h2> | ||
<textarea x-autosize.50px aria-label=""></textarea> | ||
</body> | ||
<script defer src="../dist/alpine-autosize.min.js"></script> | ||
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script> | ||
</head> | ||
<body x-data> | ||
<h1>Examples</h1> | ||
<h2>Default</h2> | ||
<textarea x-autosize aria-label=""></textarea> | ||
<h2>With padding</h2> | ||
<textarea x-autosize.50px aria-label=""></textarea> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
{ | ||
"name": "@marcreichel/alpine-autosize", | ||
"version": "0.0.0", | ||
"description": "A simple AlpineJS plugin for autosizing textareas", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Marc Reichel", | ||
"url": "https://marcreichel.dev/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/marcreichel/alpine-autosize.git" | ||
}, | ||
"main": "src/index.js", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/marcreichel/alpine-autosize/issues" | ||
}, | ||
"homepage": "https://github.com/marcreichel/alpine-autosize#readme", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.2", | ||
"@babel/preset-env": "^7.16.11", | ||
"@rollup/plugin-typescript": "^9.0.2", | ||
"@types/alpinejs": "^3.7.1", | ||
"prettier": "^2.7.1", | ||
"rollup": "^2.67.2", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-filesize": "^9.1.2", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"tslib": "^2.4.1" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"src/index.js", | ||
"package.json", | ||
"dist" | ||
] | ||
"name": "@marcreichel/alpine-autosize", | ||
"version": "0.0.0", | ||
"description": "A simple AlpineJS plugin for autosizing textareas", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Marc Reichel", | ||
"url": "https://marcreichel.dev/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/marcreichel/alpine-autosize.git" | ||
}, | ||
"main": "src/index.js", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/marcreichel/alpine-autosize/issues" | ||
}, | ||
"homepage": "https://github.com/marcreichel/alpine-autosize#readme", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.2", | ||
"@babel/preset-env": "^7.16.11", | ||
"@rollup/plugin-typescript": "^9.0.2", | ||
"@types/alpinejs": "^3.7.1", | ||
"prettier": "^2.7.1", | ||
"rollup": "^2.67.2", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-filesize": "^9.1.2", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"tslib": "^2.4.1" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"src/index.js", | ||
"package.json", | ||
"dist" | ||
] | ||
} |