Skip to content

Commit ee870c3

Browse files
committed
Move prettier to action
1 parent 7fc2518 commit ee870c3

File tree

6 files changed

+29
-366
lines changed

6 files changed

+29
-366
lines changed

.github/workflows/test.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build_and_test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version-file: ".nvmrc"
17+
- name: Install dependencies
18+
run: yarn
19+
- name: Run prettier list
20+
run: yarn prettier:list

.husky/.gitignore

-1
This file was deleted.

.husky/pre-commit

-4
This file was deleted.

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ All commits to the `main` branch get auto-deployed to the live website [running
1313
The base branch is `next`. All PRs should target this branch.
1414

1515
To initiate a release:
16-
* Create a new branch, from `next` named `release/x.y.z`
17-
* Bump the version in `package.json` to `x.y.z`
18-
* Merge `release/x.y.z` to `main`. This will trigger the [deployment](#deployment).
19-
* Merge `main` into `next`
16+
17+
- Create a new branch, from `next` named `release/x.y.z`
18+
- Bump the version in `package.json` to `x.y.z`
19+
- Merge `release/x.y.z` to `main`. This will trigger the [deployment](#deployment).
20+
- Merge `main` into `next`
2021

2122
## Getting Started
2223

@@ -35,7 +36,7 @@ Next, install the required dependencies and start the server:
3536
yarn install
3637
yarn start
3738
# Or, if you'd like a different port:
38-
# PORT=5000 yarn start
39+
# PORT=5000 yarn start
3940
```
4041

4142
You can view your running local application at this URL:
@@ -65,4 +66,4 @@ If you find bugs, have feature requests or questions, please
6566

6667
Microformats Parser Website Node is dedicated to the public domain using Creative Commons -- CC0 1.0 Universal.
6768

68-
http://creativecommons.org/publicdomain/zero/1.0
69+
http://creativecommons.org/publicdomain/zero/1.0

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"scripts": {
1111
"start": "node index.js",
12-
"prepare": "husky install"
12+
"prettier:list": "prettier '**/*.{js,ts,json,md,html}' --list-different",
13+
"prettier:fix": "prettier '**/*.{js,ts,json,md,html}' --write"
1314
},
1415
"dependencies": {
1516
"@yarnpkg/lockfile": "^1.1.0",
@@ -18,8 +19,6 @@
1819
"microformats-parser": "^1.5.2"
1920
},
2021
"devDependencies": {
21-
"husky": ">=6",
22-
"lint-staged": ">=10",
2322
"prettier": "^3.0.3"
2423
},
2524
"lint-staged": {

0 commit comments

Comments
 (0)