Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide UMD compatibility. #50

Merged
merged 1 commit into from
Aug 15, 2014
Merged

Provide UMD compatibility. #50

merged 1 commit into from
Aug 15, 2014

Conversation

nicksay
Copy link
Contributor

@nicksay nicksay commented Aug 14, 2014

  • Ensure build output is wrapped to support both AMD (e.g. RequireJS) and
    CommonJS (e.g. Browserify) module formats.
  • Use a dedicated wrapper.js file since the complexity has grown.
  • Streamline how the API is defined for both the main and bootloader binaries
    to reduce boilerplate.

Closes #40.

@nicksay
Copy link
Contributor Author

nicksay commented Aug 15, 2014

@marcelduran Updated to condense the pre-minified UMD wrapper. PTAL

@marcelduran
Copy link
Contributor

Is it possible to write tests? Perhaps simulating AMD/CommonJS environments by adding exports object and define function then checking if SPF UMD wrapper is actually exposing its methods as expected?

@nicksay
Copy link
Contributor Author

nicksay commented Aug 15, 2014

We don't have an integration test environment setup that uses the compiled code, just unit tests that use the source; so I'm going to defer on that, but it's a good idea.

@marcelduran
Copy link
Contributor

Fair enough. LGTM 👍

* Ensure build output is wrapped to support both AMD (e.g. RequireJS) and
  CommonJS (e.g. Browserify) module formats.
* Use a dedicated wrapper.js file since the complexity has grown.
* Streamline how the API is defined for both the main and bootloader binaries
  to reduce boilerplate.

Closes youtube#40.
nicksay added a commit that referenced this pull request Aug 15, 2014
Provide UMD compatibility.
@nicksay nicksay merged commit 7cd97dc into youtube:master Aug 15, 2014
@nicksay nicksay deleted the umd-compat branch August 15, 2014 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide UMD compatibility
2 participants