mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
update generator move data outside pages
This commit is contained in:
parent
15aef9ab84
commit
7da9a87c98
1
data/themes.json
Normal file
1
data/themes.json
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,5 @@
|
|||||||
/* global $, fetch, console */
|
/* global $, fetch, console */
|
||||||
/* eslint no-undef: "error", semi: 2 */
|
/* eslint no-undef: "error", semi: 2 */
|
||||||
/* jshint esversion: 6 */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -48,21 +48,21 @@ createColors() {
|
|||||||
|
|
||||||
mkdir -p $SCRIPT_PATH/../.tmp
|
mkdir -p $SCRIPT_PATH/../.tmp
|
||||||
|
|
||||||
echo '{' > $SCRIPT_PATH/../gh-pages/data/themes.json
|
echo '{' > $SCRIPT_PATH/../data/themes.json
|
||||||
echo ' "themes": [' >> $SCRIPT_PATH/../gh-pages/data/themes.json
|
echo ' "themes": [' >> $SCRIPT_PATH/../data/themes.json
|
||||||
|
|
||||||
ls -1 $SCRIPT_PATH/../themes/*.sh | while read a; do grep "export" $a > "${a/themes/.tmp}"; done
|
ls -1 $SCRIPT_PATH/../themes/*.sh | while read a; do grep "export" $a > "${a/themes/.tmp}"; done
|
||||||
|
|
||||||
ls -1 $SCRIPT_PATH/../.tmp/*.sh | while read a; do sed -i /IMPORTANT/d "${a}"; done
|
ls -1 $SCRIPT_PATH/../.tmp/*.sh | while read a; do sed -i /IMPORTANT/d "${a}"; done
|
||||||
|
|
||||||
ls -1 $SCRIPT_PATH/../.tmp/*.sh | while read a; do createColors "$a" >> $SCRIPT_PATH/../gh-pages/data/themes.json; done
|
ls -1 $SCRIPT_PATH/../.tmp/*.sh | while read a; do createColors "$a" >> $SCRIPT_PATH/../data/themes.json; done
|
||||||
|
|
||||||
echo ' ]' >> $SCRIPT_PATH/../gh-pages/data/themes.json
|
echo ' ]' >> $SCRIPT_PATH/../data/themes.json
|
||||||
echo '}' >> $SCRIPT_PATH/../gh-pages/data/themes.json
|
echo '}' >> $SCRIPT_PATH/../data/themes.json
|
||||||
|
|
||||||
cat $SCRIPT_PATH/../gh-pages/data/themes.json | tr -d " \t\n\r" > $SCRIPT_PATH/../gh-pages/data/themes.json.tmp
|
cat $SCRIPT_PATH/../data/themes.json | tr -d " \t\n\r" > $SCRIPT_PATH/../data/themes.json.tmp
|
||||||
sed 's/},]}/}]}/g' $SCRIPT_PATH/../gh-pages/data/themes.json.tmp > $SCRIPT_PATH/../gh-pages/data/themes.json
|
sed 's/},]}/}]}/g' $SCRIPT_PATH/../data/themes.json.tmp > $SCRIPT_PATH/../data/themes.json
|
||||||
rm $SCRIPT_PATH/../gh-pages/data/themes.json.tmp
|
rm $SCRIPT_PATH/../data/themes.json.tmp
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "File location:"
|
echo "File location:"
|
||||||
|
Loading…
Reference in New Issue
Block a user