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

not require use of browserify #8

Closed
nickdesaulniers opened this issue Jul 24, 2014 · 7 comments
Closed

not require use of browserify #8

nickdesaulniers opened this issue Jul 24, 2014 · 7 comments

Comments

@nickdesaulniers
Copy link
Contributor

No description provided.

@shama
Copy link
Owner

shama commented Jul 24, 2014

Could you describe how you want to use this library? Currently I can use it with any commonjs compatible module bundler. It doesn't explicitly require browserify.

Are you dropping it directly into a script tag and need a variable exposed globally? Or using requirejs? something else?

@nickdesaulniers
Copy link
Contributor Author

script tag

@shama shama closed this as completed in 22db73c Jul 24, 2014
@vladikoff
Copy link

Awesome! UMD ftw 🎆

@nickdesaulniers
Copy link
Contributor Author

cool thanks all

@shama
Copy link
Owner

shama commented Jul 24, 2014

Wrapped in a UMD using browserify index.js --standalone atlaspack > index.js. So you can now do:

<script src="node_modules/atlaspack/index.js"></script>
<script>
var atlas = window.atlaspack(canvas);
</script>

Let me know if that works for you @nickdesaulniers and I'll publish a new version. Thanks!

@nickdesaulniers
Copy link
Contributor Author

looks good

@shama
Copy link
Owner

shama commented Jul 24, 2014

Tagged as v0.2.7.

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

No branches or pull requests

3 participants