feat: 整理目录结构
This commit is contained in:
@ -1,8 +0,0 @@
|
|||||||
# https://github.com/depcheck/depcheck#usage
|
|
||||||
# pnpm add json -g
|
|
||||||
# pnpm exec depcheck --json | json
|
|
||||||
|
|
||||||
# pnpm exec depcheck
|
|
||||||
|
|
||||||
# ignores: ["eslint", "babel-*"]
|
|
||||||
# skip-missing: true
|
|
4
.depcheck.js → .github/.depcheck.js
vendored
4
.depcheck.js → .github/.depcheck.js
vendored
@ -1,10 +1,10 @@
|
|||||||
// https://github.com/depcheck/depcheck?tab=readme-ov-file#api
|
// https://github.com/depcheck/depcheck?tab=readme-ov-file#api
|
||||||
// node .depcheck.js
|
// node .github/.depcheck.js
|
||||||
|
|
||||||
import depcheck from 'depcheck';
|
import depcheck from 'depcheck';
|
||||||
|
|
||||||
const unused = await depcheck(process.cwd(), {
|
const unused = await depcheck(process.cwd(), {
|
||||||
ignorePatterns: ['tsconfig.json'],
|
ignorePatterns: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
console.debug(`unused.dependencies :>>`, unused.dependencies); // an array containing the unused dependencies
|
console.debug(`unused.dependencies :>>`, unused.dependencies); // an array containing the unused dependencies
|
9
.github/.depcheckrc.yaml
vendored
Normal file
9
.github/.depcheckrc.yaml
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# https://github.com/depcheck/depcheck#usage
|
||||||
|
# #####
|
||||||
|
# pnpm exec depcheck --config .github/.depcheckrc.yaml
|
||||||
|
# #####
|
||||||
|
# pnpm add json -g
|
||||||
|
# pnpm exec depcheck --json | json
|
||||||
|
|
||||||
|
ignores: ['@iconify-json/*']
|
||||||
|
skip-missing: true
|
2
.github/workflows/depcheck.yaml
vendored
2
.github/workflows/depcheck.yaml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: yanhao98/composite-actions/setup-node-environment@ae9301946790d96f75c7ebe54a34bbaf9f5469d0
|
- uses: yanhao98/composite-actions/setup-node-environment@ae9301946790d96f75c7ebe54a34bbaf9f5469d0
|
||||||
- run: npx depcheck || true
|
- run: npx depcheck || true
|
||||||
- run: node .depcheck.js
|
- run: node .github/.depcheck.js
|
||||||
- run: npx taze --help
|
- run: npx taze --help
|
||||||
- run: npx taze
|
- run: npx taze
|
||||||
- run: npx taze -a
|
- run: npx taze -a
|
||||||
|
@ -60,7 +60,7 @@ export default defineConfig({
|
|||||||
reporter: 'html',
|
reporter: 'html',
|
||||||
/* Retry on CI only */
|
/* Retry on CI only */
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
testDir: './tests/e2e',
|
testDir: './tests/playwright',
|
||||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||||
use: {
|
use: {
|
||||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import 'nprogress/nprogress.css'; // <link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/nprogress/nprogress.css" />
|
import 'nprogress/nprogress.css'; // <link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/nprogress/nprogress.css" />
|
||||||
// https://unocss.dev/guide/style-reset#tailwind-compat
|
|
||||||
// <link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/@unocss/reset/tailwind.min.css" />
|
// <link rel="stylesheet" href="https://testingcf.jsdelivr.net/npm/@unocss/reset/tailwind.min.css" />
|
||||||
// import '@unocss/reset/tailwind.css';
|
// import '@unocss/reset/tailwind.css';
|
||||||
import '@unocss/reset/tailwind-compat.css';
|
import '@unocss/reset/tailwind-compat.css';
|
||||||
@ -11,7 +10,7 @@ import './main.less';
|
|||||||
|
|
||||||
import 'primeicons/primeicons.css';
|
import 'primeicons/primeicons.css';
|
||||||
|
|
||||||
import './reset-primevue.css';
|
import './reset/reset-primevue.css';
|
||||||
import './reset-antdv.less';
|
import './reset/reset-antdv.less';
|
||||||
|
|
||||||
import 'virtual:uno.css';
|
import 'virtual:uno.css';
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
/* https://github.com/unocss/unocss/issues/2127 */
|
/* https://unocss.dev/guide/style-reset#tailwind-compat */
|
||||||
|
|
||||||
|
/* The background color of some button styles in component libraries are lost when referencing the tailwind.css file.
|
||||||
|
https://github.com/unocss/unocss/issues/2127
|
||||||
|
*/
|
||||||
|
|
||||||
:where(button:not(.ant-btn):not(.p-button)),
|
:where(button:not(.ant-btn):not(.p-button)),
|
||||||
:where([type='button']:not(.ant-btn):not(.p-button)),
|
:where([type='button']:not(.ant-btn):not(.p-button)),
|
||||||
|
@ -96,11 +96,7 @@ export function Plugins() {
|
|||||||
createUtils4uAutoImports([
|
createUtils4uAutoImports([
|
||||||
'primevue', // 参考重写 utils4u 的 createUtils4uAutoImports 的逻辑 https://github.com/unplugin/unplugin-auto-import/blob/main/src/presets/vueuse-core.ts
|
'primevue', // 参考重写 utils4u 的 createUtils4uAutoImports 的逻辑 https://github.com/unplugin/unplugin-auto-import/blob/main/src/presets/vueuse-core.ts
|
||||||
]),
|
]),
|
||||||
{
|
createUtils4uAutoImports(['primevue'])['utils4u/vue-use'],
|
||||||
'utils4u/vue-use': createUtils4uAutoImports(['primevue'])['utils4u/vue-use'].filter(
|
|
||||||
(item) => !['useCountdown'].includes(item.toString()), // FIXME: Duplicated imports "useCountdown", the one from "@vueuse/core" has been ignored and "utils4u/vue-use" is used
|
|
||||||
),
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
{
|
{
|
||||||
'consola/browser': ['consola'],
|
'consola/browser': ['consola'],
|
||||||
|
Reference in New Issue
Block a user