Skip to content

Commit

Permalink
Chore: retire lerna and remove redundant files (ElemeFE#11493)
Browse files Browse the repository at this point in the history
* Chore: retire lerna and delete redundant files

* Chore: update Makefile
  • Loading branch information
ziyoung authored and Leopoldthecoder committed Jun 5, 2018
1 parent 7df9a1e commit 465dcf2
Show file tree
Hide file tree
Showing 32 changed files with 4 additions and 659 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ npm run dist
```

## Component Developing Guidelines
- 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.
- Run `make new <component-name>` to create project directory for a new component. Test codes, entry file and documentation are included.
- Refer to `Button` for nested components.
- Refer to `Select` for components that depend on other components.

Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ npm run dist
```

## Guía Para Desarrollo de Componentes
- 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.
- 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.
- Refiérase al `Button` para componentes anidados.
- Refiérase al `Select` para componentes que dependen de otros componentes.

Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ npm run dist
```

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

Expand Down
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,12 @@ new-lang:
dist: install
npm run dist

dist-all:
npm run dist:all

deploy:
@npm run deploy

pub:
npm run pub

pub-all:
npm run pub:all

test:
npm run test:watch

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

This file was deleted.

28 changes: 0 additions & 28 deletions build/bin/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,6 @@ ${ComponentName}.install = function(Vue) {
};
export default ${ComponentName};`
},
{
filename: 'cooking.conf.js',
content: `var cooking = require('cooking');
var gen = require('../../build/gen-single-config');
cooking.set(gen(__dirname, 'El${ComponentName}'));
module.exports = cooking.resolve();
`
},
{
filename: 'package.json',
content: `{
"name": "element-${componentname}",
"version": "0.0.0",
"description": "A ${componentname} component for Vue.js.",
"keywords": [
"element",
"vue",
"component"
],
"main": "./lib/index.js",
"repository": "https://github.com/ElemeFE/element/tree/master/packages/${componentname}",
"author": "elemefe",
"license": "MIT",
"dependencies": {}
}`
},
{
filename: 'src/main.vue',
Expand Down
11 changes: 0 additions & 11 deletions lerna.json

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
"build:umd": "node build/bin/build-locale.js",
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage && lerna clean --yes",
"clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
"deploy": "npm run deploy:build && gh-pages -d examples/element-ui --remote eleme && del examples/element-ui",
"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",
"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",
"dev:play": "npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js",
"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",
"dist:all": "node build/bin/build-all.js && npm run build:theme",
"i18n": "node build/bin/i18n.js",
"lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
"pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js && sh build/deploy-faas.sh",
"pub:all": "npm run dist:all && lerna publish --skip-git && git commit -am 'publish independent packages' && git push eleme dev",
"test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ karma start test/unit/karma.conf.js --single-run",
"test:watch": "npm run build:theme && karma start test/unit/karma.conf.js"
},
Expand Down Expand Up @@ -109,7 +107,6 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "0.0.26",
"karma-webpack": "^3.0.0",
"lerna": "^2.0.0-beta.32",
"lolex": "^1.5.1",
"markdown-it": "^6.1.1",
"markdown-it-anchor": "^2.5.0",
Expand Down
10 changes: 0 additions & 10 deletions packages/carousel/_index.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/carousel/cooking.conf.js

This file was deleted.

17 changes: 0 additions & 17 deletions packages/carousel/package.json

This file was deleted.

18 changes: 0 additions & 18 deletions packages/cascader/cooking.conf.js

This file was deleted.

15 changes: 0 additions & 15 deletions packages/cascader/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/color-picker/cooking.conf.js

This file was deleted.

15 changes: 0 additions & 15 deletions packages/color-picker/package.json

This file was deleted.

64 changes: 0 additions & 64 deletions packages/date-picker/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions packages/date-picker/_index.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/date-picker/cooking.conf.js

This file was deleted.

15 changes: 0 additions & 15 deletions packages/date-picker/package.json

This file was deleted.

Loading

0 comments on commit 465dcf2

Please sign in to comment.