Skip to content

Commit

Permalink
refactor!: many minor corrections (#86)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* ci: change runs-on

* refactor: nuxt cron

---------

Co-authored-by: hywax <[email protected]>
  • Loading branch information
hywax-assistant and hywax authored Dec 29, 2024
1 parent 2374647 commit 428562e
Show file tree
Hide file tree
Showing 18 changed files with 10,648 additions and 9,705 deletions.
3 changes: 0 additions & 3 deletions .commitlintrc.ts

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ on:
- main

jobs:
lint:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -30,17 +27,20 @@ jobs:
with:
node-version: 20

- name: Install dependencies
run: yarn install
- name: Pnpm
uses: pnpm/action-setup@v2
with:
version: 9.15.1
run_install: true

- name: Build prepare
run: yarn dev:prepare
run: pnpm dev:prepare

- name: ESLint
run: yarn run lint
run: pnpm run lint

- name: Type check
run: yarn run typecheck
run: pnpm run typecheck

- name: Prepack
run: yarn run prepack
run: pnpm run prepack
23 changes: 0 additions & 23 deletions .github/workflows/credits.yml

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Documentation site to GitHub Pages
name: Docs

on:
push:
Expand Down Expand Up @@ -27,21 +27,29 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: yarn install

- name: Pnpm
uses: pnpm/action-setup@v2
with:
version: 9.15.1
run_install: true

- name: Build prepare
run: yarn dev:prepare
run: pnpm dev:prepare

- name: Build with VitePress
run: |
yarn docs:build
pnpm docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
commitlint --edit ${1}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
auto-install-peers=true
shamefully-hoist=true
strict-peer-dependencies=false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ A huge thank you to everyone who is helping to improve `nuxt-cron`. Thanks to yo

To become a contributor, please follow our [contributing guide](https://nuxt-cron.hywax.space/community/contributing.html).

<img src="https://raw.githubusercontent.com/hywax/nuxt-cron/main/docs/public/contributors.svg" alt="nuxt-cron" width="100%"/>
<img src="https://contrib.rocks/image?repo=hywax/nuxt-cron" alt="nuxt-cron" width="100%"/>

## License

Expand Down
15 changes: 0 additions & 15 deletions docs/public/contributors.svg

This file was deleted.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "nuxt-cron",
"type": "module",
"version": "1.7.0",
"packageManager": "[email protected]",
"description": "A Nuxt module for cron jobs in your app.",
"license": "MIT",
"repository": {
Expand All @@ -26,43 +27,42 @@
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "yarn lint && yarn prepack && changelogen --release --push && npm publish",
"release": "pnpm lint && pnpm prepack && changelogen --release --push && npm publish",
"typecheck": "nuxi typecheck",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run",
"test:watch": "vitest watch",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"dependencies": {
"@nuxt/kit": "^3.13.2",
"cron": "^3.1.7",
"@nuxt/kit": "^3.15.0",
"cron": "^3.3.1",
"fast-glob": "^3.3.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@hywax/vitepress-yandex-metrika": "^0.4.0",
"@nuxt/devtools": "^1.5.2",
"@nuxt/eslint-config": "^0.5.7",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.13.2",
"@nuxt/test-utils": "^3.14.2",
"@types/node": "^20.16.10",
"@nuxt/schema": "^3.15.0",
"@types/node": "^20.17.10",
"changelogen": "^0.5.7",
"eslint": "^9.12.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"nuxt": "^3.13.2",
"typescript": "^5.6.2",
"vitepress": "^1.3.4",
"vitest": "^2.1.2",
"vue-tsc": "^2.1.6"
"eslint": "^9.17.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"nuxt": "^3.15.0",
"typescript": "^5.7.2",
"vitepress": "^1.5.0",
"vue-tsc": "^2.2.0"
},
"lint-staged": {
"*": "yarn lint:fix"
"*": "pnpm lint:fix"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
1 change: 1 addition & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
compatibilityDate: '2024-12-29',
})
Loading

0 comments on commit 428562e

Please sign in to comment.