rename "npm run cleanup" to "npm run clean"

This commit is contained in:
Feross Aboukhadijeh
2016-03-19 16:20:11 -07:00
parent 684fa7dee7
commit 7738aa2f16
2 changed files with 1 additions and 1 deletions

17
bin/clean.js Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env node
/**
* Remove all traces of WebTorrent.app from the system (config and temp files).
* Useful for developers.
*/
var config = require('../config')
var os = require('os')
var path = require('path')
var pathExists = require('path-exists')
var rimraf = require('rimraf')
rimraf.sync(config.CONFIG_PATH)
var tmpPath = path.join(pathExists.sync('/tmp') ? '/tmp' : os.tmpDir(), 'webtorrent')
rimraf.sync(tmpPath)