refactor(project): re-adjust the overall folder

This commit is contained in:
vince
2024-07-23 00:03:59 +08:00
parent a1a566cb2f
commit 14538f7ed5
281 changed files with 1365 additions and 1659 deletions

View File

@@ -0,0 +1,7 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: ['src/index'],
});

View File

@@ -0,0 +1,35 @@
{
"name": "@vben/preferences",
"version": "5.0.0",
"homepage": "https://github.com/vbenjs/vue-vben-admin",
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
"directory": "packages/preferences"
},
"license": "MIT",
"type": "module",
"scripts": {
"#build": "pnpm unbuild"
},
"files": [
"dist",
"src"
],
"sideEffects": [
"**/*.css"
],
"exports": {
".": {
"types": "./src/index.ts",
"development": "./src/index.ts",
"#default": "./dist/index.mjs",
"default": "./src/index.ts"
}
},
"dependencies": {
"@vben-core/preferences": "workspace:*",
"@vben-core/typings": "workspace:*"
}
}

View File

@@ -0,0 +1,16 @@
import type { Preferences } from '@vben-core/preferences';
import type { DeepPartial } from '@vben-core/typings';
/**
* 如果你想所有的app都使用相同的默认偏好设置你可以在这里定义
* @param preferences
* @returns
*/
function defineOverridesPreferences(preferences: DeepPartial<Preferences>) {
return preferences;
}
export { defineOverridesPreferences };
export * from '@vben-core/preferences';

View File

@@ -0,0 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@vben/tsconfig/web.json",
"include": ["src"],
"exclude": ["node_modules"]
}