Coder Social home page Coder Social logo

find-local-executable's Introduction

find-local-executable

Find executables installed locally by npm, yarn, composer, stack, pip, gem...

Motivation

When we use packages like flycheck, company, lsp we often install the tools locally in a specific version using a package manager. These packages often only look for a globally installed executable which might not be what we want.

Usage

This package provides a uniform interface for setting up paths to executables installed locally (meaning not system-wide).

To find the flow binary installed by npm or yarn, use

(find-local-executable-nodejs "flow")

You can substitute "flow" with any binray you want.

The general pattern is:

(defun find-local-executable-PLATFORM (binary &optional use-global-fallback))

On top of that, we support many popular packages out of the box. For example, to set up paths for packages relying on "flow" in nodejs, use:

(find-local-executable-nodejs-setup-flow)

This will configure paths for (among others)

company-flow-executable
flow-minor-default-binary
flycheck-javascript-flow-coverage-executable
flycheck-javascript-flow-executable
lsp-clients-flow-server

The general pattern is

(defun find-local-executable-PLATFORM-setup-BINARY ())

Following is an exhaustive list of supported platforms. If you don't see your favorite platform, please open an issue or even better submit a pull request!

Supported platforms

nodejs [via npm, yarn]

Binary:

(find-local-executable-nodejs BINARY)

Supported binaries:

(find-local-executable-nodejs-setup-flow)
(find-local-executable-nodejs-setup-eslint)

typescript [via npm, yarn]

Binary:

(find-local-executable-typescript BINARY)

Supported binaries:

(find-local-executable-typescript-setup-tslint)
(find-local-executable-typescript-setup-prettier)

php [via composer]

Binary:

(find-local-executable-php BINARY)

Supported binaries:

(find-local-executable-php-setup-phpstan)
(find-local-executable-php-setup-phpcs)

find-local-executable's People

Contributors

fuco1 avatar

Stargazers

 avatar yqrashawn avatar  avatar tg-z avatar Mike Shevchuk avatar Panagiotis Koutsourakis avatar wouter bolsterlee avatar Burin Choomnuan avatar Jumpei KAWAMI avatar Yuan Fu avatar Yue Bulu avatar Clemens Radermacher avatar

Watchers

James Cloos avatar  avatar  avatar

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.