Apply requested changes

This commit is contained in:
JimiC 2018-08-02 20:27:07 +03:00
parent 58c7d55d61
commit 4cc3e83f0a
4 changed files with 6 additions and 25 deletions

View file

@ -54,7 +54,7 @@ gulp.task('test', ['compile'], test);
gulp.task('just-test', ['just-compile'], test);
function watch(task) {
return () => gulp.watch(['src/**', 'typings/**'], [task]);
return cb => gulp.watch(['src/**', 'typings/**'], [task]);
}
gulp.task('watch', ['compile'], watch('just-compile'));

View file

@ -0,0 +1,3 @@
{
"tasks": [],
}

View file

@ -0,0 +1 @@
log

View file

@ -137,30 +137,7 @@ describe('collect', function () {
it('should ignore content of .vscodeignore', () => {
const cwd = fixture('vscodeignore');
// pattern of dotted directory name without backslash
if (!fs.existsSync(path.join(cwd, '.vscode'))) {
fs.mkdirSync(path.join(cwd, '.vscode'));
}
if (!fs.existsSync(path.join(cwd, '.vscode', 'tasks.json'))) {
fs.writeFileSync(path.join(cwd, '.vscode', 'tasks.json'), 'tasks');
}
// pattern of directory name with trailing backslash
if (!fs.existsSync(path.join(cwd, 'out'))) {
fs.mkdirSync(path.join(cwd, 'out'));
}
if (!fs.existsSync(path.join(cwd, 'out', 'hello'))) {
fs.writeFileSync(path.join(cwd, 'out', 'hello'), 'world');
}
// pattern of file name
if (!fs.existsSync(path.join(cwd, 'logger.log'))) {
fs.writeFileSync(path.join(cwd, 'logger.log'), 'log');
}
return readManifest(cwd)
.then(manifest => collect(manifest, { cwd }))
.then(files => {