Skip to content

0.5.0 (January 11, 2017)

Compare
Choose a tag to compare
@sorrycc sorrycc released this 11 Jan 09:13
· 264 commits to master since this release

0.5.0 不包含任何不兼容升级,可放心直接修改版本号升级。

详见 Milestone 0.5

  • 😻😻😻 新增 roadhog server 支持 mock 功能,在 .roadhogrc.mock.js 中定义,支持 ES6 语法,支持基于 require 动态分析的实时刷新,以及友好的出错提示,详见 roadhog#mock (#22)
  • 新增配置文件修改的自动重启功能,会触发重启的文件包含 .roadhogrc, .roadhogrc.mock.js 以及 theme 配置指定的文件 (#4)
  • 新增构建失败时的声音提醒 (#50)
  • 新增 .roadhogrc 中支持 npm package 变量 $npm_package_name$npm_package_version,可避免维护多份 name 和 version (#60)
  • 新增 extraPostCSSPlugins 配置,比如可用于配置 pxtorem (#48)
  • 改进 node 版本不兼容时的引导 (#63)
  • 内置 babel-plugin-react-require 插件,解决大家经常在写 Stateless React Component 时忘记 import react 时报错的问题 (#11)
  • 补充大量用例
  • 由于维护频度较高,代码重构为 ES6 + Babel 转码的方式

image


  • 😻😻😻 Support api mock, configured in .roadhogrc.mock.js (#22)
  • Support server restart automatically when configure files changed (#4)
  • Support play error sound when build failed (#50)
  • Support use npm package variables in .roadhogrc, like $npm_package_name and $npm_package_version (#60)
  • Support extraPostCSSPlugins configuration (#48)
  • Improve guide text when node is not compatible (#63)
  • Add babel-plugin-react-require internally, import react automatically when use Stateless React Component (#11)
  • Add amounts of test case
  • Refactor code to ES6 + Babel transform for productivity