-
Notifications
You must be signed in to change notification settings - Fork 1
/
fabfile.py
41 lines (31 loc) · 1.5 KB
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
from fabric.api import local
def clone():
local('git clone https://github.com/tastejs/todomvc.git')
# remove various files and directories not to include in calculations
def clean():
local('find todomvc/ -name "*.cache.js" -exec rm -rf {} \;')
# omit gwt as it is written in Java
local('rm -rf todomvc/examples/gwt/')
# omit dart as it is written in dart
local('rm -rf todomvc/examples/angular-dart/')
local('rm -rf todomvc/examples/vanilladart/')
# omit typescript
local('rm -rf todomvc/examples/typescript-*')
# omit coffeescript
local('rm -rf todomvc/examples/chaplin-brunch/')
local('rm -rf todomvc/examples/derby/')
local('rm -rf todomvc/examples/knockback/')
local('rm -rf todomvc/examples/spine/')
local('rm -rf todomvc/examples/serenadejs/')
local('rm -rf todomvc/examples/batman/')
# remove libs users don't need to write themeselves
local('find todomvc/ -type d -name lib -exec rm -rf {} \;')
local('find todomvc/ -type d -name libs -exec rm -rf {} \;')
# bower_components dir and minified js files before running cr
local('find todomvc/ -type d -name bower_components -exec rm -rf {} \;')
local('find todomvc/ -type f -name "*.min.js" -exec rm -rf {} \;')
local('find todomvc/ -type f -name "*-compressed.js" -exec rm -rf {} \;')
local('find todomvc/ -type f -name "*compiled.js" -exec rm -rf {} \;')
# ignore dirs called test
local('find todomvc/ -type d -name test -exec rm -rf {} \;')