Giter Site home page Giter Site logo

bloop's Introduction

g38782

Bloop gives you fast edit/compile/test workflows for Scala.

Goals

To understand the goals of bloop, we strongly encourage you to read this Scala blog post.

Bloop is a command-line tool for fast edit/compile/test workflows. Its primary goal is to compile and test your project as fast as possible, offering a snappy developer experience. Bloop does not aim to replace your stock build tool, but rather complement it.

Disclaimer: Bloop is in beta, that means that you should not expect everything to make sense and you should be ready to see unexpected behaviours. We're working hard to quickly improve it, and we encourage you to update master on a daily basis if you start using the tool.

Installation

Building Bloop locally

Bloop is not released yet. To publish bloop locally, you'll need to clone this repository and use sbt:

$ git clone --recursive https://github.com/scalacenter/bloop.git
$ cd bloop
$ sbt
> install
> frontend/version # copy this version number
$ bin/install.sh <version> # paste here the version number obtained above

The script will create the executables ~/.bloop/bloop-server and ~/.bloop/bloop-ng.py.

We suggest that you add the following to your shell configuration:

export PATH="$PATH:~/.bloop"
alias bloop="bloop-ng.py bloop.Cli"

The next sections assume that you've added those lines to your profile, and reloaded your shell.

Installing a released version of Bloop

Bloop hasn't been released yet, so these instructions won't work!

Our installation script lets you install those two components:

$ curl https://raw.githubusercontent.com/scalacenter/bloop/master/bin/install.sh | sh

The script will create the executables ~/.bloop/bloop-server and ~/.bloop/bloop-ng.py.

We suggest that you add the following to your shell configuration:

export PATH="$PATH:~/.bloop"
alias bloop="bloop-ng.py bloop.Cli"

The next sections assume that you've added those lines to your profile, and reloaded your shell.

How to use

Generate the configuration files

First, we'll need to generate Bloop's configuration files for your project. To do this, add the following sbt plugin in project/plugins.sbt in your project, where VERSION_NUMBER is replaced by the commit your bloop repository is at:

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "VERSION_NUMBER")

You can then use sbt to generate the configuration:

$ sbt installBloop

Start the server

Using the server that you previously installed, run:

$ bloop-server &

Note that you only need to start the server once on your machine, and you can use it with as many projects as you want, simultaneously.

Command examples

$ bloop projects # show the projects that are loaded
$ bloop compile -p my-project # compile my-project
$ bloop test -p my-project-test # run the tests on my-project
$ bloop exit # shuts the compilation server down

Command reference

$ bloop --help
Usage: bloop [options] [command] [command-options]


Available commands: about, clean, compile, help, projects, test
Type `bloop 'command' --help` for help on an individual command

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.