Skip to content

Commit

Permalink
Revert "👷 Add Prettier CI pipeline"
Browse files Browse the repository at this point in the history
This reverts commit 813fb94.
  • Loading branch information
marcreichel committed Jan 8, 2023
1 parent 92fdea1 commit 7fbe3c4
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 148 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
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
15 changes: 0 additions & 15 deletions .github/workflows/prettier.yml

This file was deleted.

104 changes: 52 additions & 52 deletions .github/workflows/publish.yml
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 }}
8 changes: 4 additions & 4 deletions .prettierrc.json
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
}
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
Include the following `<script>` tag in the `<head>` of your document, just before Alpine.

```html
<script
src="https://cdn.jsdelivr.net/npm/@marcreichel/alpine-autosize@latest/dist/alpine-autosize.min.js"
defer
></script>
<script src="https://cdn.jsdelivr.net/npm/@marcreichel/alpine-autosize@latest/dist/alpine-autosize.min.js" defer></script>
```

### NPM
Expand Down
39 changes: 17 additions & 22 deletions examples/index.html
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>
82 changes: 41 additions & 41 deletions package.json
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"
]
}

0 comments on commit 7fbe3c4

Please sign in to comment.