Shared repo of Grunt tasks for use with building and deploying Jekyll sites.
Assuming node is installed:
cd
into the cloned foldernpm install
npm install -D load-grunt-config
module.exports = function(grunt) {
var path = require('path');
// The path where you cloned this repo relative to the poject you are working in
var gruntTasksPath = '../grunt-tasks/';
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), gruntTasksPath + '/tasks'),
loadGruntTasks: {
config: require(gruntTasksPath + '/package.json'),
},
data: {
sources: {
javascript: [
...
],
sass: [
...
],
css: [
...
],
fonts: [
...
]
}
}
});
};
grunt <<task>>
from your project where <<task>>
is any item that is defined in tasks/aliases.yaml
.