How to use the just-task.series.apply function in just-task

To help you get started, we’ve selected a few just-task examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / just / packages / just-stack-web-lib / src / copy.ts View on Github external
if (!fs.existsSync(configPath)) {
    return;
  }

  const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));

  if (config && config.copyTo) {
    for (let destination in config.copyTo) {
      const sources = config.copyTo[destination];
      destination = path.resolve(process.cwd(), destination);
      tasks.push(copyTask(sources.map(src => expandSourcePath(src)), destination));
    }
  }

  return series.apply(null, tasks);
});
github OfficeDev / office-ui-fabric-react / scripts / just-tasks / copy.js View on Github external
if (!fs.existsSync(configPath)) {
    return;
  }

  const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));

  if (config && config.copyTo) {
    for (let destination in config.copyTo) {
      const sources = config.copyTo[destination];
      destination = path.resolve(process.cwd(), destination);
      tasks.push(copyTask(sources.map(src => expandSourcePath(src)), destination));
    }
  }

  return series.apply(null, tasks);
};