Gaia/Build/Refactoring Plan
Since we found build scripts still isn’t easy to modify on bug 964216 and had bug 897352 for copying all apps into build_stage/ directory, we should consider refactoring build system to get clearer build process. I did some research in Chinese new year and there are something I found and how can we do for refactoring it.
Input/Output for current build system
Actually we have two destination directory when we execute build script: original app directory and profile directory. for example, webapp-optmize.js & applications-data.js are not good because they generate output into app source directory and profile directory. here are the diagrams to show input & output data for applications-data.js, webapp-optmize.js & webapp-zip.js which is used homescreen app for example:
applications-data.js: