-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
72 lines (65 loc) · 2.97 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
# Copyright © 2016 Abcum Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
default:
@echo "Choose a Makefile target:"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
.PHONY: clean
clean:
@echo "Clean..."
find packages -mindepth 2 -maxdepth 2 -type f -name '.bowerrc' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.editorconfig' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.ember-cli' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.ember-cli.js' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.eslintignore' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.eslintrc.js' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.gitignore' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.gitkeep' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.template-lintrc.js' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.travis.yml' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name '.watchmanconfig' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'bower.json' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'ember-cli-build.js' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'jsconfig.json' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'package-lock.json' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'README.md' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'testem.js' -delete
find packages -mindepth 2 -maxdepth 2 -type f -name 'yarn.lock' -delete
find packages -mindepth 2 -maxdepth 2 -type d -name '.git' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d -name 'config' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d -name 'dist' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d -name 'tests' -exec rm -rf "{}" \;
find packages -mindepth 2 -maxdepth 2 -type d -name 'tmp' -exec rm -rf "{}" \;
rm -rf node_modules
npx lerna clean --yes
.PHONY: setup
setup:
@echo "Setup..."
npm install
.PHONY: serve
serve:
@echo "Serve..."
FASTBOOT_DISABLED=true ember serve
.PHONY: version
version:
@echo "Version..."
npx lerna version --no-push --force-publish
.PHONY: publish
publish:
@echo "Publish..."
npx lerna publish from-package
.PHONY: deploy
deploy:
@echo "Deploy..."
rm -rf /tmp/ascua-deploy
ember deploy production