mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
feat: add lerna basic config
This commit is contained in:
parent
e08d5c6279
commit
8e642a845f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
*.local
|
||||
*.local
|
||||
|
8
lerna.json
Normal file
8
lerna.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "indenpendent",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true
|
||||
}
|
4332
package-lock.json
generated
4332
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "test",
|
||||
"name": "element-plus",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@ -13,11 +14,19 @@
|
||||
"devDependencies": {
|
||||
"@vue/compiler-sfc": "^3.0.0-rc.1",
|
||||
"cz-conventional-changelog": "^3.2.0",
|
||||
"lerna": "^3.22.1",
|
||||
"vite": "^1.0.0-rc.1"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"description": "A Component Library for Vue3.0",
|
||||
"main": "index.js",
|
||||
"repository": "git@github.com:element-plus/element-plus.git",
|
||||
"license": "MIT"
|
||||
}
|
||||
|
9
packages/button/package.json
Normal file
9
packages/button/package.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "@element-plus/button",
|
||||
"version": "0.0.0",
|
||||
"main": "dist/index.js",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"vue": "^3.0.0-rc.1"
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import ButtonInstall from './components/button/index'
|
||||
import ButtonInstall from '@element-plus/button/index'
|
||||
export const installAll = (app) => {
|
||||
ButtonInstall(app)
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { RouteRecordRaw, createRouter, createWebHistory } from "vue-router";
|
||||
import Button from "./components/button/doc/index.vue";
|
||||
import Button from "@element-plus/button/doc/index.vue";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
@ -13,4 +13,4 @@ const router = createRouter({
|
||||
routes
|
||||
});
|
||||
|
||||
export default router;
|
||||
export default router;
|
||||
|
18
tsconfig.json
Normal file
18
tsconfig.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "ES2020",
|
||||
"declaration": true,
|
||||
"noImplicitAny": false,
|
||||
"removeComments": true,
|
||||
"noLib": false,
|
||||
"target": "es6",
|
||||
"sourceMap": true,
|
||||
"lib": [
|
||||
"es2020"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user