A GruntJS Automation Approach for a remarkjs Presentation
###BEFORE YOU START
- Start by CLONING of BRANCHING the repository.
- Install NPM Dependencies
npm install
- Editing the CSS
- Add Image Resources
#Step 1 - Gruntfile.js
- Load Tasks
// Individually
grunt.loadNpmTasks('grunt-contrib-__plugin__');
// All At Once
require('load-grunt-tasks')(grunt);
// Visit: https://www.npmjs.org/package/load-grunt-tasks
#Step 2 - Configure Plug-ins
- Prepare the Config Settings (See Individual Plug-in Documentation)
grunt.initConfig({});
- Expose Additional Variables
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
/* and so on */
});
- Always have a default task
grunt.registerTask('default', function(){
/* some logic */
});
- Alias Tasks
grunt.registerTask('TaskList', ['first:task','second:task','third']);