diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 7b73724..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,67 +0,0 @@ -module.exports = function(grunt) { - - "use strict"; - - grunt.initConfig({ - - libFiles: [ - "src/**/*.purs", - "bower_components/purescript-*/src/**/*.purs" - ], - - clean: ["tmp", "output"], - - pscMake: { - lib: { - src: ["<%=libFiles%>"] - }, - tests: { - src: ["tests/Tests.purs", "<%=libFiles%>"] - } - }, - - dotPsci: ["<%=libFiles%>"], - - copy: [ - { - expand: true, - cwd: "output", - src: ["**"], - dest: "tmp/node_modules/" - }, { - src: ["js/index.js"], - dest: "tmp/index.js" - } - ], - - execute: { - tests: { - src: "tmp/index.js" - } - }, - - // produce a single js file - psc: { - examples: { - options: { - module: ["Main"], - main: false - }, - src: ["<%=libFiles%>"], - dest: "tmp/Main.js" - } - } - }); - - grunt.loadNpmTasks("grunt-contrib-copy"); - grunt.loadNpmTasks("grunt-contrib-clean"); - grunt.loadNpmTasks("grunt-execute"); - grunt.loadNpmTasks("grunt-purescript"); - - grunt.registerTask("test", ["pscMake:tests", "copy", "execute:tests"]); - grunt.registerTask("make", ["pscMake:lib", "dotPsci"]); - grunt.registerTask("default", - // ["clean", "make", "test"] - ["clean", "make", "psc:examples"] - ); -}; diff --git a/README.org b/README.org index 3002e53..ecff476 100644 --- a/README.org +++ b/README.org @@ -27,3 +27,8 @@ star = do right 144 forward 100 #+END_SRC + + +To run the example, build as follows, then point your browser at ~html/index.html~: + +: pulp browserify > html/index.js diff --git a/html/index.html b/html/index.html index d8058aa..e2394d3 100644 --- a/html/index.html +++ b/html/index.html @@ -27,6 +27,6 @@ // put origin at center context.translate(canvas.width/2, canvas.height/2); - +