Socket
Book a DemoInstallSign in
Socket

enb-example-server

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enb-example-server

Simple bt-blocks example server

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
2
Created
Source

enb-example-server Build Status

Простой веб-сервер для просмотра верстки bt-блоков на лету. Этот инструмент не является самостоятельным и предназначен для использования внутри проектов с bt-шаблонизатором.

Установка

npm install --save-dev enb-example-server

Для работы модуля требуется зависимость от пакета enb версии 0.8.45 или выше.

Использование

Запуск сервера через supervisor:

supervisor enb-example-server

Веб-сервер принимает пути вида http://localhost:8080/pages/example/example.html?source=path/to/block.btjson.js, где:

  • pages/example/example.html — путь к специльной странице проекта, в контексте которой настроена сборка примеров блоков по заданному bt-шаблону;
  • path/to/block.btjson.js — bt-шаблон блока.

###Параметры

  • -p, --port — Порт. По умолчанию — 8080.

FAQs

Package last updated on 27 May 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