Skip to content

Commit 39e0667

Browse files
committed
refactor(gulp): Convert the rest of the require statements to ES2015 imports
1 parent d1ba9ef commit 39e0667

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

app/templates/gulpfile.babel.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33

44
import gulp from 'gulp';
55
import path from 'path';
6-
7-
var plugins = require('gulp-load-plugins')();
8-
var http = require('http');
9-
var openURL = require('open');
10-
var lazypipe = require('lazypipe');
11-
var wiredep = require('wiredep').stream;
12-
var nodemon = require('nodemon');
13-
var runSequence = require('run-sequence');<% if(filters.stylus) { %>
14-
var nib = require('nib');<% } %>
6+
import gulpLoadPlugins from 'gulp-load-plugins';
7+
import http from 'http';
8+
import open from 'open';
9+
import lazypipe from 'lazypipe';
10+
import {stream as wiredep} from 'wiredep';
11+
import nodemon from 'nodemon';
12+
import runSequence from 'run-sequence';<% if(filters.stylus) { %>
13+
import nib from 'nib';<% } %>
14+
15+
var plugins = gulpLoadPlugins();
1516
var config;
1617

1718
var yeoman = {
@@ -132,7 +133,7 @@ gulp.task('clean:tmp', function () {
132133

133134
gulp.task('start:client', [<% if(filters.coffee) { %>'coffee', <% } %>'styles'], function (callback) {
134135
whenServerReady(function () {
135-
openURL('http://localhost:' + config.port);
136+
open('http://localhost:' + config.port);
136137
callback();
137138
});
138139
});

0 commit comments

Comments
 (0)