Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

accept server instance as an option, so it may intergrate with other app... #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sskyy
Copy link

@sskyy sskyy commented Sep 25, 2014

with this pr, you can use it with express like :

var express = require('express'),
  app = express(),
  http = require("http"),
  server = http.createServer(app)

flo(PATH_TO_DIR,{
    server:server,
    glob:[
      '**/*.css',
      '**/*.html',
      '**/*.jade'
    ]},function( filepath, callback){

      callback({
        resourceURL : resourceURL,
        contents : fs.readFileSync(path.join(root,filepath)),
        update : function( _window,_resourceURL){
        }
      })
    }
  })

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@patrickkettner
Copy link

@sskyy I don't believe the package.json should be pointing to your fork of it, plus this no wseems like it would need a rebase. Could you update?

@ghost
Copy link

ghost commented Aug 5, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

@ghost ghost added the CLA Signed label Jul 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants