https://github.com/serapath/ghostmodeify
my custom watching build pipeline
https://github.com/serapath/ghostmodeify
Last synced: about 1 year ago
JSON representation
my custom watching build pipeline
- Host: GitHub
- URL: https://github.com/serapath/ghostmodeify
- Owner: serapath
- Created: 2015-09-20T22:44:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T04:16:42.000Z (almost 11 years ago)
- Last Synced: 2025-03-22T03:34:09.086Z (over 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ghostmodeify
*prepend browsersync-client script tag to bundle.js*
It will enable `ghost-mode` to synchronize `clicks`, `scrolls`, `location` and 'form' events across connected webviews (browsers, ...)
## Install
```sh
npm install ghostmodeify --save-dev
```
## Usage
```js
var browserify = require('browserify')
var ghostmodeify = require('ghostmodeify')
var b = browserify()
b.add('/path/to/your/source/file.js')
b.plugin(ghostmodeify)
b.bundle().pipe(process.stdout)
```
or
```bash
npm install browserify ecstatic -g
ecstatic & browserify index.js -p ghostmodeify > bundle.js
```
or
```bash
npm install watchify ecstatic -g
ecstatic & watchify index.js -p ghostmodeify -o bundle.js -dv
```
where
```html
```
so that `index.html` is served from `localhost`.
## Roadmap
* Rewride `ghostmodeify` so that it also works when `index.html` is just opened through "doubleclick", which needs a change to `browser-sync`. If you want to help with that, drop me a message