UNPKG

381 BJavaScriptView Raw
1/*
2 * grunt-open
3 * https://github.com/joverson/grunt-open
4 *
5 * Copyright (c) 2012 Jarrod Overson
6 * Licensed under the MIT license.
7 */
8
9'use strict';
10
11var open = require('open')
12
13module.exports = function(grunt) {
14
15 grunt.registerMultiTask('open', 'Open urls and files from a grunt task', function() {
16 var dest = this.data.url || this.data.file;
17
18 open(dest);
19 });
20
21};