How to use the just-scripts.cleanTask function in just-scripts

To help you get started, we’ve selected a few just-scripts 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 OfficeDev / office-ui-fabric-react / scripts / tasks / clean.js View on Github external
// @ts-check

const path = require('path');
const { cleanTask } = require('just-scripts');

exports.clean = cleanTask(
  [
    'lib',
    'temp',
    'dist',
    'lib-amd',
    'lib-commonjs',
    'lib-es2015', // Keep this in clean for actually cleaning up legacy content.
    'coverage',
    'src/**/*.scss.ts'
  ].map(p => path.join(process.cwd(), p))
);
github microsoft / react-native-windows / packages / react-native-win32 / just-task.js View on Github external
task('clean', () => {
  return cleanTask(
    ['jest', 'Libraries', 'RNTester', 'lib'].map(p =>
      path.join(process.cwd(), p),
    ),
  );
});
github microsoft / react-native-windows / vnext / just-task.js View on Github external
task('clean', () => {
  return cleanTask(
    ['dist', 'flow', 'flow-typed', 'jest', 'Libraries', 'RNTester', 'lib'].map(
      p => path.join(process.cwd(), p),
    ),
  );
});
github microsoft / react-native-windows / RNWCPP / Scripts / just-task.js View on Github external
task('clean', () => {
    return cleanTask(['lib', 'temp', 'dist', 'coverage'].map(p => path.join(process.cwd(), p)));
  });