miscer / component-serve Goto Github PK
View Code? Open in Web Editor NEWDevelopment server that builds your components on every request.
Development server that builds your components on every request.
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.
i'd be cool if there was an option to install/re-install deps on each request
component-install could be used
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.