Skip to content

Commit

Permalink
chore: repo maintenance 🚢
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jun 1, 2024
1 parent 8c7d33b commit 78e4994
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 60 deletions.
12 changes: 12 additions & 0 deletions .github/SPONSORS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: mesqueeb
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
2 changes: 1 addition & 1 deletion .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Preview docs
on:
pull_request:
branches: production
branches: $default-branch
paths:
- docs/**
- '*rc'
Expand Down
74 changes: 37 additions & 37 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Test
on:
push:
branches: 'production'
paths:
- src/**
- test/**
- '*.js'
- '*.ts'
- '*.json'
- .github/workflows/test.yml
pull_request:
branches: 'production'
paths:
- src/**
- test/**
- '*.js'
- '*.ts'
- '*.json'
- .github/workflows/test.yml
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
node-version: ['18', '20']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
name: Test
on:
push:
branches: $default-branch
paths:
- src/**
- test/**
- '*.js'
- '*.ts'
- '*.json'
- .github/workflows/test.yml
pull_request:
branches: $default-branch
paths:
- src/**
- test/**
- '*.js'
- '*.ts'
- '*.json'
- .github/workflows/test.yml
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
node-version: ['18', '20']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2, // make sure this is the same as .prettierrc
"editor.tabSize": 2,
"editor.insertSpaces": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,4 @@ function isAnyObject(payload) {
// etc...
```

See the full source code [here](https://github.com/mesqueeb/is-what/blob/production/src/index.ts).
See the full source code [here](https://github.com/mesqueeb/is-what/blob/main/src/index.ts).
36 changes: 16 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
".": "./dist/index.js",
"./*": "./dist/*"
},
"files": [
"dist"
],
"engines": {
"node": ">=18"
},
Expand All @@ -21,10 +18,17 @@
"build:docs": "typedoc",
"release": "npm run lint && npm run build && np"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mesqueeb/is-what.git"
"devDependencies": {
"@cycraft/eslint": "^0.3.0",
"@cycraft/tsconfig": "^0.1.2",
"del-cli": "^5.1.0",
"np": "^10.0.5",
"typedoc": "^0.25.13",
"vitest": "^1.6.0"
},
"files": [
"dist"
],
"keywords": [
"javascript",
"typescript",
Expand All @@ -46,21 +50,13 @@
"is-plain-obj",
"is-plain-object"
],
"author": "Luca Ban - Mesqueeb",
"author": "Luca Ban - Mesqueeb (https://cycraft.co)",
"funding": "https://github.com/sponsors/mesqueeb",
"license": "MIT",
"homepage": "https://github.com/mesqueeb/is-what#readme",
"devDependencies": {
"@cycraft/eslint": "^0.0.2",
"@cycraft/tsconfig": "^0.1.2",
"del-cli": "^5.1.0",
"np": "^10.0.5",
"typedoc": "^0.25.13",
"vitest": "^1.6.0"
"repository": {
"type": "git",
"url": "https://github.com/mesqueeb/is-what.git"
},
"np": {
"branch": "production",
"publish": false,
"yarn": false
}
"homepage": "https://github.com/mesqueeb/is-what#readme",
"bugs": "https://github.com/mesqueeb/is-what/issues"
}

0 comments on commit 78e4994

Please sign in to comment.