Skip to content

browserify v2 plugin to compile PogoScript automatically

License

Notifications You must be signed in to change notification settings

featurist/pogoify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

browserify v2 plugin to compile PogoScript automatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.1%
  • PogoScript 3.9%