Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    fly-nodemonpublic

    Nodemon plugin for Fly.

    npm package

    Usage

    Check out the documentation to see the available options.

    Install

    npm install -D fly-nodemon

    Example

    JavaScript

    const paths = {
      scripts: ["src/**/*.js", "!src/ignore/**/*.js"]
    }
     
    export default function* () {
      yield this.watch(paths.scripts, ["restart"])
    }
     
    export function* restart () {
      yield this.nodemon({
        script: "src/app.js",
        events: {
          restart: "google-chrome http://localhost:3000/"
        }
      })
    }

    Earl-Grey

    paths = {
      scripts = {"src/**/*.eg", "!src/ignore/**/*.eg"}
    }
     
    provide: default, restart
     
    default = *-> yield this.watch(paths.scripts, {"restart"})
     
    restart = *-> yield this.nodemon with {
      script = "src/app.eg"
      events = {
        restart = "google-chrome http://localhost:3000/"
      }
    }
     

    License

    MIT © Jake Russo et al

    install

    npm i fly-nodemon

    Downloadsweekly downloads

    6

    version

    0.1.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar