Skip to content

Commit 02a340e

Browse files
committed
Move emit helpers
1 parent f3d9d04 commit 02a340e

File tree

18 files changed

+13
-33
lines changed

18 files changed

+13
-33
lines changed

gulp/files.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
{
22
"CHECK": [
33
"{index,custom,gulpfile}.js",
4-
"{src,gulp,test,helpers}/*.js",
5-
"{src,gulp,test,helpers}/**/*.js",
4+
"{src,gulp,test}/*.js",
5+
"{src,gulp,test}/**/*.js",
66
"*.md"
77
],
88
"UNIT": ["{index,custom}.js", "src", "test"],
9-
"TEST": [
10-
"{index,custom,gulpfile}.js",
11-
"src",
12-
"gulp",
13-
"test",
14-
"helpers",
15-
"*.md"
16-
],
9+
"TEST": ["{index,custom,gulpfile}.js", "src", "gulp", "test", "*.md"],
1710
"BUILD_SRC": ["src"],
1811
"BUILD_DIST": ["dist"],
19-
"DEV": [
20-
"{index,custom,gulpfile}.js",
21-
"src",
22-
"gulp",
23-
"test",
24-
"helpers",
25-
"*.md"
26-
]
12+
"DEV": ["{index,custom,gulpfile}.js", "src", "gulp", "test", "*.md"]
2713
}

gulp/tasks/emit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { argv } = require('process')
44

55
const gulpExeca = require('../exec')
66

7-
const EMIT_PATH = './helpers/emit/fire.js'
7+
const EMIT_PATH = './test/helpers/emit/fire.js'
88

99
const emitEvent = function(flags) {
1010
const eventName = getEventName()

helpers/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/emit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
const test = require('ava')
44

55
const {
6+
repeatEvents,
7+
startLogging,
68
ALL_EVENTS: { all },
7-
} = require('../helpers')
8-
9-
const { repeatEvents, startLogging } = require('./helpers')
9+
} = require('./helpers')
1010

1111
test('[all] events emitters should not throw', async t => {
1212
const { stopLogging } = startLogging()
File renamed without changes.
File renamed without changes.

helpers/emit/fire.js renamed to test/helpers/emit/fire.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const { argv } = require('process')
44

5-
const logProcessErrors = require('../../custom')
5+
const logProcessErrors = require('../../../custom')
66

77
const { ALL_EVENTS } = require('./main')
88

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)