Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stencil/dev-server

Package Overview
Dependencies
Maintainers
11
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencil/dev-server

Tiny LiveReload server that watches a single directory

  • 0.0.19-0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
47
decreased by-9.62%
Maintainers
11
Weekly downloads
 
Created
Source

npm Build Status

Stencil Dev Server

This is a very simple http-server with a filewatcher and livereload built in. This server was built with the purpose of making it easy to develop stencil apps and components, but it will work with about any dev workflow.

Just provide a directory.

stencil-dev-server --root public

There are a number of options available, but all have sane defaults.

  • --root
    • The directory that should be watched and served
    • It defaults to the current directory that the command was executed from.
  • --watchGlob
    • The pattern of files to watch in the root directory for changes.
    • The glob defaults to **/**.
  • --address
    • The ip address that the server should listen to.
    • Defaults to 0.0.0.0. Point your browser to localhost.
  • --httpPort
    • The port that the http server should use. If the number provided is in use it will choose another.
    • Defaults to 3333.
  • --liveReloadPort
    • The port that the live-reload server should use. If the number provided is in use it will choose another.
    • Defaults to 35729.
  • --additionalJsScripts
    • A comma separated list of javascript files that you would like appended to all html page body tags. This allows you to expand the dev server to do additional behaviors.
  • --config
    • The path to a config file for the dev server. This allows you to keep a specific set of default parameters in a configuration file.
    • Defaults to ./stencil.config.js
  • --no-open
    • Disables automatically opening a browser.

Config File Structure

exports.devServer = {
  root: './',
  additionalJSScripts: [
    'http://localhost:3529/debug.js',
    './scripts/additionalDebug.js'
  ],
  watchGlob: '**/*'
};

FAQs

Package last updated on 08 Feb 2018

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