-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puntzak! a plusfries widget #9
Conversation
"lint": "eslint .", | ||
"fmt": "prettier --no-color --write '**/*.{md,js}'", | ||
"preinstall": "cp -n .env.example .env", | ||
"preinstall": "test -f .env || cp -n .env.example .env", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the -n
flag should be --no-clobber
. was this not the case on your end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without the check
$ cp -n .env.example .env
error Command failed with exit code 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i run yarn install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm...
-n, --no-clobber
do not overwrite an existing file (overrides a previous -i option)
there should be a flag like this. mind checking your man cp
. maybe it's a little different? if not we can just do the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it's there. might be because it writes to stdout?
❯ cp -n .env.example .env
.env not overwritten
# Compress and minify widget | ||
set -e | ||
|
||
TEMP_DIR="$(mktemp -d)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uuuuuuuu didn't know about that 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell FTW
I just wanted to get this out of the door.
The build pipeline is a bit meh, can be better. much better.
feel free to commit to this branch 🍟