update code mapping
seperate the build script into build and deploy