forked from schmich/marinara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 1.09 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
.PHONY: dev
# Run development environment.
dev:
npm run dev
.PHONY: release package
# Create Chrome extension package (.zip).
release: production
ruby -Iscripts scripts/create-package.rb
production: messages
npm run build
.PHONY: messages validate-messages
# Create Messages.js.
messages: validate-messages src/Messages.js
# Sanity check all messages.json files.
validate-messages:
ruby -Iscripts scripts/validate-messages.rb
# JS bindings for messages in messages.json.
src/Messages.js: package/_locales/en/messages.json
ruby -Iscripts scripts/create-messages.rb "$<" > "$@"
.PHONY: test
# Run tests.
test:
npm run test:unit
.PHONY: run run-loc run-pseudo show-descriptions
# Run Chrome with a new (temporary) user profile with Marinara loaded.
run:
ruby -Iscripts scripts/run.rb
# Run Chrome under a different locale.
run-loc:
ruby -Iscripts scripts/run-localized.rb
# Run Chrome with psuedo-localized messages.
run-pseudo:
ruby -Iscripts scripts/run-pseudo-localized.rb
# Show and copy descriptions for Chrome Web Store.
show-descriptions:
ruby -Iscripts scripts/show-descriptions.rb