mirror of
https://github.com/CodeF53/personal-site.git
synced 2024-09-20 06:10:34 +00:00
switch to bun
This commit is contained in:
parent
422fe1e396
commit
edebf98aa8
4 changed files with 7 additions and 17548 deletions
19
.github/workflows/nuxtjs.yml
vendored
19
.github/workflows/nuxtjs.yml
vendored
|
@ -31,19 +31,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Node
|
- name: Setup Bun
|
||||||
uses: actions/setup-node@v3
|
uses: oven-sh/setup-bun@v1
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
bun-version: latest
|
||||||
cache: npm
|
|
||||||
# - name: Setup Pages
|
|
||||||
# uses: actions/configure-pages@v3
|
|
||||||
# with:
|
|
||||||
# # Automatically inject router.base in your Nuxt configuration file and set
|
|
||||||
# # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/).
|
|
||||||
# #
|
|
||||||
# # You may remove this line if you want to manage the configuration yourself.
|
|
||||||
# static_site_generator: nuxt
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
@ -54,9 +45,9 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-nuxt-build-
|
${{ runner.os }}-nuxt-build-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: bun install --frozen-lockfile
|
||||||
- name: Static HTML export with Nuxt
|
- name: Static HTML export with Nuxt
|
||||||
run: npm run generate
|
run: bun generate
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
17532
package-lock.json
generated
17532
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -20,7 +20,7 @@
|
||||||
"@antfu/eslint-config": "^1.0.0",
|
"@antfu/eslint-config": "^1.0.0",
|
||||||
"@nuxt/devtools": "latest",
|
"@nuxt/devtools": "latest",
|
||||||
"eslint": "^8.52.0",
|
"eslint": "^8.52.0",
|
||||||
"lint-staged": "^15.0.2",
|
"lint-staged": "^15.2.0",
|
||||||
"nuxt": "^3.8.0",
|
"nuxt": "^3.8.0",
|
||||||
"nuxt-icon": "^0.6.5",
|
"nuxt-icon": "^0.6.5",
|
||||||
"nuxt-lodash": "^2.5.3",
|
"nuxt-lodash": "^2.5.3",
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"vue-tsc": "^1.8.22"
|
"vue-tsc": "^1.8.22"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"simple-git-hooks": {
|
||||||
"pre-commit": "npx lint-staged"
|
"pre-commit": "bunx lint-staged"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "eslint --fix"
|
"*": "eslint --fix"
|
||||||
|
|
Loading…
Reference in a new issue