-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
76 lines (58 loc) · 2.21 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
git_checkout:
git submodule sync && git submodule update --init --recursive
install_fastlane:
gem install fastlane
bundle exec fastlane update_plugins
install_swiftlint:
brew install swiftlint
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
gym:
fastlane gym
swiftlint:
swiftlint autocorrect
swiftlint_rules:
swiftlint rules
lint:
fastlane lint
yarn --cwd ./Beam/Classes/Components/PointAndShoot/Web run lint
yarn --cwd ./Beam/Classes/Models/Navigation/Web run lint
install_direnv:
brew install direnv
eval "$(direnv hook zsh)"
direnv allow .
install_rbenv:
# Ruby
brew install rbenv ruby-build
rbenv init -
rbenv install ${RUBY_VERSION}
rbenv global ${RUBY_VERSION}
install_js:
brew install node
brew install yarn
brew install jq
install_codeclimate:
brew tap codeclimate/formulae
brew install codeclimate
delete_db_files:
rm -f ${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Application\ Support/Beam/Beam-*.sqlite*
rm -f ${HOME}/Library/Containers/co.beamapp.macos.dev/Data/Library/Application\ Support/Beam/Beam-*.sqlite*
copy_vinyl_files:
tar -a -cf BeamTests/Vinyl.tar.bz2 -C ${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Logs/Beam/Vinyl/ .
reset_vinyl_files:
rm -rf ${HOME}/Library/Containers/co.beamapp.macos.dev/Data/Library/Logs/Beam/Vinyl/*.json
rm -rf ${HOME}/Library/Containers/co.beamapp.macos.dev/Data/Library/Logs/Beam/Vinyl/json/
rm -rf ${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Logs/Beam/Vinyl/*.json
rm -rf ${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Logs/Beam/Vinyl/json/
rm -f BeamTests/Vinyl.tar.bz2
extract_vinyl_files:
tar -xf BeamTests/Vinyl.tar.bz2 -C ${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Logs/Beam/Vinyl/
tar -xf BeamTests/Vinyl.tar.bz2 -C ${HOME}/Library/Containers/co.beamapp.macos.dev/Data/Library/Logs/Beam/Vinyl/
js_test:
./scripts/build_js.sh
yarn run alltests
setup_js_xcfilelists:
./scripts/build_xcfilelist_web.sh
clean_app_files:
rm -rf "${HOME}/Library/Containers/co.beamapp.macos.dev/Data/Library/Application Support/"*
rm -rf "${HOME}/Library/Containers/co.beamapp.macos/Data/Library/Application Support/"*
setup: git_checkout install_swiftlint install_js setup_js_xcfilelists