pogoify

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i pogoify

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • joshski
  • refractalize