@@ -8,56 +8,23 @@ version = $(1)@$(shell node -e "\
8
8
9
9
lint :
10
10
@eslint --config $(ROOT ) /eslint_js.json --max-warnings 0 src/
11
- @eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
12
11
@echo -e " $( OK) lint"
13
12
14
- test :
15
- @nyc --reporter=text --reporter=html mocha \
16
- --recursive --ui tdd \
17
- --require esm \
18
- test/** /* _test.js
13
+ test : ;
19
14
20
15
.PHONY : build
21
- build : Fluent.jsm FluentSyntax.jsm Localization.jsm DOMLocalization.jsm l10n.js fluent-react.js
22
-
23
- Fluent.jsm : $(SOURCES )
24
- $(MAKE ) -sC ../fluent-bundle compile
25
- @rollup $(CURDIR ) /src/fluent.js \
26
- --config ./xpcom_config.js \
27
- --output.intro " /* $( call version,fluent-bundle) */" \
28
- --output.file ./dist/$@
29
- @echo -e " $( OK) $@ built"
16
+ build : FluentSyntax.jsm fluent-react.js
30
17
31
18
FluentSyntax.jsm : $(SOURCES )
32
19
$(MAKE ) -sC ../fluent-syntax compile
33
- @rollup $(CURDIR ) /src/fluent_syntax .js \
20
+ @rollup $(CURDIR ) /src/fluent-syntax .js \
34
21
--config ./xpcom_config.js \
35
22
--no-treeshake \
36
23
--no-freeze \
37
24
--output.intro " /* $( call version,fluent-syntax) */" \
38
25
--output.file ./dist/$@
39
26
@echo -e " $( OK) $@ built"
40
27
41
- Localization.jsm : $(SOURCES )
42
- @rollup $(CURDIR ) /src/localization.js \
43
- --config ./xpcom_config.js \
44
- --output.intro " /* $( call version,fluent-dom) */" \
45
- --output.file ./dist/$@
46
- @echo -e " $( OK) $@ built"
47
-
48
- DOMLocalization.jsm : $(SOURCES )
49
- @rollup $(CURDIR ) /src/dom_localization.js \
50
- --config ./xpcom_dom_config.js \
51
- --output.intro " /* $( call version,fluent-dom) */" \
52
- --output.file ./dist/$@
53
- @echo -e " $( OK) $@ built"
54
-
55
- l10n.js : $(SOURCES )
56
- @rollup $(CURDIR ) /src/l10n.js \
57
- --output.format es \
58
- --output.file ./dist/$@
59
- @echo -e " $( OK) $@ built"
60
-
61
28
fluent-react.js : $(SOURCES )
62
29
$(MAKE ) -sC ../fluent-react compile
63
30
@rollup $(CURDIR ) /src/fluent-react.js \
0 commit comments