forked from themeum/kirki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
66 lines (59 loc) · 1.49 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
echo ""
echo "******************************************"
echo "** **"
echo "** Cloning repository... **"
if [ -d "../kirki-package" ]; then
rm -rf ../kirki-package &> /dev/null
mkdir ../kirki-package
fi
git clone https://github.com/aristath/kirki.git ../kirki-package/kirki &> /dev/null
cd ../kirki-package/kirki
echo "** Running npm install... **"
npm install &> /dev/null
echo "** Running grunt... **"
grunt &> /dev/null
echo "** Cleaning up files... **"
rm -rf .git
rm -rf .github
rm -rf .sass-cache
rm -rf controls/css/*.map
rm -rf controls/js/src
rm -rf controls/scss
rm -rf docs
rm modules/collapsible/*.scss
rm modules/collapsible/*.map
rm modules/custom-sections/*.scss
rm modules/custom-sections/*.map
rm modules/tooltips/*.scss
rm modules/tooltips/*.map
rm -rf node_modules
rm -rf tests
rm .codeclimate.yml
rm .coveralls.yml
rm .csslintrc
rm .editorconfig
rm .gitignore
rm .jscsrc
rm .jshintignore
rm .jshintrc
rm .simplecov
rm .travis.yml
rm CODE_OF_CONDUCT.md
rm composer.*
rm -rf vendor/
rm example.php
rm Gruntfile.js
rm package.json
rm phpcs.ruleset.xml
rm phpunit.xml
rm README.md
rm *.sh
cd ..
zip -rq kirki.zip kirki
echo "** All done. **"
echo "** Final plugin ready for release **"
echo "** You can get in from ../kirki-package **"
echo "** **"
echo "****************** DONE ******************"
echo ""