add requirejs auto compiling

add requirejs auto compiling for production and development