clean.js 434 B

12345678910111213141516
  1. /**
  2. * React Static Boilerplate
  3. * https://github.com/koistya/react-static-boilerplate
  4. *
  5. * Copyright © 2015-2016 Konstantin Tarkus (@koistya)
  6. *
  7. * This source code is licensed under the MIT license found in the
  8. * LICENSE.txt file in the root directory of this source tree.
  9. */
  10. const del = require('del')
  11. const task = require('./task')
  12. module.exports = task('clean', () =>
  13. del(['./build/*', '!./build/.git'], { dot: true })
  14. )