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

Tar -> TGZ. Working first steps. #64

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/tabs/palette/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"reinstall": "rm -rf node_modules && npm run-script install",
"start": "npm run-script lint && cross-env NODE_ENV=development webpack-dev-server",
"test": "echo no test",
"zip": "tar --exclude='demo' --exclude='node_modules' --exclude='package-lock.json' --exclude='palette.tgz' -cvf palette.tar ./"
"zip": "tar --exclude='demo' --exclude='node_modules' --exclude='package-lock.json' --exclude='palette.tgz' -czvf palette.tgz ./"
},
"dependencies": {
"@misk/common": "^0.1.1-alpha-0.3",
Expand Down
Binary file removed examples/tabs/palette/palette.tar
Binary file not shown.
Binary file added examples/tabs/palette/palette.tgz
Binary file not shown.
13 changes: 6 additions & 7 deletions new-tab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ echo "Registered NEW_SLUG_CASE ${NEW_SLUG_CASE}"
# 1. Download .zip of palette src code from github
echo "Downloading fresh Palette tab"
rm ./palette.tar
curl -s0 https://github.com/square/misk-web/raw/master/examples/tabs/palette/palette.tar -o ./palette.tar
wget -O palette.tgz https://github.com/square/misk-web/raw/master/examples/tabs/palette/palette.tgz

# 1. Unzips to pwd
echo "Unzip compressed Palette Tab"
tar -xvf ./palette.tar
# 1. Make new tab folder `foo-bar`

# 1. Renames folder to `foo-bar
echo "Moving Palette source into new tab directory: ${NEW_SLUG_CASE}"
mv ${OLD_SLUG_CASE} ${NEW_SLUG_CASE}
mkdir -p ./${NEW_SLUG_CASE}
# 1. Unzips to pwd
echo "Unzip compressed Palette Tab to ./${NEW_SLUG_CASE}"
tar -xzvf ./palette.tgz -C ./${NEW_SLUG_CASE}

# 1. [Recursive find/replace](https://stackoverflow.com/questions/11392478/how-to-replace-a-string-in-multiple-files-in-linux-command-line) in directory of `palette` -> `fooBar`, `Palette` -> `FooBar`