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.
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',
};
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.