mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(): integration tests cleanup, update deps versions
This commit is contained in:
@@ -2,7 +2,6 @@ import { getDirs } from './util/task-helpers';
|
||||
|
||||
// All paths are related to the base dir
|
||||
export const source = 'packages';
|
||||
export const integrationPath = 'integration';
|
||||
export const samplePath = 'sample';
|
||||
|
||||
export const packagePaths = getDirs(source);
|
||||
|
||||
@@ -1,20 +1,16 @@
|
||||
import { task, src, dest } from 'gulp';
|
||||
import { getDirs } from '../util/task-helpers';
|
||||
import { samplePath, integrationPath } from '../config';
|
||||
import { dest, src, task } from 'gulp';
|
||||
import { join } from 'path';
|
||||
import { samplePath } from '../config';
|
||||
import { getDirs } from '../util/task-helpers';
|
||||
|
||||
/**
|
||||
* Moves the compiled nest files into the
|
||||
* `samples/*` and `integration/*` dirs.
|
||||
* Moves the compiled nest files into the `samples/*` dirs.
|
||||
*/
|
||||
function move() {
|
||||
const samplesDirs = getDirs(samplePath);
|
||||
const integrationDirs = getDirs(integrationPath);
|
||||
const directories = samplesDirs.concat(integrationDirs);
|
||||
|
||||
const distFiles = src(['node_modules/@nestjs/**/*']);
|
||||
|
||||
return directories.reduce(
|
||||
return samplesDirs.reduce(
|
||||
(distFile, dir) => distFile.pipe(dest(join(dir, '/node_modules/@nestjs'))),
|
||||
distFiles,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user