Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added support for pogoscript #12

Open
wants to merge 2 commits into from

1 participant

@refractalize

Simple patch to add support for PogoScript.

Didn't see any automated tests, should there be any for this?

@refractalize

Any movement on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 28, 2012
  1. @refractalize
Commits on Oct 30, 2012
  1. @refractalize

    added pogo to docs

    refractalize authored
This page is out of date. Refresh to see the latest.
Showing with 25 additions and 3 deletions.
  1. +1 −0  README.md
  2. +8 −0 compiler.co
  3. +16 −3 compiler.js
View
1  README.md
@@ -315,6 +315,7 @@ server = connect.createServer(
- [Jison](http://zaach.github.com/jison/) Compiler: `jison`
- [YAML](https://github.com/visionmedia/js-yaml) Compiler: `yaml`
- [Snockets](http://github.com/TrevorBurnham/snockets) Compiler: `snockets`
+- [PogoScript](http://pogoscript.org/) Compiler: `pogo`
## Feedback
View
8 compiler.co
@@ -505,6 +505,13 @@ class exports.CocoCompiler extends Compiler
compileSync : 'compile'
-> super ...
+class exports.PogoCompiler extends Compiler
+ id : 'pogo'
+ ext : '.pogo'
+ destExt : '.js'
+ module : 'pogo'
+ compileSync : 'compile'
+ -> super ...
class exports.UglifyCompiler extends Compiler
id : 'uglify'
@@ -687,6 +694,7 @@ class exports.YamlCompiler extends Compiler
[ CoffeeScriptCompiler
CocoCompiler
+ PogoCompiler
UglifyCompiler
JadeCompiler
JadeBrowserPrecompiler
View
19 compiler.js
@@ -1,4 +1,4 @@
-var fs, path, parse, EventEmitter, ref$, exec, spawn, Seq, setup, exports, compilers, DEFAULTS, LOG, CompilerMiddleware, register, Compiler, ExternalCompiler, CoffeeScriptCompiler, SnocketsCompiler, CocoCompiler, UglifyCompiler, JadeCompiler, JadeBrowserPrecompiler, HandlebarsCompiler, HandlebarsBrowserPrecompiler, StylusCompiler, LessCompiler, SassCompiler, SassRubyCompiler, JisonCompiler, YamlCompiler, helpers, expand, extrema, commonPrefix, commonPath, mkdirp, slice$ = [].slice;
+var fs, path, parse, EventEmitter, ref$, exec, spawn, Seq, setup, exports, compilers, DEFAULTS, LOG, CompilerMiddleware, register, Compiler, ExternalCompiler, CoffeeScriptCompiler, SnocketsCompiler, CocoCompiler, PogoCompiler, UglifyCompiler, JadeCompiler, JadeBrowserPrecompiler, HandlebarsCompiler, HandlebarsBrowserPrecompiler, StylusCompiler, LessCompiler, SassCompiler, SassRubyCompiler, JisonCompiler, YamlCompiler, helpers, expand, extrema, commonPrefix, commonPath, mkdirp, slice$ = [].slice;
fs = require('fs');
path = require('path');
parse = require('url').parse;
@@ -616,6 +616,19 @@ exports.CocoCompiler = CocoCompiler = (function(superclass){
}
return CocoCompiler;
}(Compiler));
+exports.PogoCompiler = PogoCompiler = (function(superclass){
+ PogoCompiler.displayName = 'PogoCompiler';
+ var prototype = extend$(PogoCompiler, superclass).prototype, constructor = PogoCompiler;
+ prototype.id = 'pogo';
+ prototype.ext = '.pogo';
+ prototype.destExt = '.js';
+ prototype.module = 'pogo';
+ prototype.compileSync = 'compile';
+ function PogoCompiler(){
+ superclass.apply(this, arguments);
+ }
+ return PogoCompiler;
+}(Compiler));
exports.UglifyCompiler = UglifyCompiler = (function(superclass){
UglifyCompiler.displayName = 'UglifyCompiler';
var prototype = extend$(UglifyCompiler, superclass).prototype, constructor = UglifyCompiler;
@@ -844,7 +857,7 @@ exports.YamlCompiler = YamlCompiler = (function(superclass){
}
return YamlCompiler;
}(Compiler));
-[CoffeeScriptCompiler, CocoCompiler, UglifyCompiler, JadeCompiler, JadeBrowserPrecompiler, HandlebarsCompiler, HandlebarsBrowserPrecompiler, StylusCompiler, LessCompiler, SassCompiler, JisonCompiler, SassRubyCompiler, YamlCompiler, SnocketsCompiler].map(register);
+[CoffeeScriptCompiler, CocoCompiler, PogoCompiler, UglifyCompiler, JadeCompiler, JadeBrowserPrecompiler, HandlebarsCompiler, HandlebarsBrowserPrecompiler, StylusCompiler, LessCompiler, SassCompiler, JisonCompiler, SassRubyCompiler, YamlCompiler, SnocketsCompiler].map(register);
helpers = exports.helpers = {};
helpers.expand = expand = function(){
var parts, p, home;
@@ -957,4 +970,4 @@ function import$(obj, src){
var own = {}.hasOwnProperty;
for (var key in src) if (own.call(src, key)) obj[key] = src[key];
return obj;
-}
+}
Something went wrong with that request. Please try again.