Skip to content

Instantly share code, notes, and snippets.

@janis-kra
Created October 4, 2016 11:00
Show Gist options
  • Save janis-kra/ffd4dcb04521d300b33a85f71bdf7fa5 to your computer and use it in GitHub Desktop.
Save janis-kra/ffd4dcb04521d300b33a85f71bdf7fa5 to your computer and use it in GitHub Desktop.
Utilizing the full potential of Grunt tasks: Initial Gruntfile
var path = require('path');
module.exports = function(grunt) {
require("load-grunt-config")(grunt,
{
configPath: path.join(process.cwd(), "scripts/grunt/config")
});
grunt.loadNpmTasks("grunt-oraclejet");
grunt.registerTask("build", (buildType) => {
grunt.task.run([`oraclejet-build:${buildType}`]);
});
grunt.registerTask("serve", (buildType) => {
grunt.task.run([`oraclejet-serve:${buildType}`]);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment