File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- import fs from 'fs' ;
2
1
import path from 'path' ;
3
2
import Promise from 'bluebird' ;
4
3
import { runCmd } from '../util' ;
5
- import chalk from 'chalk' ;
6
4
import { Base } from '../generator-base' ;
7
5
import insight from '../insight-init' ;
8
- import { exec } from 'child_process' ;
9
6
import tap from 'gulp-tap' ;
10
7
import filter from 'gulp-filter' ;
11
8
import eslint from 'gulp-eslint' ;
@@ -505,7 +502,7 @@ export class Generator extends Base {
505
502
clientJsFilter ,
506
503
codeshiftStream ,
507
504
eslint ( {
508
- fix : true ,
505
+ fix : true ,
509
506
configFile : path . join ( genDir , 'templates/app/client/.eslintrc(babel)' )
510
507
} ) ,
511
508
clientJsFilter . restore
@@ -562,7 +559,7 @@ export class Generator extends Base {
562
559
this . registerTransformStream ( [
563
560
serverJsFilter ,
564
561
eslint ( {
565
- fix : true ,
562
+ fix : true ,
566
563
configFile : path . join ( genDir , 'templates/app/server/.eslintrc' )
567
564
} ) ,
568
565
serverJsFilter . restore
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- import util from 'util' ;
4
3
import path from 'path' ;
5
4
import _ from 'lodash' ;
6
5
import s from 'underscore.string' ;
@@ -54,7 +53,7 @@ export class Base extends YoBase {
54
53
export class NamedBase extends Base {
55
54
constructor ( ...args ) {
56
55
super ( ...args ) ;
57
-
56
+
58
57
this . argument ( 'name' , { type : String , required : true } ) ;
59
58
60
59
var name = this . name . replace ( / \/ / g, '-' ) ;
You can’t perform that action at this time.
0 commit comments