Skip to content

Commit

Permalink
Merge pull request #35 from palmerj3/addModuleExports
Browse files Browse the repository at this point in the history
feat(build system): Added step to build process that creates index.js in...
  • Loading branch information
joeyparrish committed Mar 17, 2015
2 parents a4e9bc3 + e4f8881 commit d10a512
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ shaka-player.compiled.debug.js
shaka-player.compiled.debug.map
docs/api
docs/reference
index.js
5 changes: 5 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ rm -f "$dir"/shaka-player.compiled.js
--create_source_map "$dir"/shaka-player.compiled.debug.map \
--js_output_file "$dir"/shaka-player.compiled.debug.js

# Compile minified library with module.exports output wrapper
(library_sources_0; closure_sources_0) | compile_0 \
--output_wrapper='(function(){%output%}.bind(module.exports))()' \
--js_output_file "$dir"/index.js

# Fork the non-debug version before appending debug info.
cp "$dir"/shaka-player.compiled{.debug,}.js

Expand Down

0 comments on commit d10a512

Please sign in to comment.