1.0.4 • Published 8 years ago

inject-dev-server v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

inject-dev-server

A simple dev-server designed to watch for changes, build files with inject-files, and refresh with livereload.

See livereload for installation details.

This server can be used without livereload, you will just need to manually refresh the browser when files change.

usage

global

$ npm install inject-dev-server --global

$ inject-dev-server

as a dev-dependency

install
$ npm install inject-dev-server --save-dev
in package.json
{
  ...
  "scripts": {
		"dev-server": "inject-dev-server"
	},
  ...
}
run the npm-script
$ npm run dev-server

Config

Settings are read from a local .inject.json file.

source

When a file in this directory changes inject-files will run using the specified input and output files.

input

Name of the input file. This file will be read from the specified source directory.

build

When a file in this directory changes live-reload will attempt to refresh the browser.

output

Name of the output file. This file will be created in the specified build directory.


related

inject-files - inject-files API

GitHub: inject-files

npm: inject-files

inject-files-cli - inject files CLI

GitHub: inject-files-cli

npm: inject-files-cli

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago