0.1.1 • Published 10 years ago

pogoify v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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

0.1.1

10 years ago

0.0.3

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

11 years ago