lucio
react and dva cli tool
Last updated 2 years ago by jindada .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lucio 
SYNC missed versions from official npm registry.

Lucio

NPM version NPM downloads

更新日志

开始

安装
$ npm install lucio -g

命令

lucio 是一个丰富的 cli 工具,提供 init、dll、server、build 和 eslint 五个命令,分别用于项目构建,编译dll,本地调试,部署构建,代码检查

项目构建 (待调试)
$ lucio init <pkgname>
编译dll
$ lucio dll
本地调试
$ lucio server
部署构建
$ lucio build
代码检查
$ lucio eslint

配置

默认配置
{
  entry: './src/index.js',
  output: './dist',
  template: './src/index.ejs',
  commons: [],
  prefix: '',
  postcssPlugins: [],
  commonBabelPlugins: [],
  devBabelPlugins: [],
  prodBabelPlugins: [],
  prodBabelPlugins: [],
  babelLoaderDir: [],
  resolvePlugins [],
  proxy: {},
  svgSpriteDir: undefined
}
entry
指定 webpack 入口文件
output
配置输出路径
template
配置 HtmlWebpackPlugin 的 template 属性。
commons
公共库,用于本地调试时构建dll以及部署构建时提取
prefix
请求url前缀
postcssPlugins
配置额外的 postcss 插件
默认 postcss 配置
{
  autoprefixer({
    browsers: [
      '>1%',
      'last 4 versions',
      'Firefox ESR',
      'not ie < 9',
    ]
  })
}
commonBabelPlugins
公共的 babel plugins 配置
默认 babel plugins 配置
{
  plugins: [
    'add-module-exports',
    'react-require',
    'syntax-dynamic-import',
  ]
}
devBabelPlugins
本地调试环境下额外的 bebel plugins 配置配置
prodBabelPlugins
部署构建环境下额外的 bebel plugins 配置配置
babelLoaderDir
babel loader 目录
resolvePlugins
配置 webpack 的 resolve 属性。
proxy
代理
svgSpriteDir
svg-sprite 目录

Current Tags

  • 1.0.0-beta.19                                ...           latest (2 years ago)

41 Versions

  • 1.0.0-beta.19                                ...           2 years ago
  • 1.0.0-beta.18                                ...           2 years ago
  • 1.0.0-beta.17                                ...           2 years ago
  • 1.0.0-beta.16                                ...           2 years ago
  • 1.0.0-beta.15                                ...           2 years ago
  • 1.0.0-beta.14                                ...           2 years ago
  • 1.0.0-beta.13                                ...           2 years ago
  • 1.0.0-beta.12                                ...           2 years ago
  • 1.0.0-beta.11                                ...           2 years ago
  • 1.0.0-beta.10                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.8                                ...           2 years ago
  • 1.0.0-beta.7                                ...           2 years ago
  • 1.0.0-beta6                                ...           2 years ago
  • 1.0.0-beta5                                ...           2 years ago
  • 1.0.0-beta4                                ...           2 years ago
  • 1.0.0-beta3                                ...           2 years ago
  • 1.0.0-beta2                                ...           2 years ago
  • 1.0.0-beta1                                ...           2 years ago
  • 0.6.0-beta1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 2
Last Month 3
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |