Giter Club home page Giter Club logo

buildmyst's Introduction

BuildMyst Build Status

A very simple and customizable build system. You can find an example in the example folder.

You can define actions which execute simple shell scripts or even complex custom D scripts (meaning you can do anything).

Each build executes defined actions in an order one by one. You can specify multiple build configurations (like debug and release). There are also prebuilt build event before_build and after_build which get executed before and after the build.

There's also a watch mode where you can specify which directories to watch, when something changes inside of them the actions get called. You can specify different actions for different directories, so if you have a html and css directories for example, when something changes inside the html folder you don't necessarily also need to build the css folder (but you can if you want!).

Getting BuildMyst

You can download the Linux binary on the releases page or you can build it very easily using dmd and dub.

Download dmd on the D website and simply run dub build in the project directory.

Running BuildMyst

buildmyst
buildmyst --targetDirectory test/ --configuration release

Here's a sample config file:

---
actions:
    build_pug:
        - pug source/views/index.pug -o dist -P
    build_scss:
        - sass source/styles/style.scss dist/style.css
    build_pug_minified:
        - pug source/views/index.pug -o dist
    build_scss_minified:
        - sass source/styles/style.scss dist/style.css -s compressed --no-source-map
    file_renamer:
        - ${files/renamer dist/}
    clean_dist:
        - ${files/rmdir dist/} # Calls the scripts/files/rmdir.d script
        - ${files/mkdir dist/}

configurations:
    - debug
    - release

before_build:
    - ${clean_dist}

build_debug:
    - ${build_pug}
    - ${build_scss}

build_release:
    - ${build_pug_minified}
    - ${build_scss_minified}
    - ${file_renamer}

watch:
    source/views/:
        - ${build_pug}
    source/styles/:
        - ${build_scss}
...

buildmyst's People

Contributors

codemyst avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

laeeth

buildmyst's Issues

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.