D.R.Y. Grunt

Published on October 28, 2015

Back to Projects
D.R.Y. Grunt featured image

Grunt’d was designed as a versatile Grunt configuration, allowing me to effortlessly integrate it into new projects and start coding right away. Within the initial weeks of my tenure at Lycos, I developed a foundational implementation that could be seamlessly incorporated into both static HTML sites and Yii2 projects.

Grunt'd - Basic

Configurable

To effectively integrate Grunt into a project, the primary task involves updating the project.js file to include accurate references to all relevant resources.

module.exports = {
    paths: {
        webroot: 'app/web',
        sass: 'app/lygo/static/<%= pkg.name %>/scss',
        css: 'app/lygo/static/<%= pkg.name %>/css',
        js: 'app/lygo/static/<%= pkg.name %>/js',
    },
    banner:
        '/*!n' +
        ' * <%= pkg.name %>n' +
        ' * <%= pkg.description %>n' +
        ' * <%= pkg.title %>n' +
        ' * <%= pkg.url %>n' +
        ' * @author <%= pkg.author %>n' +
        ' * @version <%= pkg.version %>n' +
        ' */nnn',
};

Starter Files

I opted to create a set of foundational files for both SCSS and JavaScript. The file main.js was initially sourced from the Roots project.

Grunt - Build

Return to Projects Page

griffen.codes

made with 💖 and

2024 © all rights are reserved | updated 13 seconds ago

Footer Background Image