Project

qbuild

0.0
No commit activity in last 3 years
No release in over 3 years
Qbuild is an easy build system for JS, SCSS and CSS assets.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

< 2.0, >= 1.14
< 3.5, >= 3.4.22
< 3.1, >= 3.0.3
 Project Readme

Qbuild

Gem Version

Qbuild is an easy build system (bordering on naive, some could say) for minifying JavaScript, transpiling SCSS into CSS, and minifying CSS into one stylesheet.

Installation

Qbuild is a Ruby gem. Make sure you have a recent version of Ruby installed (>=2.2.2) and simply issue the following command in your terminal:

gem install qbuild

Note: Qbuild has not been tested on Windows. It would likely not work.

Usage

cd into the root of your web or Electron project. Create a default Qbuild config file with:

qbuild --init (or qbuild -i)

You can review the current options with qbuild --options (or qbuild -o). If you want to change some parameters, edit .qbuild.json located in the root of your project.

To build your project, use qbuild run

You will notice pre_build and post_build keys in the config file. They are arrays you can use to issue any command you wish to run before and after build.

Note: Make sure you add your .css and .scss files in the stylesheet_filenames array in the correct order they should be built.

Note: I'm currently writing a (really simple, really naive) tutorial on Qbuild.

Contribute

Before submitting a pull request, please get in touch first.

Credits

Qbuild uses Uglifier and Sass to work its magic.

License

Copyright 2016 - Nico Schuele

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.