New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

component-serve

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-serve

Development server that builds your components on every request

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

component-serve

Development server that rebuilds your components on every request.

Installation

npm install -g component-serve

CLI usage

In the app directory run

# Running on localhost:3000
$ component serve

# Running on localhost:3030
$ component serve -p 3030

# Running on localhost:3000 and output at directory named `out`
# Compiled files available on /out/build.js /out/build.css
$ component serve --out out

# Running on localhost:3000 and use component-styl builder plugin
$ npm install component-styl --save
$ component serve --use component-styl

# Running on localhost:3000 and compile build.js without require
$ component serve --no-require

Programmatic usage

It is possible to use component-serve as an Express middleware:

var cs = require('component-serve');

app.use('/build', cs({
  root: process.cwd(),
  plugins: [ require('component-jade') ]
}));

FAQs

Package last updated on 09 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc