Browse Source

Add clean script

Cheng Zhao 10 years ago
parent
commit
b53123d5e7
1 changed files with 20 additions and 0 deletions
  1. 20 0
      script/clean.py

+ 20 - 0
script/clean.py

@@ -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())