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