mirror of
https://github.com/wassname/phaser.git
synced 2026-07-03 17:10:40 +08:00
20 lines
398 B
JavaScript
20 lines
398 B
JavaScript
/*
|
|
* grunt-open
|
|
* https://github.com/joverson/grunt-open
|
|
*
|
|
* Copyright (c) 2012 Jarrod Overson
|
|
* Licensed under the MIT license.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var open = require('open');
|
|
|
|
module.exports = function(grunt) {
|
|
grunt.registerMultiTask('open', 'Open urls and files from a grunt task', function() {
|
|
var dest = this.data.url || this.data.file || this.data.path;
|
|
|
|
open(dest);
|
|
});
|
|
};
|