git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Prelude makefile
84eb3d5Phil Freeman
libraries/.gitignorenew file+1
@@ -0,0 +1 @@
1+*/all.js
libraries/jquery/Makefile+3−3
@@ -1,4 +1,4 @@
1all:
1all:
2− cat jquery-wrapper.js > example.js
3− ../../dist/build/psc/psc jquery.ps example.ps >> example.js
2+ ../../dist/build/psc/psc jquery.ps example.ps -o all.js
3+ cat jquery.js >> all.js
4− echo "main()" >> example.js
4+ echo "main()" >> all.js
libraries/jquery/example.jsdeleted−9
@@ -1,9 +0,0 @@
1−function select(s) { return $(s); }
2−function create(s) { return $(s); }
3−function attr(j, a) { return j.attr(o); }
4−function css(j, a) { return j.css(o); }
5−function append(j1, j2) { return j1.append(j2); }
6−function appendTo(j1, j2) { return j1.appendTo(j2); }
7−function appendText(j1, s) { return j1.append(s); }
8−var main = (function () {var div = create("<div>");div = css(appendText(div)("Hello World!"))({color: "#FF0000"});div = appendTo(div)(select("body"));return {}})();
9−main()
libraries/jquery/jquery-wrapper.js → libraries/jquery/jquery.jsrenamed

The content is the same.

libraries/prelude/Makefilenew file+3
@@ -0,0 +1,3 @@
1+all:
2+ cat prelude.js > all.js
3+ ../../dist/build/psc/psc prelude.ps -o all.js