-
Notifications
You must be signed in to change notification settings - Fork 33
/
compile.sh
executable file
·103 lines (94 loc) · 3.54 KB
/
compile.sh
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
# WIP: This is a work in progress switch to compile production binary with
# closure compiler and possibly split the binaries into multiple modules.
# Use ./compile to check for warnings and errors when compiling.
CLOSURE_COMPILER_PATH=node_modules/splittable/third_party/closure-compiler/closure-compiler-1.0-SNAPSHOT.jar
mkdir -p dist/reports
mkdir -p dist/closure
java -jar $CLOSURE_COMPILER_PATH \
--output_module_dependencies dist/reports/module-dependencies.json \
--variable_renaming_report dist/reports/variable-renaming-report.txt \
--property_renaming_report dist/reports/property-renaming-report.txt \
--output_manifest dist/reports/files-manifest.txt \
--compilation_level SIMPLE \
--process_common_js_modules \
--warning_level VERBOSE \
--dependency_mode=STRICT \
--entry_point src/entry.js \
--js node_modules/google-closure-library/closure/goog/base.js \
--js src/entry.js \
--js src/defs.js \
--js src/3rdparty/carbon3p.js \
--js src/3rdparty/thirdPartyEmbed.js \
--js src/article.js \
--js src/component.js \
--js src/customEventTarget.js \
--js src/editor.js \
--js src/errors.js \
--js src/core/abstract-extension.js \
--js src/core/operations/ops-from-html.js \
--js src/extensions/copy-cut-paste/index.js \
--js src/extensions/copy-cut-paste/copy-cut-paste.js \
--js src/extensions/embedding/abstractEmbedProvider.js \
--js src/extensions/attachment.js \
--js src/extensions/embedding/carbonEmbedProvider.js \
--js src/extensions/componentFactory.js \
--js src/extensions/embedding/embeddedComponent.js \
--js src/extensions/embedding/embeddingExtension.js \
--js src/extensions/embedding/embedlyProvider.js \
--js src/extensions/formattingExtension.js \
--js src/extensions/giphy-search/giphy-search.js \
--js src/extensions/iframeComponent.js \
--js src/extensions/layoutingExtension.js \
--js src/extensions/selfieExtension.js \
--js src/extensions/shortcutsManager.js \
--js src/extensions/toolbeltExtension.js \
--js src/extensions/uploadExtension.js \
--js src/extensions/vimeoComponent.js \
--js src/extensions/vineComponent.js \
--js src/extensions/youtubeComponent.js \
--js src/figure.js \
--js src/i18n/ar.js \
--js src/i18n/en.js \
--js src/i18n.js \
--js src/layout.js \
--js src/list.js \
--js src/loader.js \
--js src/paragraph.js \
--js src/section.js \
--js src/selection.js \
--js src/toolbars/button.js \
--js src/toolbars/textField.js \
--js src/toolbars/toolbar.js \
--js src/utils/dom.js \
--js src/utils.js \
--externs externs/webcam.externs.js \
--output_wrapper '(function(){%output%})();' \
--assume_function_wrapper \
--export_local_property_definitions \
--generate_exports \
--process_closure_primitives
# Other options for the compiler.
# --dependency_mode=STRICT \
# --module_output_path_prefix dist/modules/ \
# --compilation_level ADVANCED \
# \
# --js src/newmain.js \
# --js src/i18n.js \
# --js src/editor.js \
# --module carbonmodule:2 \
# --create_source_map %outname%.map \
# \
# --js src/i18n/ar.js \
# --module ar:1:carbonmodule \
# --js src/i18n/en.js \
# --module en:1:carbonmodule \
# \
# --js src/extensions/youtubeComponent.js \
# --module youtube:1:iframe: \
# --entry_point carbon
# --entry_point carbon.i18n.ar
# --entry_point carbon.i18n.en
# --js src/i18n/ar.js
# --module
# --js src/i18n/en.js