Skip to content

Commit 465dcf2

Browse files
ziyoungLeopoldthecoder
authored andcommitted
Chore: retire lerna and remove redundant files (#11493)
* Chore: retire lerna and delete redundant files * Chore: update Makefile
1 parent 7df9a1e commit 465dcf2

32 files changed

+4
-659
lines changed

.github/CONTRIBUTING.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ npm run dist
5050
```
5151

5252
## Component Developing Guidelines
53-
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file, cooking config, documentation and `package.json` are included.
53+
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file and documentation are included.
5454
- Refer to `Button` for nested components.
5555
- Refer to `Select` for components that depend on other components.
5656

.github/CONTRIBUTING.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ npm run dist
5555
```
5656

5757
## Guía Para Desarrollo de Componentes
58-
- Corra el comando `make new <component-name>` para crear el directorio de su proyecto para un componente nuevo. Verifique su código fuente test, configuración para armar, documentación y `package.json` están incluidos.
58+
- Corra el comando `make new <component-name>` para crear el directorio de su proyecto para un componente nuevo. Verifique su código fuente test, archivo de entrada y documentación están incluidos.
5959
- Refiérase al `Button` para componentes anidados.
6060
- Refiérase al `Select` para componentes que dependen de otros componentes.
6161

.github/CONTRIBUTING.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ npm run dist
4848
```
4949

5050
## 组件开发规范
51-
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、cooking 配置、package.json、文档
51+
- 通过 `make new` 创建组件目录结构,包含测试代码、入口文件、文档
5252
- 如果包含父子组件,需要更改目录结构,参考 `Button`
5353
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 `Select`
5454

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,12 @@ new-lang:
2626
dist: install
2727
npm run dist
2828

29-
dist-all:
30-
npm run dist:all
31-
3229
deploy:
3330
@npm run deploy
3431

3532
pub:
3633
npm run pub
3734

38-
pub-all:
39-
npm run pub:all
40-
4135
test:
4236
npm run test:watch
4337

@@ -47,8 +41,6 @@ help:
4741
@echo " \033[35mmake new <component-name> [中文名]\033[0m\t--- 创建新组件 package. 例如 'make new button 按钮'"
4842
@echo " \033[35mmake dev\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 开发模式"
4943
@echo " \033[35mmake dist\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 编译项目,生成目标文件"
50-
@echo " \033[35mmake dist-all\033[0m\t\033[0m\t\033[0m\t--- 分别编译每个组件项目"
5144
@echo " \033[35mmake deploy\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 部署 demo"
5245
@echo " \033[35mmake pub\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布到 npm 上"
53-
@echo " \033[35mmake pub-all\033[0m\t\033[0m\t\033[0m\t\033[0m\t--- 发布各组件到 npm 上"
5446
@echo " \033[35mmake new-lang <lang>\033[0m\t\033[0m\t\033[0m\t--- 为网站添加新语言. 例如 'make new-lang fr'"

build/bin/build-all.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

build/bin/new.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,6 @@ ${ComponentName}.install = function(Vue) {
2828
};
2929
3030
export default ${ComponentName};`
31-
},
32-
{
33-
filename: 'cooking.conf.js',
34-
content: `var cooking = require('cooking');
35-
var gen = require('../../build/gen-single-config');
36-
37-
cooking.set(gen(__dirname, 'El${ComponentName}'));
38-
39-
module.exports = cooking.resolve();
40-
`
41-
},
42-
{
43-
filename: 'package.json',
44-
content: `{
45-
"name": "element-${componentname}",
46-
"version": "0.0.0",
47-
"description": "A ${componentname} component for Vue.js.",
48-
"keywords": [
49-
"element",
50-
"vue",
51-
"component"
52-
],
53-
"main": "./lib/index.js",
54-
"repository": "https://github.com/ElemeFE/element/tree/master/packages/${componentname}",
55-
"author": "elemefe",
56-
"license": "MIT",
57-
"dependencies": {}
58-
}`
5931
},
6032
{
6133
filename: 'src/main.vue',

lerna.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
1717
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
1818
"build:umd": "node build/bin/build-locale.js",
19-
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage && lerna clean --yes",
19+
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
2020
"deploy": "npm run deploy:build && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui",
2121
"deploy:build": "npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/element-ui/CNAME",
2222
"dev": "npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js & node build/bin/template.js",
2323
"dev:play": "npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js",
2424
"dist": "npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme",
25-
"dist:all": "node build/bin/build-all.js && npm run build:theme",
2625
"i18n": "node build/bin/i18n.js",
2726
"lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
2827
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js && sh build/deploy-faas.sh",
29-
"pub:all": "npm run dist:all && lerna publish --skip-git && git commit -am 'publish independent packages' && git push eleme dev",
3028
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run",
3129
"test:watch": "npm run build:theme && karma start test/unit/karma.conf.js"
3230
},
@@ -109,7 +107,6 @@
109107
"karma-sourcemap-loader": "^0.3.7",
110108
"karma-spec-reporter": "0.0.26",
111109
"karma-webpack": "^3.0.0",
112-
"lerna": "^2.0.0-beta.32",
113110
"lolex": "^1.5.1",
114111
"markdown-it": "^6.1.1",
115112
"markdown-it-anchor": "^2.5.0",

packages/carousel/_index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/carousel/cooking.conf.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)