GithubHelp home page GithubHelp logo

crake's Introduction

CRake

A CRystal mAKE library.

docrystal.org

Just a Library

It is not a tool, just a library. It does not provide a CLI tool like crake. You do learn the library only, not need to learn some tool except for crystal command because it is the library of Crystal.

I believe this approach is better than another build command. It makes your build script powerful and flexible. And, it makes so possible to integrate another library. Simple is the best.

This library is inspired by Rake, gulp, tape and more. Thanks those libraries and tools ;)

Features

  • Looks like Rake. There are task, file, rule and namespace in this library.
  • Use the syntax of Crystal. It's smart.
  • Support concurrent build by default.

Installation

Add this to your application's shard.yml:

development_dependencies:
  crake:
    github: MakeNowJust/crake

Usage

Put this code into make.cr:

require "crake/global"

task "hello # say hello" do
  puts "Hello, CRake World!"
end

then you can run:

$ ln -s ./make.cr ./make
$ crystal make -- hello
Hello, CRake World!

If you want more information, you can run such a command:

$ crystal make -- hello -v
 INFO   (2015-11-20 12:34:20 +0000) ~~> "##toplevel##" starts
 INFO   (2015-11-20 12:34:20 +0000) ~~> "hello" starts
Hello, CRake World!
 INFO   (2015-11-20 12:34:20 +0000) ~~> "hello" finished
 INFO   (2015-11-20 12:34:20 +0000) ~~> "##toplevel##" finished

and you can see example/ directory.

Development

$ crystal make -- spec

TODO

  • Add task, rule, file and namespace.
  • Add FileList and utilities.
  • Support concurrent build (default.)
  • Support colored output (default.)
  • Write more documents.
  • Add more specs and examples.

Contributing

  1. Fork it (https://github.com/MakeNowJust/crake/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

crake's People

Contributors

makenowjust avatar

Watchers

 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.