Git Product home page Git Product logo

bldr's Introduction

bldr

pronounced: builder

bldr helps you build your project in an isolated environment without poluting your machine with the respective build tools.

Abstract

Committing built resources into the VCS, like transpiled and minified JavaScript, is a huge pain when it comes to merging feature requests. Let's face it: built resources SHOULD NOT be in the VCS anyway. bldr helps you with that. It performs the build process in an isolated mini-container and writes the result straight into your project directory.

Installation

git clone https://github.com/akoenig/bldr

cd bldr
sudo make install

bldr ships with a default configuration which can be overwritten by defining them as environment variables when executing the respective make task:

sudo make install BOX_SOURCE=http://host.tld/path/to/a/provisioning/script

Available configurations

  • ALLOWED_GROUPS: The user groups allowed to use bldr (default: www-data)
  • BASE_BOX: URL of the base box (default: http://de.archive.ubuntu.com/ubuntu)
  • BASE_BOX_NAME: Product name of the base box (default: vivid)
  • BASE_BOX_ARCH: The machine's architecture (default: amd64)
  • BASE_BOX_VARIANT: The base box variant (default: buildd)
  • BOX_SOURCE: The box's provisioning script (default: https://raw.githubusercontent.com/akoenig/bldr/master/boxes/nodejs).

Usage

When bldr has been installed, the build workflow will look like:

cd your-project

# Fetch the recent version of the project (which does not contain the built files)
git pull --rebase origin master

bldr

Project configuration

bldr scans your project's package.json for a build attribute which defines the steps that should be executed for building the project. An example:

{
  "name": "foo-project",
  "version": "1.0.0",
  "scripts": {
      "compile": "gulp compile",
      "minify": "gulp minify"
  },
  "build": "npm run compile && npm run minify"
}

Author

Copyright 2015, André König ([email protected])

bldr's People

Watchers

 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.