Compare commits
3 Commits
274478532e
...
ci/add-jen
| Author | SHA1 | Date | |
|---|---|---|---|
| 8dea27d14a | |||
| 96ddb09ea3 | |||
| 4865ca8392 |
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -5,8 +5,5 @@
|
|||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.oxc": "always"
|
"source.fixAll.oxc": "always"
|
||||||
},
|
},
|
||||||
"typescript.tsdk": "node_modules\\typescript\\lib",
|
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||||
"[typescript]": {
|
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
74
Jenkinsfile
vendored
Normal file
74
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
options {
|
||||||
|
timestamps()
|
||||||
|
}
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
choice(
|
||||||
|
name: 'XSH_DEPLOY_TARGET',
|
||||||
|
choices: ['main'],
|
||||||
|
description: 'main:眩生花线上版本'
|
||||||
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'XSH_DEPLOY_TO_PRODUCTION',
|
||||||
|
defaultValue: true,
|
||||||
|
description: '是否自动部署到线上环境(否则只构建产物)\n* 仅在 main 分支生效'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
tools {
|
||||||
|
nodejs 'NodeJS 22.22'
|
||||||
|
}
|
||||||
|
|
||||||
|
libraries {
|
||||||
|
lib('xsh-common@main')
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Lint') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
corepack enable
|
||||||
|
pnpm install --registry=https://registry.npmmirror.com
|
||||||
|
pnpm run lint
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
when {
|
||||||
|
allOf {
|
||||||
|
expression { currentBuild.currentResult == 'SUCCESS' }
|
||||||
|
expression { env.TAG_NAME != null }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
corepack enable
|
||||||
|
pnpm install --registry=https://registry.npmmirror.com
|
||||||
|
pnpm run generate
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
echo "Build finished: ${currentBuild.currentResult}"
|
||||||
|
}
|
||||||
|
success {
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/**', followSymlinks: true, onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
echo "Build failed"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@ export default defineNuxtConfig({
|
|||||||
'radix-vue/nuxt',
|
'radix-vue/nuxt',
|
||||||
'dayjs-nuxt',
|
'dayjs-nuxt',
|
||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'pinia-plugin-persistedstate',
|
'@pinia-plugin-persistedstate/nuxt',
|
||||||
'@vite-pwa/nuxt',
|
'@vite-pwa/nuxt',
|
||||||
'@nuxtjs/google-fonts',
|
'@nuxtjs/google-fonts',
|
||||||
'@nuxt/image',
|
'@nuxt/image',
|
||||||
|
|||||||
@@ -31,9 +31,8 @@
|
|||||||
"highlight.js": "^11.10.0",
|
"highlight.js": "^11.10.0",
|
||||||
"idb-keyval": "^6.2.1",
|
"idb-keyval": "^6.2.1",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"nuxt": "^3.21.1",
|
"nuxt": "^3.12.4",
|
||||||
"nuxt-driver.js": "^0.0.11",
|
"nuxt-driver.js": "^0.0.11",
|
||||||
"pinia-plugin-persistedstate": "^4.7.1",
|
|
||||||
"radix-vue": "^1.9.2",
|
"radix-vue": "^1.9.2",
|
||||||
"v-calendar": "^3.1.2",
|
"v-calendar": "^3.1.2",
|
||||||
"vue": "^3.4.34",
|
"vue": "^3.4.34",
|
||||||
@@ -43,6 +42,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/ui": "^2.20.0",
|
"@nuxt/ui": "^2.20.0",
|
||||||
"@nuxtjs/google-fonts": "^3.2.0",
|
"@nuxtjs/google-fonts": "^3.2.0",
|
||||||
|
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
|
||||||
"@pinia/nuxt": "^0.5.2",
|
"@pinia/nuxt": "^0.5.2",
|
||||||
"@tailwindcss/typography": "^0.5.13",
|
"@tailwindcss/typography": "^0.5.13",
|
||||||
"@types/markdown-it": "^13.0.9",
|
"@types/markdown-it": "^13.0.9",
|
||||||
|
|||||||
9937
pnpm-lock.yaml
generated
9937
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user