Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (15 sloc)
539 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = clean; | |
| var _path = require('path'); | |
| var _del = require('del'); | |
| var _del2 = _interopRequireDefault(_del); | |
| var _config = require('../config'); | |
| var _config2 = _interopRequireDefault(_config); | |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| function clean(dir) { | |
| var dist = (0, _config2.default)(dir).distDir; | |
| return (0, _del2.default)((0, _path.resolve)(dir, dist), { force: true }); | |
| } |