pogoify

v0.1.1
browserify v2 plugin for PogoScript with support for mixed .js and .pogo files
pogo browserify v2 js plugin transform

pogoify

browserify v2 plugin for PogoScript

mix and match .pogo and .js files in the same project

build status

install

npm install pogoify

usage

command line

browserify -t pogoify --extension .pogo app.pogo > app.js

-t pogoify tells browserify to compile any .pogo file it finds. --extension .pogo tells browserify to consider files with the .pogo extension.

You can also mix and match Pogoscript files with other languages supported by browserify.

express

npm install browserify-middleware

Then, in app.js:

var browserify = require('browserify-middleware');
    
...
    
app.get('browserapp.js', browserify('./browser/app.js', {transform: ['pogoify'], extensions: ['.pogo']}));

example files

given some files written in a mix of js and pogo:

foo.pogo, the entry file:

console.log(require './bar')

bar.js:

module.exports = require('./baz')(5)

baz.pogo:

module.exports (n) = n * 111

license

MIT

npm i pogoify

Metadata

  • MIT
  • Whatever
  • Josh Chisholm
  • released 8/4/2014

Downloads