File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ include ../common.mk
6
6
version = $(1 ) @$(shell node -e "\
7
7
console.log(require('../$(1 ) /package.json') .version)")
8
8
9
- build : Fluent.jsm FluentSyntax.jsm Localization.jsm DOMLocalization.jsm l10n.js
9
+ build : Fluent.jsm FluentSyntax.jsm Localization.jsm DOMLocalization.jsm l10n.js fluent-react.js
10
10
11
11
Fluent.jsm : $(SOURCES )
12
12
@rollup $(CURDIR ) /src/fluent.js \
@@ -44,6 +44,13 @@ l10n.js: $(SOURCES)
44
44
--output.file ./dist/$@
45
45
@echo -e " $( OK) $@ built"
46
46
47
+ fluent-react.js : $(SOURCES )
48
+ @rollup $(CURDIR ) /src/fluent-react.js \
49
+ --config ./vendor_config.js \
50
+ --output.intro " /* $( call version,fluent-react) */" \
51
+ --output.file ./dist/$@
52
+ @echo -e " $( OK) $@ built"
53
+
47
54
clean :
48
55
@rm -rf dist
49
56
@rm -rf .nyc_output coverage
Original file line number Diff line number Diff line change
1
+ export * from "../../fluent-react/src/index.js" ;
Original file line number Diff line number Diff line change
1
+ import nodeResolve from 'rollup-plugin-node-resolve' ;
2
+ import bundleConfig from '../bundle_config' ;
3
+
4
+ export default Object . assign ( { } , bundleConfig , {
5
+ context : 'this' ,
6
+ output : {
7
+ format : 'cjs' ,
8
+ preferConst : true ,
9
+ banner : `\
10
+ /* Copyright 2019 Mozilla Foundation and others
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+
25
+ ` ,
26
+ } ,
27
+ external : [
28
+ "react" ,
29
+ "prop-types"
30
+ ] ,
31
+ plugins : [
32
+ nodeResolve ( ) ,
33
+ ]
34
+ } ) ;
You can’t perform that action at this time.
0 commit comments