delete Makefile

This commit is contained in:
陈嘉涵 2017-09-28 10:46:58 +08:00
parent 3de884fbd9
commit 5d55898c63
4 changed files with 1 additions and 66 deletions

View File

@ -1,18 +0,0 @@
.PHONY: test
usage = "\
Usage: make <option> \n\n\
init componentname makefile \n\n\
\n"
default:
@echo $(usage)
init:
node build/bin/init.js $(filter-out $@,$(MAKECMDGOALS))
dev:
npm run dev
test:
npm run test

View File

@ -57,14 +57,6 @@ Vue.use(vant);
## Development
### Add a new component
```shell
make init componentName
```
### Start coding
Start development mode:
```shell

View File

@ -55,15 +55,7 @@ Vue.use(vant);
## 三、开发
### 1. 新建一个组件
```shell
make init componentName
```
### 2. 示例预览
`docs/nav.config.json`文件里合适的地方写入组件声明根据组件类型JS组件CSS组件Form等进行区分 在`docs/examples-docs`目录里新建同名的md文件`waterfall.md`在项目的根目录下执行以下命令启动server
`docs/src/doc.config.js`文件里合适的地方写入组件声明根据组件类型JS组件CSS组件Form等进行区分`docs/examples-docs`目录里新建同名的 md 文件,如`waterfall.md`,在项目的根目录下执行以下命令,启动 server
```shell
npm run dev

View File

@ -1,31 +0,0 @@
#!/usr/bin/env node
const ch = require('child_process');
const gulp = require('gulp');
const runSequence = require('run-sequence');
const gutil = require('gulp-util');
const fileSave = require('file-save');
const path = require('path');
const exec = ch.exec;
if (!process.argv[2]) {
console.error('[组件名]必填.');
process.exit(1);
}
const name = process.argv[2];
// 项目规范文件拷贝
gulp.task('copy', function(callback) {
gutil.log(gutil.colors.yellow('-------> 开始初始化'));
exec('cd packages && git clone git@gitlab.qima-inc.com:fe/vue-seed.git ' + name, function(err, stdout, stderr) {
gutil.log('-------> 拉取 vue-seed');
exec('rm -rf ./packages/' + name + '/.git', function(err, stdout, stderr) {
gutil.log('-------> ' + name + '组件初始化成功');
callback();
});
});
});
runSequence('copy');