* [build] update build script and gitignore
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9e49d24c Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9e49d24c Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9e49d24c Branch: refs/heads/0.16-dev Commit: 9e49d24c89599bd82627a925faa2647663f14e81 Parents: a877605 Author: Hanks <zhanghan...@gmail.com> Authored: Tue Aug 1 19:08:50 2017 +0800 Committer: Hanks <zhanghan...@gmail.com> Committed: Tue Aug 1 19:08:50 2017 +0800 ---------------------------------------------------------------------- .gitignore | 1 - build/config.js | 4 ++-- scripts/commit-msg.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9e49d24c/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index d1469fc..4f1baeb 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ test/build weex_tmp coverage dist -packages # Node logs http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9e49d24c/build/config.js ---------------------------------------------------------------------- diff --git a/build/config.js b/build/config.js index 85470d7..62cb4f5 100644 --- a/build/config.js +++ b/build/config.js @@ -37,7 +37,7 @@ const configs = { 'weex-js-framework': { moduleName: 'Weex', entry: absolute('html5/render/native/index.js'), - dest: absolute('dist/native.js'), + dest: absolute('packages/weex-js-framework/index.js'), banner: `(this.nativeLog || function(s) {console.log(s)})` + `('START JS FRAMEWORK ${subversion.framework}, Build ${now()}.');\n` + frameworkBanner, @@ -52,7 +52,7 @@ const configs = { 'weex-js-runtime': { moduleName: 'WeexRuntime', entry: absolute('html5/runtime/index.js'), - dest: absolute('dist/runtime.js'), + dest: absolute('packages/weex-js-runtime/index.js'), banner: `/* 'WEEX JS RUNTIME ${subversion.framework}, Build ${now()}. */\n\n` + frameworkBanner, format: 'umd', http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9e49d24c/scripts/commit-msg.sh ---------------------------------------------------------------------- diff --git a/scripts/commit-msg.sh b/scripts/commit-msg.sh index 64381a9..ff1a967 100755 --- a/scripts/commit-msg.sh +++ b/scripts/commit-msg.sh @@ -17,7 +17,7 @@ # under the License. # Validate commit log -commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|website|example|test|all)\] .{1,50}' +commit_regex='^Merge.+|[+*-] \[(android|ios|jsfm|html5|component|doc|build|website|example|test|all)\] .{1,50}' if ! grep -iqE "$commit_regex" "$1"; then echo "ERROR: commit log format is not correct!"