Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Fix some lint issues and add npm run build for UMD module #36

Merged
merged 4 commits into from Oct 20, 2016
Merged

Fix some lint issues and add npm run build for UMD module #36

merged 4 commits into from Oct 20, 2016

Conversation

jotto
Copy link
Contributor

@jotto jotto commented Oct 11, 2016

This PR began as a couple of lint fixes so I could copy and paste the minified code into an existing project without blowing up eslint.

Then, it seemed easy enough to just create a UMD module definition. All that's left now is to push to the npm registry.

There are no tests to run, but I verified most functionality works as a browser global and require/import.

  • Usage in the browser doesn't change.
  • import 'amazon-cognito-js'; or require('amazon-cognito-js'); (after they push to npmjs.org)
  • to build, instead of grunt uglify, do npm run build (same command as amazon-cognito-identity-js)

@itrestian
Copy link
Contributor

Thanks @jotto! I will bring up the pull request within the team in order to merge it. Weird that the callback in removeRecord was called in the body but not present in the function signature .

@jotto
Copy link
Contributor Author

jotto commented Oct 19, 2016

gentle ping

@itrestian
Copy link
Contributor

Hi, can you confirm that we can use, modify, copy, and redistribute this PR? Thank you!

@jotto
Copy link
Contributor Author

jotto commented Oct 20, 2016

Hi, can you confirm that we can use, modify, copy, and redistribute this PR? Thank you!

I confirm that this PR can be used, modified, copied, and redistributed.

@itrestian itrestian merged commit 81daac1 into amazon-archives:master Oct 20, 2016
@jotto jotto deleted the lint-issues branch October 20, 2016 22:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants