Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42b917b
commit 951819c
Showing
20 changed files
with
699 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Prettify - Beautify the code snippets in your web page </title> | ||
<meta http-equiv="refresh" content="0;URL=http://prettify.mikemitterer.at/usage/"> | ||
</head> | ||
<body bgcolor="#ffffff"> | ||
The contents you are looking for have moved. You will be redirected to the new location automatically. | ||
Please bookmark the correct page at <a href="http://prettify.mikemitterer.at/usage/">http://prettify.mikemitterer.at/usage/</a> | ||
<p>Last update: <strong>{{lastupdate}}</strong></p> | ||
</body> | ||
</html> | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tools/gensamples.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
#!/bin/sh | ||
|
||
#------------------------------------------------------------------------------ | ||
# Little script makes the dart-code more readable. | ||
# Was | ||
# final ProcessResult result = Process.runSync( "sh", [ '-c', '(cd ${folder} && pub build)' ]); | ||
# | ||
|
||
FOLDER=$2 | ||
if test "${FOLDER}" == "" | ||
then | ||
FOLDER=`pwd` | ||
#elif [ -d ${FOLDER} ] | ||
#then | ||
# echo "$FOLDER does not exist!" | ||
# exit 2 | ||
fi | ||
|
||
cd ${FOLDER} | ||
|
||
#------------------------------------------------------------------------------ | ||
# Functions | ||
# | ||
|
||
buildCss() { | ||
echo "Running sassc + autoprefixer in `pwd`" | ||
|
||
SCSSFOUND=0 | ||
ERRORSTATE=1 | ||
if [ -e "web/demo.scss" ] | ||
then | ||
echo "sassc demo.scss -> demo.css && autoprefixer demo.css" | ||
sassc "web/demo.scss" "web/demo.css" && autoprefixer "web/demo.css" | ||
ERRORSTATE=$? | ||
SCCSFOUND=1 | ||
fi | ||
|
||
if [ -e "web/assets/scss/styleguide.scss" ] | ||
then | ||
echo "sassc styleguide.scss -> styleguide.scss && autoprefixer styleguide.scss" | ||
sassc "web/assets/scss/styleguide.scss" "web/assets/css/styleguide.css" && autoprefixer "web/assets/css/styleguide.css" | ||
ERRORSTATE=$? | ||
SCCSFOUND=1 | ||
fi | ||
|
||
if [ ${SCCSFOUND} -ne 1 ]; then | ||
echo "No SCSS-File found!" | ||
exit 1 | ||
fi | ||
|
||
if [ ${ERRORSTATE} -ne 0 ]; then | ||
exit ${ERRORSTATE} | ||
fi | ||
|
||
} | ||
|
||
buildJS() { | ||
echo "Building sample in `pwd`" | ||
# Now - run build | ||
pub build | ||
|
||
ERRORSTATE=$? | ||
if [ ${ERRORSTATE} -ne 0 ]; then | ||
exit ${ERRORSTATE} | ||
fi | ||
} | ||
|
||
pubUpdate() { | ||
echo "'pub update' in `pwd`" | ||
pub update | ||
|
||
ERRORSTATE=$? | ||
if [ ${ERRORSTATE} -ne 0 ]; then | ||
exit ${ERRORSTATE} | ||
fi | ||
} | ||
|
||
#------------------------------------------------------------------------------ | ||
# Options | ||
# | ||
|
||
usage() { | ||
echo | ||
echo "Usage: `basename $0` [ options ] <folder>" | ||
echo " --withcss Calls sassc + autoprefixer and makes a 'pub build'" | ||
echo " --jsonly 'pub build' in `pwd`" | ||
echo " --cssonly Calls sassc + autoprefixer" | ||
echo " --update 'pub build' in `pwd`" | ||
echo | ||
} | ||
|
||
case "$1" in | ||
help|-help|--help) | ||
usage | ||
;; | ||
|
||
withcss|-withcss|--withcss) | ||
buildCss | ||
buildJS | ||
;; | ||
|
||
jsonly|-jsonly|--jsonly) | ||
buildJS | ||
;; | ||
|
||
cssonly|-cssonly|--cssonly) | ||
buildCss | ||
;; | ||
|
||
update|-update|--update) | ||
pubUpdate | ||
;; | ||
|
||
*) | ||
usage | ||
;; | ||
|
||
esac | ||
exit 0 |
Oops, something went wrong.