autos
auto standard tooling
Last updated 7 days ago by dahong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install autos 
SYNC missed versions from official npm registry.

凹凸脚手架

  • [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'],
}

快速开始

$ npm i autos -g

创建新项目

$ autos init

或者

$ autos i

创建组件或者页面

$ autos create

或者

$ autos c

开发项目

$ autos dev

发布项目

测试环境发布项目

$ autos build -t

或者

$ autos build --test

正式环境发布项目

$ autos build

实际项目中使用

$ yarn dev
$ yarn test
$ yarn prod

或者

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

升级项目

升级项目配置

$ autos update

update.gif

开启分析仪

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

$ autos build -t --analyzer

Current Tags

  • 3.0.6                                ...           latest (7 days ago)

66 Versions

  • 3.0.6                                ...           7 days ago
  • 3.0.5                                ...           10 days ago
  • 3.0.4                                ...           15 days ago
  • 3.0.3                                ...           24 days ago
  • 3.0.2                                ...           24 days ago
  • 3.0.1                                ...           25 days ago
  • 3.0.0                                ...           a month ago
  • 2.0.0                                ...           a month ago
  • 1.2.3                                ...           2 months ago
  • 1.2.2                                ...           2 months ago
  • 1.2.1                                ...           2 months ago
  • 1.2.0                                ...           3 months ago
  • 1.1.6                                ...           3 months ago
  • 1.1.5                                ...           7 months ago
  • 1.1.4                                ...           7 months ago
  • 1.1.3                                ...           7 months ago
  • 0.1.21                                ...           8 months ago
  • 1.1.2                                ...           8 months ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 0.1.20                                ...           a year ago
  • 0.1.19                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 28
Last Day 0
Last Week 17
Last Month 70
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |