Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update sample code, Jakefile

  • Loading branch information...
commit c55259fabefa6a4855d63c79ddb5390ef294b621 1 parent 96f26e7
@McLeopold authored
Showing with 16 additions and 18 deletions.
  1. +15 −17 Jakefile.js
  2. +1 −1  web/js/index.js
View
32 Jakefile.js
@@ -9,25 +9,24 @@ var PEG = require('pegjs')
task('default', ['deploy']);
task('deploy', [], function () {
- run('rm -R deploy')
- .run('mkdir deploy')
+ run('rm -Rf deploy/*')
.run('mkdir deploy/js')
.run('mkdir deploy/css')
.run('jake -f scheem/Jakefile.js -C scheem')
- .run('cp scheem/scheem*.js deploy/js/')
- .run('cp scheem/scheem.peg deploy/')
- .run('cp scheem/test/*.js deploy/js/')
- .run('cp scheem/test/*.html deploy/')
- .run('cp node_modules/mocha/mocha.js deploy/js/')
- .run('cp node_modules/mocha/mocha.css deploy/css/')
- .run('cp node_modules/chai/chai.js deploy/js/')
- .run('cp codemirror2/lib/codemirror.js deploy/js/')
- .run('cp codemirror2/lib/codemirror.css deploy/css/')
- .run('cp codemirror2/theme/monokai.css deploy/css/')
- .run('cp codemirror2/mode/scheme/scheme.js deploy/js/')
- .run('cp web/*.html deploy/')
- .run('cp web/js/*.js deploy/js/')
- .run('cp web/css/*.css deploy/css/')
+ .run('cp -v scheem/scheem*.js deploy/js/')
+ .run('cp -v scheem/scheem.peg deploy/')
+ .run('cp -v scheem/test/*.js deploy/js/')
+ .run('cp -v scheem/test/*.html deploy/')
+ .run('cp -v node_modules/mocha/mocha.js deploy/js/')
+ .run('cp -v node_modules/mocha/mocha.css deploy/css/')
+ .run('cp -v node_modules/chai/chai.js deploy/js/')
+ .run('cp -v codemirror2/lib/codemirror.js deploy/js/')
+ .run('cp -v codemirror2/lib/codemirror.css deploy/css/')
+ .run('cp -v codemirror2/theme/monokai.css deploy/css/')
+ .run('cp -v codemirror2/mode/scheme/scheme.js deploy/js/')
+ .run('cp -v web/*.html deploy/')
+ .run('cp -v web/js/*.js deploy/js/')
+ .run('cp -v web/css/*.css deploy/css/')
});
function puts(callback) {
@@ -48,7 +47,6 @@ function run(cmd, seq) {
}
if (typeof cmd === 'string') {
seq.push(function (callback) {
- console.log('running ' + cmd + '...');
exec(cmd, puts(callback));
});
}
View
2  web/js/index.js
@@ -5,7 +5,7 @@ var log_console = function(msg) {
// After page load
$(function() {
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('input'), {
- value: "(+ 1 1)\n",
+ value: "(begin\n ;; accumulator maker function\n (define foo (lambda (n)\n (lambda (i) (begin\n (set! n (+ n i))\n n))))\n \n ;; make accumulator starting at 7\n (define bar (foo 7))\n \n (alert (bar 5)) ;; returns 12\n (alert (bar 3)) ;; return 15\n )",
mode: "scheme",
theme: "monokai"
});
Please sign in to comment.
Something went wrong with that request. Please try again.