From 228b0864de973adf030faf5407ab077e2cc587e7 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 3 Feb 2019 09:22:22 -0500 Subject: [PATCH] separate branch creation from pushing for sake of local dev --- _template/create-branches.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 _template/create-branches.sh diff --git a/_template/create-branches.sh b/_template/create-branches.sh new file mode 100755 index 0000000..45c0725 --- /dev/null +++ b/_template/create-branches.sh @@ -0,0 +1,25 @@ +#!/bin/bash +cd "$(dirname $0)"/.. + +# make sure we're on master, and delete the rollup-v3 and webpack-v3 branches +git symbolic-ref HEAD refs/heads/master +git reset --hard +git branch -D rollup-v3 webpack-v3 + +# create the rollup-v3 branch off the current master +git checkout -b rollup-v3 +node _template/build-pkg.js rollup +git rm -r --cached .travis.yml _template package_template.json webpack.config.js +git add package.json +git commit -m 'Sapper template for Rollup' +git symbolic-ref HEAD refs/heads/master +git reset --hard + +# create the webpack-v3 branch off the current master +git checkout -b webpack-v3 +node _template/build-pkg.js webpack +git rm -r --cached .travis.yml _template package_template.json rollup.config.js +git add package.json +git commit -m 'Sapper template for webpack' +git symbolic-ref HEAD refs/heads/master +git reset --hard \ No newline at end of file