setup repository
This commit is contained in:
parent
ee84da129d
commit
6478d45d28
|
@ -0,0 +1,4 @@
|
||||||
|
build-config.cfg
|
||||||
|
src/style.css
|
||||||
|
src/style.css.map
|
||||||
|
src/scss/.sass-cache
|
|
@ -0,0 +1,2 @@
|
||||||
|
# the destination folder, inside the plugins folder of some WordPress installation
|
||||||
|
destination=~/devel/wordpress/wp-content/themes/tainacan
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
## Run the build script whenever there is a change in src folder
|
||||||
|
|
||||||
|
|
||||||
|
echo 'Watching changes on src/'
|
||||||
|
|
||||||
|
while inotifywait -qqr src -e create,move,modify,delete; do
|
||||||
|
echo
|
||||||
|
echo 'Change detected, running build'
|
||||||
|
./build.sh
|
||||||
|
done
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source build-config.cfg
|
||||||
|
|
||||||
|
## Compile SASS
|
||||||
|
sh compile-sass.sh
|
||||||
|
|
||||||
|
## Install composer dependencies
|
||||||
|
## composer install
|
||||||
|
|
||||||
|
echo "Updating files in $destination"
|
||||||
|
rm -rf $destination
|
||||||
|
mkdir $destination
|
||||||
|
cp -R src/* $destination/
|
||||||
|
rm -rf $destination/scss
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Executa o comando 'sass' para verificar se existe (veja http://stackoverflow.com/a/677212/329911)
|
||||||
|
command -v sass >/dev/null 2>&1 || {
|
||||||
|
echo >&2 "SASS parece não está disponivel.";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Define o caminho.
|
||||||
|
echo "Compilando Sass..."
|
||||||
|
cd src/scss
|
||||||
|
|
||||||
|
sass -E 'UTF-8' style.scss:../style.css
|
||||||
|
|
||||||
|
echo "Compilação do Sass Concluído!"
|
||||||
|
exit 0
|
Loading…
Reference in New Issue