Socket
Book a DemoInstallSign in
Socket

feast-dev

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feast-dev

FeastDevServer — live coding & components

latest
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

feast-dev

DEV-сервер для разработки.

Быстрый старт

  • npm i --save-dev feast-dev
  • node ./node_modules/feast-dev/index.js --feast-demo (это просто демка)

Кастомизация под проект

  • Добавляем в packages.json -> scripts: "start": "./index.js"
  • Создаём точку входа в проект: touch ./index.js
// Точка входа (dev server)
const feastDev = require('feast-dev');
const jamPath = 'app/packages';

feastDev.createSimpleApp({
	name: 'my-cool-project',
	port: 2017, // Обязательно поменяйте на что-то своё
	feastGUI: '/app/feast/',
	publicPath: __dirname,
	blocksPath: '/app/blocks/',
	injectHTML: [
		`<style>
			body {
				font-size: 13px;
				font-family: 'San Francisco', Helvetica, Arial, sans-serif;
			}
		</style>`
	],
	injectJS: [
		`/${jamPath}/require.config.js`
	],
	feastGUIOptions: {
		cssModules: true
	},
	socketOptions: {
		path: '/app/socket.io'
	}
});

FeastDev + Nginx

location /app {
	set $sock_path "http://unix:/tmp/my-project.$developer.sock";
	proxy_pass $sock_path;
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection $connection_upgrade;
}
'use strict';

const feastDev = require('feast-dev');
const jamPath = 'app/packages';

feastDev.createSimpleApp({
	// ...
	port: `/tmp/my-project.${process.env.USER}.sock`,
});

FAQs

Package last updated on 26 Dec 2017

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