now .src is fully working
This commit is contained in:
parent
2c18380fac
commit
6d3e7e7ba9
@ -24,7 +24,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/smartgulp#README",
|
"homepage": "https://gitlab.com/pushrocks/smartgulp#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp-function": "^2.2.5",
|
"gulp-function": "^2.2.6",
|
||||||
"tapbundle": "^1.0.10"
|
"tapbundle": "^1.0.10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -7,15 +7,13 @@ import * as smartq from 'smartq'
|
|||||||
|
|
||||||
tap.test('smartgulp.src -> should read a directoy', async () => {
|
tap.test('smartgulp.src -> should read a directoy', async () => {
|
||||||
let done = smartq.defer()
|
let done = smartq.defer()
|
||||||
smartgulp.src(['./test/testfiles/**/*'])
|
smartgulp.src(['./test/testfiles/**/*.md'])
|
||||||
.pipe(gulpFunction.forEach(async (fileArg) => {
|
.pipe(gulpFunction.forEach(async (fileArg) => {
|
||||||
console.log(fileArg.path)
|
console.log(fileArg.path)
|
||||||
}))
|
}))
|
||||||
.pipe(gulpFunction.atEnd(async () => {
|
.pipe(gulpFunction.atEnd(async () => {
|
||||||
console.log('hey')
|
done.resolve()
|
||||||
|
|
||||||
}))
|
}))
|
||||||
done.resolve()
|
|
||||||
await done.promise
|
await done.promise
|
||||||
})
|
})
|
||||||
|
|
||||||
|
23
yarn.lock
23
yarn.lock
@ -37,15 +37,11 @@
|
|||||||
version "0.0.27"
|
version "0.0.27"
|
||||||
resolved "https://registry.yarnpkg.com/@types/promises-a-plus/-/promises-a-plus-0.0.27.tgz#c64651134614c84b8f5d7114ce8901d36a609780"
|
resolved "https://registry.yarnpkg.com/@types/promises-a-plus/-/promises-a-plus-0.0.27.tgz#c64651134614c84b8f5d7114ce8901d36a609780"
|
||||||
|
|
||||||
"@types/q@0.0.32":
|
|
||||||
version "0.0.32"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5"
|
|
||||||
|
|
||||||
"@types/q@0.x.x":
|
"@types/q@0.x.x":
|
||||||
version "0.0.34"
|
version "0.0.34"
|
||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.34.tgz#e5d3a54e7a56309d904cdf1dc34f61ac595fae2e"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.34.tgz#e5d3a54e7a56309d904cdf1dc34f61ac595fae2e"
|
||||||
|
|
||||||
"@types/through2@^2.0.31", "@types/through2@^2.0.32":
|
"@types/through2@^2.0.32":
|
||||||
version "2.0.32"
|
version "2.0.32"
|
||||||
resolved "https://registry.yarnpkg.com/@types/through2/-/through2-2.0.32.tgz#470024450f1ab7640f19f9ebf42d3da574c26129"
|
resolved "https://registry.yarnpkg.com/@types/through2/-/through2-2.0.32.tgz#470024450f1ab7640f19f9ebf42d3da574c26129"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -198,15 +194,14 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6:
|
|||||||
version "4.1.11"
|
version "4.1.11"
|
||||||
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
|
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
|
||||||
|
|
||||||
gulp-function@^2.2.3:
|
gulp-function@^2.2.6:
|
||||||
version "2.2.3"
|
version "2.2.6"
|
||||||
resolved "https://registry.yarnpkg.com/gulp-function/-/gulp-function-2.2.3.tgz#8f62de74ce74de3fa91c48ba247472c1f56873bd"
|
resolved "https://registry.yarnpkg.com/gulp-function/-/gulp-function-2.2.6.tgz#e14c1eefdab4d4ac11d9f4abfdbe94115a12d10d"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/q" "0.0.32"
|
"@types/through2" "^2.0.32"
|
||||||
"@types/through2" "^2.0.31"
|
smartq "^1.1.1"
|
||||||
q "^1.4.1"
|
through2 "^2.0.3"
|
||||||
through2 "^2.0.1"
|
typings-global "^1.0.16"
|
||||||
typings-global "^1.0.14"
|
|
||||||
|
|
||||||
home@^1.0.1:
|
home@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
@ -398,7 +393,7 @@ smartevent@^1.0.1:
|
|||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
smartfile@^4.2.0:
|
smartfile@^4.2.1:
|
||||||
version "4.2.1"
|
version "4.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.2.1.tgz#2ec85f803f771a1ddff377a438ae87aab25f3e6e"
|
resolved "https://registry.yarnpkg.com/smartfile/-/smartfile-4.2.1.tgz#2ec85f803f771a1ddff377a438ae87aab25f3e6e"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Loading…
Reference in New Issue
Block a user