-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
5,996 additions
and
3,979 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 |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# 忽略工作区根目录检查,允许在工作区的任何地方安装依赖项 | ||
ignore-workspace-root-check=true | ||
|
||
# 在安装依赖项时将它们的依赖关系移动到更高的位置,以减少安装包的嵌套层级 | ||
shamefully-hoist=true | ||
|
||
# 是否启用严格的对等依赖检查,如果设置为 false,将允许依赖项的版本范围不完全匹配 | ||
strict-peer-dependencies=false | ||
|
||
# 在安装依赖项时自动安装对等依赖项 | ||
auto-install-peers=true | ||
|
||
# 启用 shell 模拟器,模拟终端操作以执行命令 | ||
shell-emulator=true | ||
|
||
# 是否启用包管理器的严格模式,如果设置为 false,将允许一些不符合规范的行为 | ||
package-manager-strict=false |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.vitepress/cache/ | ||
.vitepress/dist/ | ||
public/user-avatars | ||
node_modules |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,36 @@ | ||
{ | ||
"name": "nigi-element-plus", | ||
"name": "@nigi-element-formily/monorepo", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"packageManager": "[email protected]", | ||
"description": "This is a formily element plus framework", | ||
"author": "Nigi Wen <[email protected]>", | ||
"license": "MIT", | ||
"funding": "https://github.com/sponsors/wen403", | ||
"homepage": "https://github.com/wen403/nigi-element-plus#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/wen403/nigi-element-plus.git" | ||
}, | ||
"workspaces": [ | ||
"docs" | ||
], | ||
"bugs": "https://github.com/wen403/nigi-element-plus/issues", | ||
"keywords": [ | ||
"vue3", | ||
"element-plus", | ||
"formily", | ||
"form" | ||
], | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/*", | ||
"./dist/index.d.ts" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "pnpm run docs:build", | ||
"dev": "unbuild --stub", | ||
"play": "pnpm -C playground run dev", | ||
"docs": "pnpm -C docs run dev", | ||
"lint": "eslint --cache .", | ||
"lint:fix": "nr lint --fix", | ||
"release": "bumpp -r", | ||
"test": "vitest", | ||
"typecheck": "tsc --noEmit", | ||
"docs": "pnpm -C docs run dev", | ||
"docs:build": "pnpm -C docs run build", | ||
"docs:preview": "pnpm run -C docs preview", | ||
"prepare": "simple-git-hooks" | ||
}, | ||
"peerDependencies": { | ||
"vue": "^3.4.25" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.14.0", | ||
"@antfu/ni": "^0.21.12", | ||
"@antfu/utils": "^0.7.7", | ||
"@element-plus/icons-vue": "^2.3.1", | ||
"@nigi-element-formily/element-plus": "workspace:*", | ||
"@shikijs/vitepress-twoslash": "^1.3.0", | ||
"@types/node": "^20.12.7", | ||
"@unocss/eslint-config": "^0.59.4", | ||
"@unocss/eslint-plugin": "^0.59.4", | ||
"@unocss/reset": "^0.59.4", | ||
"@vitejs/plugin-vue": "^5.0.4", | ||
"@vueuse/core": "^10.9.0", | ||
"@vueuse/math": "^10.9.0", | ||
"bumpp": "^9.4.0", | ||
"element-plus": "^2.7.2", | ||
"eslint": "^9.0.0", | ||
|
@@ -78,14 +43,16 @@ | |
"rimraf": "^5.0.5", | ||
"sass": "^1.75.0", | ||
"simple-git-hooks": "^2.11.1", | ||
"splitpanes": "^3.1.5", | ||
"typescript": "^5.4.5", | ||
"unbuild": "^2.0.0", | ||
"unocss": "^0.59.4", | ||
"unplugin-auto-import": "^0.17.5", | ||
"unplugin-vue-components": "^0.26.0", | ||
"vite": "^5.2.9", | ||
"vitest": "^1.5.0", | ||
"vue": "^3.4.25" | ||
"vue": "^3.4.25", | ||
"vue-tsc": "^2.0.6" | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "pnpm lint-staged" | ||
|
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 @@ | ||
export * from './input' |
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,8 @@ | ||
import { withInstall } from 'element-plus/es/utils' | ||
|
||
import Input from './src/input.vue' | ||
|
||
export const EFInput = withInstall(Input) | ||
export default EFInput | ||
|
||
export * from './src/input' |
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 @@ | ||
import type Input from './input.vue' | ||
|
||
export type InputInstance = InstanceType<typeof Input> |
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,13 @@ | ||
<script setup lang='ts'> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
be... | ||
</div> | ||
</template> | ||
|
||
<style scoped lang='scss'> | ||
</style> |
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,23 @@ | ||
{ | ||
"name": "@nigi-element-formily/element-plus", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "element-plus formily", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.umd.cjs" | ||
} | ||
}, | ||
"main": "./dist/index.umd.cjs", | ||
"module": "./dist/index.js", | ||
"files": ["dist"], | ||
"scripts": { | ||
"build": "vite build" | ||
}, | ||
"peerDependencies": { | ||
"vue": "^3.4.25" | ||
} | ||
} |
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,29 @@ | ||
import { resolve } from 'node:path' | ||
import { defineConfig } from 'vite' | ||
import Vue from '@vitejs/plugin-vue' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
base: '/play/', | ||
plugins: [ | ||
Vue(), | ||
], | ||
build: { | ||
emptyOutDir: true, | ||
lib: { | ||
entry: resolve(__dirname, './index.ts'), | ||
name: 'index', | ||
fileName: 'index', | ||
}, | ||
rollupOptions: { | ||
// 确保外部化处理那些你不想打包进库的依赖 | ||
external: ['vue'], | ||
output: { | ||
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量 | ||
globals: { | ||
vue: 'Vue', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) |
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,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + Vue + TS</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
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,11 @@ | ||
{ | ||
"name": "playground", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc && vite build", | ||
"preview": "vite preview" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.