electron/script/clean.py

25 lines
482 B
Python
Raw Normal View History

2015-04-12 04:55:38 +00:00
#!/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)
2015-07-03 06:40:32 +00:00
rm_rf('node_modules')
rm_rf('dist')
rm_rf('out')
rm_rf('spec/node_modules')
rm_rf('vendor/brightray/vendor/download/libchromiumcontent')
2016-08-10 22:41:54 +00:00
rm_rf('vendor/brightray/vendor/libchromiumcontent/src')
2015-07-03 15:06:38 +00:00
rm_rf(os.path.expanduser('~/.node-gyp'))
2015-04-12 04:55:38 +00:00
if __name__ == '__main__':
sys.exit(main())