Apply requested changes
This commit is contained in:
parent
58c7d55d61
commit
4cc3e83f0a
4 changed files with 6 additions and 25 deletions
|
@ -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'));
|
||||
|
|
3
src/test/fixtures/vscodeignore/.vscode/tasks.json
vendored
Normal file
3
src/test/fixtures/vscodeignore/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"tasks": [],
|
||||
}
|
1
src/test/fixtures/vscodeignore/logger.log
vendored
Normal file
1
src/test/fixtures/vscodeignore/logger.log
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
log
|
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Reference in a new issue