Skip to content
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

Merged
merged 3 commits into from
Dec 14, 2018
Merged

Puntzak! a plusfries widget #9

merged 3 commits into from
Dec 14, 2018

Conversation

keepitterron
Copy link
Collaborator

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 🍟

"lint": "eslint .",
"fmt": "prettier --no-color --write '**/*.{md,js}'",
"preinstall": "cp -n .env.example .env",
"preinstall": "test -f .env || cp -n .env.example .env",
Copy link
Collaborator

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?

Copy link
Collaborator Author

@keepitterron keepitterron Dec 14, 2018

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.

Copy link
Collaborator Author

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

Copy link
Collaborator

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

Copy link
Collaborator Author

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)"
Copy link
Collaborator Author

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 🎉

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shell FTW

@keepitterron keepitterron merged commit b1ee812 into master Dec 14, 2018
@keepitterron keepitterron deleted the widget branch December 14, 2018 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants