forked from mozilla/fireplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (65 loc) · 2.13 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
77
78
79
80
81
# make install - getting an error? Run `npm install` first.
# The directive comes from mozilla/marketplace-gulp.
install:
@echo "ERROR: Please run `npm install` before running `make install`".
-include node_modules/marketplace-gulp/Makefile
TEST_URL?='http://localhost:8675'
package:
@node_modules/.bin/gulp package
iframe_package:
@node_modules/.bin/gulp iframe_package
.PHONY: package
REPO = "fireplace"
UUID = "e6a59937-29e4-456a-b636-b69afa8693b4"
DOMAIN?=marketplace.firefox.com
SERVER?=prod
deploy:
git fetch && git reset --hard origin/master && npm install && make includes
serve_package:
@pushd package/builds/_$(SERVER) && \
python -m SimpleHTTPServer 9676
serve_package_prod:
make serve_package
serve_package_stage:
SERVER='stage' make serve_package
serve_package_dev:
SERVER='dev' make serve_package
submit_package:
@open 'https://'$(DOMAIN)'/developers/app/marketplace/status#upload-new-version'
submit_package_prod:
make submit_package
submit_package_stage:
DOMAIN='marketplace.allizom.org' make submit_package
submit_package_dev:
DOMAIN='marketplace-dev.allizom.org' make submit_package
approve_package:
@open 'https://'$(DOMAIN)'/reviewers/apps/review/marketplace#review-actions'
approve_package_prod:
make approve_package
approve_package_stage:
DOMAIN='marketplace.allizom.org' make approve_package
approve_package_dev:
DOMAIN='marketplace-dev.allizom.org' make approve_package
submit_log:
@open 'https://'$(DOMAIN)'/developers/app/marketplace/status#upload-new-version'
submit_log_prod:
make submit_log
submit_log_stage:
DOMAIN='marketplace.allizom.org' make submit_log
submit_log_dev:
DOMAIN='marketplace-dev.allizom.org' make submit_log
approve_log:
@open 'https://'$(DOMAIN)'/reviewers/apps/review/marketplace#review-actions'
approve_log_prod:
make approve_log
approve_log_stage:
DOMAIN='marketplace.allizom.org' make approve_log
approve_log_dev:
DOMAIN='marketplace-dev.allizom.org' make approve_log
log:
@echo "This command has been removed. Use 'make iframe_package' instead."
test-package:
make package
test -f package/builds/_prod/media/js/include.js
sherlocked:
sleep 10 && node sherlocked.js