Skip to content

Commit 2852242

Browse files
committed
feat(scripts): shell script added
1 parent 7fe798e commit 2852242

File tree

3 files changed

+145
-119
lines changed

3 files changed

+145
-119
lines changed

composer.lock

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shell-scripts/package.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# use in linux/unix system
4+
# not properly work in git bash
5+
echo 'You should run package.sh from parent folder. eg. ./scripts/package.sh'
6+
7+
8+
rsync -aP ./ ../free-package/ --exclude=node_modules --exclude=vendor --exclude=yarn.lock --exclude=composer.lock --exclude=public/images --exclude=public/js --exclude=shell-scripts --exclude=.git
9+
10+
echo 'folders are compressing...'
11+
12+
# add zip in linux/unix system before use it.
13+
# https://stackoverflow.com/questions/38782928/how-to-add-man-and-zip-to-git-bash-installation-on-windows
14+
15+
zip -r ../free-package.zip ../free-package/
16+
17+
echo 'Zip Completed!'
18+
19+
rm -d -r ../free-package
20+
21+
echo 'Task Completed!'

0 commit comments

Comments
 (0)