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 | ;
|
10 |
|
11 | var open = require('open')
|
12 |
|
13 | module.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 | };
|