pogoify
browserify v2 plugin for PogoScript with support for mixed .js and .pogo files
Last updated 6 years ago by refractalize .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pogoify 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (6 years ago)

5 Versions

  • 0.1.1                                ...           6 years ago
  • 0.0.3                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |