add r.js build script

  - add asset precompile directive