autos

4.5.15-1 • Public • Published

凹凸脚手架

  • [x] 远程下载模板
  • [x] 支持创建 view 和 component
  • [x] 支持在当前和新文件夹初始化项目
  • [x] 支持覆盖, 删除, 合并
  • [x] 优化创建模板的效率
  • [x] 单独升级 webpack 打包目录
  • [x] 简化配置,所有的可配置项暴露到appConfig.js
  • [x] 支持自定义配置
  • [x] 支持 eslint 测试
  • [ ] 支持更新项目配置
// appConfig.js

module.exports = {
  basename: `/${this.prodPathPrefix}/${this.prodPath}`,

  // 打包出口目录的前缀,注意:不需要以/开头
  prodPathPrefix: 'system',

  // 打包的出口目录(默认dist目录)
  prodPath: 'financialManagement',

  // 管理后台系统码
  syscode: 'financialManagement',

  // 本地测试端口,默认 3000
  port: 3000,

  // 本地代理环境地址
  target: 'http://github.com/',

  // 本地代理配置默认值,支持重写
  proxy: {
    '/proxy/*': {
      target: this.target,
      pathRewrite: {
        '^/proxy/': '/',
      },
      changeOrigin: true,
      secure: false,
    },
  },

  // html 文档的标题
  title: 'Autos',

  // 自定义 webpack 配置
  modify: (webpackConfig, { packageEnv }) => webpackConfig,

  // 自定义 tsconConfig 路径,默认 tsconfig.json
  tsConfigPath: 'tsconfig.json',

  // 增加转译路径,因为默认不包含 nodu_modules
  includeFiles: ['nodu_modules/some_module'],

  // 是否代理登录页(默认关闭)
  autoLogin: true,

  // 开启微前端(默认关闭)
  mfe: true,

  // 微前端导出模块
  exposes: {},
}

快速开始

创建新项目

$ npx autos init

或者

$ npx autos i

创建组件或者页面

$ npx autos create

或者

$ npx autos c

开发项目

$ npx autos dev

发布项目

测试环境发布项目

$ npx autos build -t

或者

$ npx autos build --test

正式环境发布项目

$ autos build

实际项目中使用

$ yarn dev
$ yarn test
$ yarn prod

或者

$ npm run dev
$ npm run test
$ npm run prod

升级项目

升级项目配置

$ npx autos update

update.gif

开启分析页面

查看构建完成后包含的依赖关系

$ npx autos build --analyzer

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.5.15-13latest

Version History

VersionDownloads (Last 7 Days)Published
4.5.15-13
4.5.130
4.5.120
4.5.110
4.5.100
4.5.90
4.5.80
4.5.70
4.5.60
4.5.50
4.5.40
4.5.30
4.5.20
4.5.11
4.5.00
4.4.11
4.4.00
4.3.00
4.2.120
4.2.110
4.2.100
4.2.90
4.2.80
4.2.70
4.2.60
4.2.50
4.2.40
4.2.30
4.2.20
4.2.10
4.2.00
4.1.00
4.0.20
4.0.10
4.0.00
4.0.0-30
4.0.0-20
4.0.0-11
4.0.0-00
3.0.110
3.0.100
3.0.90
3.0.81
3.0.70
3.0.60
3.0.50
3.0.40
3.0.30
3.0.21
3.0.10
3.0.00
2.0.00
1.2.30
1.2.20
1.2.10
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
0.1.210
1.1.20
1.1.10
1.1.00
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
0.1.200
0.1.190
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.31
1.0.20
1.0.10
1.0.00
0.1.180
0.1.170
0.1.160
0.1.150
0.1.140
0.1.130
0.1.120
0.1.110
0.1.100
0.1.90
0.1.80
0.1.71
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.90
0.0.80
0.0.70
0.0.60
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i autos

Weekly Downloads

10

Version

4.5.15-1

License

MIT

Unpacked Size

82.3 kB

Total Files

35

Last publish

Collaborators

  • honeyan209
  • liuxingyun2010
  • easonchiu86
  • zc12138
  • appleshell
  • dahong