Coder Social home page Coder Social logo

component-serve's People

Contributors

alekseykulikov avatar mnmly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

component-serve's Issues

Feature Request: Allow for programmatic use

It would be really handy if this could be mounted within an existing application as either a middleware or a "sub-application".

I've got a component I develop internally for hitting our custom API. For browsers w/o CORS capability, I have a little proxy that I run so I can still run those browser unit tests. In a nutshell, something like this could probably be accomplished:

var express = require("express"),
    cs = require("component-serve"),
    app = module.exports = express();

app.use("/build", cs({
    root: process.cwd(),
    plugins: [ /* plugin list here */ ]
}));

I'll spend some time working on adding this capability myself, and submitting as a PR. Of course the CLI interface would remain first-class, I wouldn't try to change that.

static file server

If I point my browser to a path that is a directory but has no index.html in it I don't get the directory listing I normally would with expresses static file server. see visionmedia/serve for what I mean by a directory listing. I think the problem could be the rebuild path is interfering with the static file server either that or just config options need to be set on the static serving middleware.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.