forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init README-FirePress-Dev.md (squash)
- Loading branch information
1 parent
c77524d
commit 5fab839
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
``` |