-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
8,029 additions
and
11,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build Production Page | ||
on: | ||
push: | ||
# 由于其它分支为本地测试打包,故只 CI 主线变更 | ||
branches: [ wu_main ] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.txt' | ||
- '.github/**' | ||
- '!.github/workflows/**' | ||
jobs: | ||
setup: | ||
name: Setup Project Info | ||
runs-on: ubuntu-latest | ||
outputs: | ||
DIST_SUFFIX: ${{ steps.get-suffix.outputs.DIST_SUFFIX }} | ||
steps: | ||
- name: 🧐 Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
|
||
- name: 📙 Get Package Suffix | ||
id: get-suffix | ||
run: | | ||
# 此处通过 jq 从 package.json 获取版本,否则在 depth | ||
# 为 1 时通过 git tag 所读取的版本不准确 | ||
sudo apt-get install jq | ||
VERSION=$(jq -r '.version' ./package.json) | ||
COMMIT_COUNT=$(git rev-list --count HEAD) | ||
BUILD_DATE=$(date "+%y%m%d") | ||
HEAD_SHA=$(git rev-parse --short HEAD) | ||
echo "DIST_SUFFIX=v${VERSION}-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT | ||
build: | ||
name: Build Production Page | ||
needs: setup | ||
env: | ||
DIST_NAME: dist-${{ needs.setup.outputs.DIST_SUFFIX }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🧐 Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '1' | ||
|
||
- name: 🛠️ Setup environment | ||
id: setup | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: ⚙️ Build production pages | ||
id: build | ||
run: | | ||
pnpm install | ||
pnpm add @vue/cli | ||
pnpm build | ||
- name: 🌐 Upload the build | ||
id: upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.DIST_NAME }} | ||
path: dist | ||
retention-days: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,50 @@ | ||
{ | ||
"name": "win-up-to-date", | ||
"version": "0.13.5", | ||
"version": "0.13.6", | ||
"description": "A website project showing the latest status of Windows Insider versions.", | ||
"main": "index.js", | ||
"repository": "https://github.com/crrashh1542/win-up-to-date", | ||
"author": "crrashh1542 <[email protected]>", | ||
"homepage": "https://wutd.crrashh.com", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/crrashh1542/win-up-to-date" | ||
}, | ||
"license": "GPL-3.0", | ||
"private": true, | ||
"bugs": { | ||
"url": "https://github.com/crrashh1542/win-up-to-date/issues" | ||
}, | ||
"main": "./index.js", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"@fluentui/web-components": "^2.5.16", | ||
"axios": "^1.6.7", | ||
"core-js": "^3.35.1", | ||
"js-cookie": "^3.0.5", | ||
"moment": "^2.30.1", | ||
"normalize.css": "^8.0.1", | ||
"vue": "^3.4.18", | ||
"vue-router": "^4.2.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.9", | ||
"@babel/eslint-parser": "^7.23.10", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
"@typescript-eslint/parser": "^6.21.0", | ||
"@fluentui/web-components": "^2.5.16", | ||
"@typescript-eslint/eslint-plugin": "^7.0.1", | ||
"@typescript-eslint/parser": "^7.0.1", | ||
"@vue/cli-plugin-babel": "~5.0.8", | ||
"@vue/cli-plugin-eslint": "~5.0.8", | ||
"@vue/cli-service": "~5.0.8", | ||
"autoprefixer": "^10.4.17", | ||
"axios": "^1.6.7", | ||
"compression-webpack-plugin": "^11.0.0", | ||
"core-js": "^3.36.0", | ||
"eslint": "^8.56.0", | ||
"eslint-plugin-vue": "^9.21.1", | ||
"js-cookie": "^3.0.5", | ||
"less": "^4.2.0", | ||
"less-loader": "^12.2.0", | ||
"moment": "^2.30.1", | ||
"normalize.css": "^8.0.1", | ||
"postcss": "^8.4.35", | ||
"speed-measure-webpack-plugin": "^1.5.0", | ||
"tailwindcss": "^3.4.1", | ||
"vue-clipboard3": "^2.0.0" | ||
"vue": "^3.4.19", | ||
"vue-clipboard3": "^2.0.0", | ||
"vue-router": "^4.2.5" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
|
@@ -61,5 +66,5 @@ | |
"not dead", | ||
"not ie 11" | ||
], | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.