Skip to content

Commit

Permalink
Merge 7f65220 into aa33563
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 6, 2022
2 parents aa33563 + 7f65220 commit 606ce2d
Show file tree
Hide file tree
Showing 10 changed files with 3,099 additions and 2,421 deletions.
72 changes: 0 additions & 72 deletions .github/ci.yml

This file was deleted.

15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "*"
- name: Get yarn cache directory path
Expand All @@ -33,7 +33,7 @@ jobs:
yarn dedupe --check
- name: Check or update Yarn cache
run: |
yarn install --immutable --skip-builds
yarn install --immutable --mode=skip-build
test:
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
needs: prepare-yarn-cache
Expand All @@ -42,11 +42,17 @@ jobs:
matrix:
node-version: ["*", 14, 12]
os: ["ubuntu-latest", "windows-latest"]
hexo-version: [6]
include:
# Legacy hexo versions
- node-version: 12
os: ubuntu-latest
hexo-version: 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest # Run yarn on latest node
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "*" # Build Babel on latest node LTS versions
- name: Get yarn cache directory path
Expand All @@ -59,8 +65,9 @@ jobs:
- name: Install
run: |
yarn install
yarn add --dev hexo@${{ matrix.hexo-version }}
- name: Use Node.js ${{ matrix.node-version }} # Checkout node version for test executor
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Test
Expand Down
14 changes: 8 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jspm_packages
# Built lib
/lib/

# Yarn 2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.js
# Yarn 3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.1.cjs

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions .yarn/releases/yarn-berry.cjs

This file was deleted.

3 changes: 1 addition & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
yarnPath: ".yarn/releases/yarn-berry.cjs"
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.1.1.cjs
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# hexo-offline

[![npm version](https://img.shields.io/npm/v/hexo-offline.svg?style=flat-square)](https://www.npmjs.com/package/hexo-offline)
![Build Status](https://img.shields.io/github/workflow/status/JLHwung/hexo-offline/ci.svg?style=flat-square)
![Build Status](https://img.shields.io/github/workflow/status/JLHwung/hexo-offline/CI.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/JLHwung/hexo-offline.svg?style=flat-square)](https://coveralls.io/github/JLHwung/hexo-offline)
[![Dependencies Status](https://img.shields.io/david/JLHwung/hexo-offline.svg?style=flat-square)](https://david-dm.org/JLHwung/hexo-offline)
[![Dev Dependencies Status](https://img.shields.io/david/dev/JLHwung/hexo-offline.svg?style=flat-square)](https://david-dm.org/JLHwung/hexo-offline?type=dev)

hexo-offline is intended to provide [offline experience](https://web.dev/progressive-web-apps/) for [hexo](https://hexo.io) built static website. It uses _ServiceWorker_ under the hood. Simply install this plugin to your website and it should be offline ready by caching most of static assets.

Expand Down
4 changes: 1 addition & 3 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"presets": [
[
"@babel/preset-env",
{
"targets": { "node": "12.17" }
}
{ "bugfixes": true, "targets": { "node": "12.17" } }
]
],
"overrides": [
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
"prepublishOnly": "npm run test && npm run clean && npm run build"
},
"dependencies": {
"workbox-build": "^6.1.0"
"workbox-build": "^6.4.2"
},
"devDependencies": {
"@babel/cli": "^7.8.0",
"@babel/core": "^7.8.0",
"@babel/preset-env": "^7.8.0",
"husky": "^4.3.8",
"jest": "^26.0.0",
"lint-staged": "^10.5.3",
"prettier": "^2.0.0",
"husky": "^7.0.4",
"jest": "^27.4.7",
"lint-staged": "^12.1.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"terser": "^5.5.1",
"terser": "^5.10.0",
"yaspeller-ci": "^1.0.2"
},
"peerDependencies": {
"hexo": "^5.0.0"
"hexo": "^5.0.0 || ^6.0.0"
},
"engines": {
"node": ">=12"
Expand Down
Loading

0 comments on commit 606ce2d

Please sign in to comment.