Giter VIP home page Giter VIP logo

pants.el's Introduction

pants.el

Description

This library provides an interface to pants, a fast, scalable build system.

Install

Get a copy of the repository:

git clone [email protected]:fcuny/pants.el.git

Then update your Emacs configuration:

(use-package pants
  :load-file "~/workspace/pants.el/pants.el"
  :bind (("C-c b" . pants-find-build-file)
         ("C-c r" . pants-run-binary)
         ("C-c t" . pants-run-test))
  :mode (("BUILD\\'" . pants-build-mode))
  :custom
  (pants-source-tree-root "/Users/fcuny/workspace/source")
  (pants-bury-compilation-buffer t)
  (pants-extra-args "-q"))

Configuration

There’s a few variables that you can set:

  • pants-completion-system: Which completion system to use. The possible values are Ivy, Ido and Helm. Ivy is the default one.
  • pants-source-tree-root: Path to the repository.
  • pants-ini: Name of the pants.ini file to use (default is pants.ini).
  • pants-exec-name: Path to the pants executable in the repository (default is pants)
  • pants-build-file: Name of the BUILD file to look for
  • pants-bury-compilation-buffer: Set to true if you want to bury the compilation buffer after running successfully a command
  • pants-extra-args: Optional arguments to use with every call to pants (for example: “-q”)
  • pants-exec-args: Optional arguments to the pants executable. The default is --no-color
  • pants-build-format-exec: Path to the `buildifier` executable. Required in order to format BUILD files.

Usage

Go to the closest BUILD file

Do m-x pants-find-build-file.

Run a binary target

Do m-x pants-run-binary. It will present a list of targets and let you select which one to run.

Run a test target

Do m-x pants-run-test. It will present a list of targets and let you select which one to run.

Jump to a REPL

Do m-x pants-run-python-repl. It will present a list of targets and create a REPL.

Format the BUILD file

Do m-x pants-build-fmt. It will format the BUILD file using `buildifier`.

pants.el's People

Contributors

fcuny 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.