extract lib/build.js
add testcase for build
add deps
upgrade umi
Merge pull request #768 from spmjs/build

Build