-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
7 changed files
with
50 additions
and
2,658 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict' | ||
<<!!cat a.js>> | ||
<<!!cat mappings.js>> | ||
<<!!cat tajlorligilumi.js>> | ||
<<!!cat data.js>> | ||
<<!!cat versligilumi.js>> | ||
// from: https://github.com/mathusummut/confetti.js. Copyright (c) 2018 MathuSum Mut. MIT License | ||
<<!!cat res/confetti.min.js>> | ||
<<!!#cat test.js>> | ||
// remove the '#' in the previous line to perform the tests | ||
<<!!cat javascript.js>> | ||
<<!!cat res/jszip-utils.min.js>> | ||
<<!!cat z.js>> |
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 |
---|---|---|
@@ -1,10 +1,26 @@ | ||
index.html: .index.html a.js data.js *.js *.css | ||
perl -CSAD -nE 'while(s/<<!!(.*?)>>/`$$1`/ge){} print' "$<" > "$@" | ||
R=$(shell perl -nle 'push @a, /\bon\w+="([^"]+)\(\)/; END { printf "[%s]\n", join ",", sort @a }' .index.html) | ||
J=deno run --quiet --allow-read npm:uglify-js -c passes=5 -m toplevel,reserved=$R | ||
C=deno run --quiet --allow-read npm:clean-css-cli | ||
M=perl -CSAD minify.pl | ||
P=perl -CSAD -nE 'while(s/<<!!(.*?)>>/`$$1`/ge){} print' | ||
|
||
|
||
index.html: .index.html a.js data.js scripts.min.js style.min.css | ||
$P "$<" | $M > "$@" | ||
|
||
%.min.css: %.css | ||
$C "$<" > "$@" | ||
|
||
%.min.js: %.js | ||
$J "$<" > "$@" | ||
|
||
%.js: .%.js | ||
perl -CSAD -nE 'while(s/<<!!(.*?)>>/`$$1`/ge){} print' "$<" > "$@" | ||
$P "$<" > "$@" | ||
|
||
scripts.min.js: .scripts.js a.js data.js *.js | ||
$P "$<" | perl -CDAS -pe 's/const +say += +console\.log//' | $J > "$@" | ||
|
||
.PHONEY: clean | ||
|
||
clean: | ||
rm -f index.html a.js data.js | ||
rm -f index.html a.js data.js scripts.min.js style.min.css |
Oops, something went wrong.