clean.js (529B)
1 /** 2 * React Starter Kit (https://www.reactstarterkit.com/) 3 * 4 * Copyright © 2014-present Kriasoft, LLC. All rights reserved. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.txt file in the root directory of this source tree. 8 */ 9 10 import { cleanDir } from './lib/fs'; 11 12 /** 13 * Cleans up the output (build) directory. 14 */ 15 function clean() { 16 return Promise.all([ 17 cleanDir('build/*', { 18 nosort: true, 19 dot: true, 20 ignore: ['build/.git'], 21 }), 22 ]); 23 } 24 25 export default clean;