feat: add lerna basic config

This commit is contained in:
HerringtonDarkholme 2020-07-22 00:35:23 +08:00
parent e08d5c6279
commit 8e642a845f
13 changed files with 6978 additions and 4339 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
node_modules
.DS_Store
dist
*.local
*.local

8
lerna.json Normal file
View File

@ -0,0 +1,8 @@
{
"packages": [
"packages/*"
],
"version": "indenpendent",
"npmClient": "yarn",
"useWorkspaces": true
}

4332
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}

View 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"
}
}

View File

@ -1,4 +1,4 @@
import ButtonInstall from './components/button/index'
import ButtonInstall from '@element-plus/button/index'
export const installAll = (app) => {
ButtonInstall(app)
}
}

View File

@ -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
View 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"
]
}

6927
yarn.lock Normal file

File diff suppressed because it is too large Load Diff