Skip to content

Commit

Permalink
Tar -> TGZ. Working first steps (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrw committed Dec 5, 2018
1 parent 9356372 commit f44baaa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/tabs/palette/package.json
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
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`

0 comments on commit f44baaa

Please sign in to comment.