Skip to content

Commit

Permalink
整理了项目结构
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinkd committed Nov 21, 2022
1 parent d6379a8 commit 7d20bc8
Show file tree
Hide file tree
Showing 35 changed files with 5 additions and 1,304 deletions.
Empty file removed .sshConfig.dev.js
Empty file.
Empty file removed .sshConfig.prod.js
Empty file.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# umi-project
# umi react ts 项目模版
# 添加自动化部署

`umi: 3.x 版本`
3 changes: 0 additions & 3 deletions config/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
// https://umijs.org/zh-CN/config
import { defineConfig } from 'umi';
// import AntdDayjsWebpackPlugin from 'antd-dayjs-webpack-plugin'
import moment from 'moment';
import routeConfig from './router.config';

Expand Down
15 changes: 0 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
//
const gulp = require('gulp');
const GulpSsh = require('gulp-ssh');
// const ftp = require('vinyl-ftp')

let sshConfig = '';

switch (process.env.UMI_ENV) {
case 'local':
sshConfig = require('./.sshConfig.local');
break;
case 'dev':
sshConfig = require('./.sshConfig.dev');
break;
case 'prod':
sshConfig = require('./.sshConfig.prod');
break;
default:
sshConfig = require('./.sshConfig.local');
break;
Expand All @@ -25,24 +17,17 @@ const gulpSSH = new GulpSsh({
sshConfig: sshConfig.options,
});

// gulp Did you forget to signal async completion? 这里的要当前的task 进行结束
// 清除服务器上的文件
gulp.task('sftp-clear', function(done) {
gulpSSH.shell([`rm -rf ${sshConfig.remoteDirectory}/*`]);
done();
});

// 上传
gulp.task('sftp-update', done => {
return gulp.src('./dist/**').pipe(gulpSSH.dest(sshConfig.remoteDirectory));
done();
});

gulp.task('sftp-deploy', gulp.series('sftp-clear', 'sftp-update'));

// const ftpConfig = require('./.ftpConfig')
// var conn = ftp.create(ftpConfig.options)

gulp.task('sftp-test', function() {
gulp.src('./gulpTest.js').pipe(gulpSSH.dest(sshConfig.remoteDirectory));
});
40 changes: 0 additions & 40 deletions src/components/Card/index.less

This file was deleted.

53 changes: 0 additions & 53 deletions src/components/Card/index.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions src/components/Filter/Propstype.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Filter/icon/awowe.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Filter/icon/select.svg

This file was deleted.

71 changes: 0 additions & 71 deletions src/components/Filter/index.less

This file was deleted.

Loading

0 comments on commit 7d20bc8

Please sign in to comment.