bake 2.1.0 icon indicating copy to clipboard operation
bake: ^2.1.0 copied to clipboard

Build your projects with simple rules across platforms. This project is heavily inspired by the GNU Make project!

BAKE 🥖 #

Build Status

Build your projects with simple rules across platforms. 🥖

About 📚 #

I think that Makefile is a very useful project because it allows users to implement a simple way to define rules for building their projects across platforms. Bake is like Make but takes a simpler approach and is a Dart project! ;)

Using the library ⛏ #

Installation #

From Pub.dev

Add the library to your pubspec.yaml by adding this to it:

dependencies:
  ...
  bake: ^2.1.0

From GitHub

Add the library to your pubspec.yaml by adding this to it:

dependencies:
  bake:
    git: git://github.com/iamtheblackunicorn/Bake.git

Importing the API #

Import the API like this:

import 'package:bake/bake.dart';

Building ⚒ #

Prerequisites #

Make sure you have the following programmes installed:

  • GNU Make
  • Git
  • Dart SDK

Build it! #

  • 1.) Get the latest source code:
$ git clone https://github.com/iamtheblackunicorn/Bake.git
  • 2.) Change into the source directory's root:
$ cd Bake
  • 3.) Compile an executable:
$ make build

This should produce a binary file by the name of bake in a sub-directory called dist.

Installation 📥 #

Linux & Mac OSX #

Add this line to your .zshrc, .bashrc or .bash_profile in $HOME:

export PATH="$HOME/blackunicorn/bin:$PATH"

After having done that, create a directory called blackunicorn in $HOME and in blackunicorn a directory called bin.

Windows #

Go to your "System Settings", go to "This PC" or "My PC" and right-click that entry. Then go to "Edit Environment Variables". Add this line to the dialog that appears:

C:\blackunicorn\bin

Save that and quit the "System Settings". After having done that, go to the File Explorer and create a directory called blackunicorn in C:\ and in blackunicorn a directory called bin.

Finally #

After you have configured the $PATHon your system, move the bake executable to blackunicorn/bin. You may need to run chmod a+x on the binary executable before being able to call it from the console.

Tutorial ⛏ #

Here's how you get started with Bake!

  • 1.) Create a file called Bakefile:
$ touch Bakefile
  • 2.) Open this file in your favourite editor and add this line to the file:
'greet' => 'echo Hello World!'
  • 3.) Run the command bake or bake greet in the directory where you just created the file:
Hello World! # This should be the output!

Usage 🔨 #

Bake accepts the following options:

Run the first rule of any Bakefile:

$ bake

Call a specific rule:

$ bake my_rule

Get version info:

$ bake --version

Get help info:

$ bake --help

Changelog 📜 #

Please click here.

Note 📜 #

  • Bake 🥖 by Alexander Abraham 🖤 a.k.a. "The Black Unicorn" 🦄
  • Licensed under the MIT license.
1
likes
120
pub points
0%
popularity

Publisher

verified publisher iconblckunicorn.art

Build your projects with simple rules across platforms. This project is heavily inspired by the GNU Make project!

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

clibu, termstyle

More

Packages that depend on bake