From 5109fd0f55aa4ab20f73bf16c17ff9ad84cec007 Mon Sep 17 00:00:00 2001 From: im6 Date: Sun, 7 Mar 2021 14:25:13 -0500 Subject: [PATCH] fix cp script with conflict --- README.md | 16 +++++++++++++++- cp.sh | 7 ++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d43f27..2f3e4a0 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,22 @@ Source code to generate [www.javascript.fun](https://www.javascript.fun/) ## Quick Start +### Run app in local + ```sh yarn install -yarn build # generate collect build +yarn dev +``` + +### Update viewmodel + +```sh +yarn build yarn collect ``` + +### Push to prod + +```sh +yarn cp +``` diff --git a/cp.sh b/cp.sh index 06b4790..81522c6 100755 --- a/cp.sh +++ b/cp.sh @@ -5,6 +5,11 @@ if [ ! -d "$im6_dir" ]; then exit 1 fi +cd $im6_dir +git pull + +cd ../javascript-fun + # copy # cp dist/public/main.js "$im6_dir/assets/" # cp dist/public/site.js "$im6_dir/assets/" @@ -20,4 +25,4 @@ cd $im6_dir git add . git commit -a -m "update" git push -exit 0 \ No newline at end of file +exit 0