From 5fab8399d8a18cbccceb1859da08e3d3f7fb7814 Mon Sep 17 00:00:00 2001 From: Pascal Andy Date: Mon, 21 Dec 2020 15:47:40 -0500 Subject: [PATCH] Init README-FirePress-Dev.md (squash) --- README-FirePress-Dev.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 README-FirePress-Dev.md diff --git a/README-FirePress-Dev.md b/README-FirePress-Dev.md new file mode 100644 index 0000000000..4036ed7f11 --- /dev/null +++ b/README-FirePress-Dev.md @@ -0,0 +1,40 @@ +## Set your local dev environment + +- Update ENV `theme_path` +- It assumes that you use [nvm](https://github.com/nvm-sh/nvm) to manage node versions. + +``` +theme_path="/Volumes/960G/_pascalandy/11_FirePress/Github/firepress-org/Casper" +# +## set node version +cd ${theme_path} && \ +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" +# +#nvm install v12.18.4 &&\ +#nvm use v12.18.4 &&\ +# +nvm install 'lts/*' --reinstall-packages-from=current &&\ +nvm use --lts &&\ +nvm install-latest-npm &&\ +node --version; +``` + +## update your theme + +``` +yarn install &&\ +yarn dev; +``` + +## compile your theme +``` +## compile your theme +yarn test:ci &&\ +yarn test &&\ +yarn pretest &&\ +yarn test &&\ +yarn zip &&\ +cd dist && echo; pwd; echo; ls -AlhF; echo; du -sh; +``` \ No newline at end of file