SGC – Command Line Task Runner

The SGC is a command line interface and represents a central point through which all development-related tasks can be executed. Already integrated is a build process based on Node.js 10, which takes care of tasks like optimizing images, compiling Sass and ES6 JavaScript code, linting and much more. To integrate tasks that go beyond the built-in tooling, the program can be extended with custom commands using shell or Node.js scripts. The SGC focuses on TYPO3 projects - but with some settings in the configuration file, the tool can also be used in other systems. Since version 3 the SGC can be used as a standalone tool to work with e.g. static HTML files. This feature is especially useful for rapid prototyping.

A Comparison of the Editions

Features

Base Version

Enterprise Version

Free of charge

On request

Easy to install

Styles / SCSS

JavaScript (ES6 Syntax + Module)

Live Reload

JS / SCSS Linting

"Above the Fold" configuration

Image Optimization

Compression of JS and CSS files

Expandability

Support of Open Source Projects

Ad-free


Become a Frontend Master now

SCSS, EcmaScript 6, modular JavaScript, Linting – do these words cause wrinkles on your forehead?

Don't worry! The modern frontend development technologies evolve so quickly that it's hard to stay up-to-date. We are happy to offer training for you in this subject where you and/or your team learn how you can bring your frontend workflow to the next level and how the SGC can support you in this process.
 

Request a training session now

The Features

Easy to Install

Thanks to the included installer, setting up the development environment is easy. The installation script automatically determines the required Node.js version and installs it at the same time. Thanks to the use of the Node Version Manager, various versions of the SGC can be run on the same system parallely without any problems. A separate installation of Node.js is not necessary. You can choose between a global and a local installation of the sgc command.

The SGC currently supports installation and use on Linux and macOS systems.

Expandability

With the help of the built-in plugin system the SGC can easily be extended with your own commands. For this purpose a shell script is simply stored in the sgc-scripts folder. With the command

sgc <scriptName>

you can execute your custom tasks. In this way, you can integrate your own deployment or update processes, for example.

Live Reload

The SGC watches your .scss and .js files and automatically starts the compiling process. Once it is finished, the website is automatically reloaded in the browser with the new changes. This means it is no longer necessary to jump between the browser and the code editor - a significant workflow improvement, especially for multi-monitor setups.

Focus on the important task: writing code. The SGC handles the rest!

JavaScript

The SGC supports a workflow that focuses on writing modular JavaScript. If you use features of the brand new ES6 specification like classes, import/export, async/await and the SGC, the tool automatically converts your code via Bable.js into ES5-compatible JS that also works in older browsers. You simply specify which browsers you want to support in the configuration file.

Styles / SCSS

The SGC compiles Sass files into CSS and automatically adds vendor prefixes. The inline SVG engine automatically binds SVG icons as background-image. The image-dimensions plugin allows using image-width and image-height functions in CSS. The SGC also includes a built-in solution for generating inline CSS (useful for including abovethefold-styles). CSS files are minified.



Linting

A code base should be as if it were written by one developer. To achieve this, the code must meet certain formal requirements: Constant comment style, consistent indentation, and use/unuse of certain constructs make a code base appear coherent and facilitate reading and refactoring. By checking formal criteria, "code smells" can be avoided, such as setting a transition on a CSS property that does not animate performantly.
SGC integrates ESLint and Stylelint, two pointers that sass and check JavaScript code against predefined rules. Deviations are pointed out during writing. You can define the rules yourself according to your CGL or use our presets.

Image Optimization

One of the most significant performance issues on modern websites is the use of non-optimized images.

With the task sgc images, you can automatically increase the compression of your images and remove information that is not needed for the display on the web.

License

License

The usage of the Enterprise Version (ad-free) requires the payment of a fee. The Base Version can be used free of charge. With the purchase of the Enterprise Version you not only support the future development of the SGC, but also our contributions to numerous other OpenSource projects.

License Details

License Details

Contact us

Our products have convinced you and you would like to realize your next web project or your individual software idea together with us? – Then get in touch for a non-binding offer!