extract lib/build.js
add testcase for build
add deps
upgrade umi