Skip to content

Commit

Permalink
Call Closure directly from Wireit (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani authored Aug 22, 2023
1 parent 172891f commit f91938f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 43 deletions.
17 changes: 17 additions & 0 deletions packages/scoped-custom-element-registry/closure-flags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--compilation_level=ADVANCED_OPTIMIZATIONS
--warning_level=VERBOSE
--language_in=STABLE
--language_out=ECMASCRIPT5_STRICT
--dependency_mode=PRUNE
--entry_point=./src/scoped-custom-element-registry.js
--js=./src/scoped-custom-element-registry.js
--js_output_file=./scoped-custom-element-registry.min.js
--output_wrapper="(function(){
%output%
}).call(typeof globalThis === 'object' ? globalThis : window);

//# sourceMappingURL=scoped-custom-element-registry.min.js.map"
--assume_function_wrapper=true
--rewrite_polyfills=false
--create_source_map=./scoped-custom-element-registry.min.js.map
--source_map_include_content
41 changes: 0 additions & 41 deletions packages/scoped-custom-element-registry/gulpfile.js

This file was deleted.

9 changes: 7 additions & 2 deletions packages/scoped-custom-element-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@
},
"wireit": {
"build": {
"command": "gulp",
"dependencies": [
"build:closure"
]
},
"build:closure": {
"command": "google-closure-compiler --flagfile closure-flags.txt",
"files": [
"gulpfile.js",
"closure-flags.txt",
"src/**/*.js"
],
"output": [
Expand Down

0 comments on commit f91938f

Please sign in to comment.