Git Product home page Git Product logo

watchexec-bin's Introduction

watchexec-bin

npm version Build Status Coverage Status

An npm package to install a watchexec prebuilt binary

Installation

Use npm.

npm install watchexec-bin

As this package makes use of install npm script in order to download a binary for the current platform, ignore-scripts npm-config cannot be enabled while executing the command above.

API

require('watchexec-bin')

Type: string

An absolute path to the installed watchexec binary, which can be used with child_process functions.

const {spawn} = require('child_process');
const watchexec = require('watchexec');

spawn(watchexec, ['--', 'ls', '-la']);

CLI

Once this package is installed to the project directory, users can execute watchexec command inside npm scripts of the project.

"watch-js": "watchexec --ext js eslint ."
$ npm run-script watch-js

License

ISC License © 2018 Shinnosuke Watanabe

watchexec

Apache License 2.0 © 2016 Matt Green

watchexec-bin's People

Contributors

shinnn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

watchexec-bin's Issues

Failed install on ubuntu/macos node 16 (CI)

https://github.com/unlight/github-actions-playground/runs/4607193447?check_suite_focus=true

Run npm install
npm ERR! code 1
npm ERR! path /home/runner/work/github-actions-playground/github-actions-playground/node_modules/watchexec-bin
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Error: Failed to load "request" module from the current working directory (/home/runner/work/github-actions-playground/github-actions-playground/node_modules/watchexec-bin). Then tried to load "request" from the npm CLI directory (/opt/hostedtoolcache/node/16.13.1/x64/lib/node_modules/npm), but it also failed. Install "request" and try again. (`npm install request`)
npm ERR!     at loadFromCwdOrNpm (/home/runner/work/github-actions-playground/github-actions-playground/node_modules/load-from-cwd-or-npm/index.js:85:18)
npm ERR!     at async Promise.all (index 0)
npm ERR!     at async /home/runner/work/github-actions-playground/github-actions-playground/node_modules/watchexec-bin/install.js:52:31

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-12-22T13_14_07_986Z-debug.log
Error: Process completed with exit code 1.

No such issue on Node v14 - https://github.com/unlight/github-actions-playground/runs/4607193315?check_suite_focus=true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.