@@ -8,56 +8,23 @@ version = $(1)@$(shell node -e "\
88
99lint :
1010 @eslint --config $(ROOT ) /eslint_js.json --max-warnings 0 src/
11- @eslint --config $(ROOT ) /eslint_test.json --max-warnings 0 test/
1211 @echo -e " $( OK) lint"
1312
14- test :
15- @nyc --reporter=text --reporter=html mocha \
16- --recursive --ui tdd \
17- --require esm \
18- test/** /* _test.js
13+ test : ;
1914
2015.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
3017
3118FluentSyntax.jsm : $(SOURCES )
3219 $(MAKE ) -sC ../fluent-syntax compile
33- @rollup $(CURDIR ) /src/fluent_syntax .js \
20+ @rollup $(CURDIR ) /src/fluent-syntax .js \
3421 --config ./xpcom_config.js \
3522 --no-treeshake \
3623 --no-freeze \
3724 --output.intro " /* $( call version,fluent-syntax) */" \
3825 --output.file ./dist/$@
3926 @echo -e " $( OK) $@ built"
4027
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-
6128fluent-react.js : $(SOURCES )
6229 $(MAKE ) -sC ../fluent-react compile
6330 @rollup $(CURDIR ) /src/fluent-react.js \
0 commit comments