Server for AcyOrt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.eslintrc
.gitignore
LICENSE
README.md
index.js
package.json

README.md

acyort-server

AcyOrt LiveReload server plugin

Install

$ npm i acyort-server -S

Usage

add acyort-server to config.yml

# plugins, npm modules
plugins:
  - acyort-server

use

# default port 2222
$ acyort server [port]

it will listen templates files change, and reload page or css

you get server status

// on AcyOrt workflow
module.exports = (acyort) => {
  acyort.workflow.register(function () {
    // store key is `server_status`
    console.log(acyort.store.get('server_statue'))
    /*
      {
        path: '...',
        event: '...'
      }
    */
  })
}

Test

install AcyOrt

$ npm i acyort -g

test

$ cd test
$ acyort server [port]