Skip to content

Commit

Permalink
Merge pull request #1304 from 43081j/v4-jg
Browse files Browse the repository at this point in the history
[DRAFT] v4 fixes
  • Loading branch information
paulmillr authored May 23, 2024
2 parents 22a5ec9 + f963c0b commit cdfd50e
Show file tree
Hide file tree
Showing 16 changed files with 5,780 additions and 890 deletions.
13 changes: 7 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "script"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"array-callback-return": "error",
"no-empty": [
"error",
Expand Down Expand Up @@ -47,4 +48,4 @@
"single"
]
}
}
}
2 changes: 2 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: paulmillr
# custom: https://paulmillr.com/funding/
20 changes: 12 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: Lint
on: [push, pull_request]

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
CI: true
FORCE_COLOR: 2

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16"

Expand All @@ -21,6 +28,3 @@ jobs:

- name: Run lint
run: npm run lint

- name: Run dtslint
run: npm run dtslint
28 changes: 18 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: Node CI
on: [push, pull_request]

on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:

env:
CI: true
FORCE_COLOR: 2

jobs:
build:
name: v${{ matrix.node-version }} @ ${{ matrix.os }}
test:
name: Node.js ${{ matrix.version }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [14, 16]
version: [18, 20, 22]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
- run: npm install
- name: Run mocha tests
run: npm run mocha
run: npm run test
23 changes: 23 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Package to npm
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm install -g npm
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.bak
*.log
/.nyc_output/
/coverage/
/node_modules/
/test-fixtures/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ For more detailed changelog, see [`full_changelog.md`](.github/full_changelog.md

Why was chokidar named this way? What's the meaning behind it?

>Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four).
>Chowkidar is a transliteration of a Hindi word meaning 'watchman, gatekeeper', चौकीदार. This ultimately comes from Sanskrit _ चतुष्क_ (crossway, quadrangle, consisting-of-four). This word is also used in other languages like Urdu as (چوکیدار) which is widely used in Pakistan and India.
## License

Expand Down
Loading

0 comments on commit cdfd50e

Please sign in to comment.