From 27a1b03827d431ef5dc3ad301099b30179551cd7 Mon Sep 17 00:00:00 2001 From: Blake Newman Date: Fri, 30 Jun 2017 03:02:02 +0200 Subject: [PATCH] chore(build): ignore dist files until release (#5984) ignore dist files until release improves contributor experience ensures dist files can't be accidentally committed in --- .gitignore | 6 ++++++ build/release.sh | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 1a1f1761..1ee765a0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,9 @@ test/e2e/reports test/e2e/screenshots coverage RELEASE_NOTE*.md +dist/*.js +packages/vue-server-renderer/basic.js +packages/vue-server-renderer/build.js +packages/vue-server-renderer/server-plugin.js +packages/vue-server-renderer/client-plugin.js +packages/vue-template-compiler/build.js diff --git a/build/release.sh b/build/release.sh index 5a11af22..79569997 100644 --- a/build/release.sh +++ b/build/release.sh @@ -47,6 +47,14 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then # commit git add -A + git add -f \ + dist/*.js \ + !dist/vue.common.min.js \ + packages/vue-server-renderer/basic.js \ + packages/vue-server-renderer/build.js \ + packages/vue-server-renderer/server-plugin.js \ + packages/vue-server-renderer/client-plugin.js \ + packages/vue-template-compiler/build.js git commit -m "[build] $VERSION" npm version $VERSION --message "[release] $VERSION"