]> khamidou — GitHub mirrors - electron.git/commitdiff
Add clean script
authorCheng Zhao <zcbenz@gmail.com>
Sun, 12 Apr 2015 04:55:38 +0000 (12:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 12 Apr 2015 04:55:38 +0000 (12:55 +0800)
script/clean.py [new file with mode: 0755]

diff --git a/script/clean.py b/script/clean.py
new file mode 100755 (executable)
index 0000000..f27ee9c
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+from lib.util import rm_rf
+
+
+SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+
+
+def main():
+  os.chdir(SOURCE_ROOT)
+  rm_rf('node_modules')
+  rm_rf('out')
+  rm_rf('spec/node_modules')
+
+
+if __name__ == '__main__':
+  sys.exit(main())