mirror of
https://github.com/HoshinoSuzumi/rayine-ui.git
synced 2025-04-10 06:08:50 +08:00
💚 ci use pnpm
This commit is contained in:
parent
0d04a4581a
commit
15e88012ea
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -19,11 +19,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
|
- name: setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4.0.0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npx nypm@latest i
|
run: pnpm i
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: pnpm lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -35,11 +38,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
|
- name: setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4.0.0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npx nypm@latest i
|
run: pnpm i
|
||||||
|
|
||||||
- name: Playground prepare
|
- name: Playground prepare
|
||||||
run: npm run dev:prepare
|
run: pnpm dev:prepare
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: pnpm test
|
||||||
|
@ -3,7 +3,6 @@ import module from '../src/module'
|
|||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
|
|
||||||
modules: ['@nuxt/content', '@nuxt/fonts', '@nuxtjs/color-mode', module],
|
modules: ['@nuxt/content', '@nuxt/fonts', '@nuxtjs/color-mode', module],
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
colorMode: {
|
colorMode: {
|
||||||
@ -26,12 +25,12 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
routeRules: {
|
routeRules: {
|
||||||
'/components': { redirect: '/components/button' },
|
'/components': { redirect: '/components/button' },
|
||||||
}, compatibilityDate: '2024-04-03',
|
},
|
||||||
|
compatibilityDate: '2024-04-03',
|
||||||
typescript: {
|
typescript: {
|
||||||
includeWorkspace: true,
|
includeWorkspace: true,
|
||||||
},
|
},
|
||||||
rayui: {
|
rayui: {
|
||||||
// @ts-ignore
|
|
||||||
globalComponents: true,
|
globalComponents: true,
|
||||||
safeColors: ['amber', 'emerald', 'red', 'sky', 'violet', 'cyan'],
|
safeColors: ['amber', 'emerald', 'red', 'sky', 'violet', 'cyan'],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user