$ cnpm install @uyun/udap-sync-job
基于 react、react-router-dom、mobx、@uyun/components, tsdx 搭建的基础脚手架。
npx tsdx create udapSyncJob
cd udaoSyncJob
当前项目已初始化,可直接克隆启动
# 本地开发
$ yarn start
# 本地构建
$ yarn build
# 发布
# 发布前请修改packgae.json的版本号
$ npm publish
执行 yarn build 命令,用 dist 目录替换项目/node-modules/@uyun/udap-sync-job 的 dist
.
├── public # 放静态资源
├── src # 源码
│ ├── app # 源码
| | ├── common # 公共文件
│ │ ├── components # 项目组件
│ │ ├── services # api
│ │ ├── stores # 全局store
│ │ ├── SyncJob # 同步任务文件
│ │ ├── types # typescript定义文件
│ │ ├── react-app-env.d.ts # ts模块声明文件
│ │ └── utils # 项目utils
│ ├── index.tsx # 项目入口
├── .browserslistrc
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── babel.config.js
├── everest.config.js
├── jest.config.js # 测试配置
├── jsconfig.json # js配置文件
├── package.json
├── postcss.config.js
└── README.md
Copyright 2013 - present © cnpmjs.org