not require use of browserify #8

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

Comments

Projects
None yet
3 participants
@nickdesaulniers
Contributor

nickdesaulniers commented Jul 24, 2014

No description provided.

@shama

This comment has been minimized.

Show comment Hide comment
@shama

shama Jul 24, 2014

Owner

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?

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

This comment has been minimized.

Show comment Hide comment
@nickdesaulniers

nickdesaulniers Jul 24, 2014

Contributor

script tag

Contributor

nickdesaulniers commented Jul 24, 2014

script tag

@shama shama closed this in 22db73c Jul 24, 2014

@vladikoff

This comment has been minimized.

Show comment Hide comment
@vladikoff

vladikoff Jul 24, 2014

Awesome! UMD ftw 🎆

Awesome! UMD ftw 🎆

@nickdesaulniers

This comment has been minimized.

Show comment Hide comment
@nickdesaulniers

nickdesaulniers Jul 24, 2014

Contributor

cool thanks all

Contributor

nickdesaulniers commented Jul 24, 2014

cool thanks all

@shama

This comment has been minimized.

Show comment Hide comment
@shama

shama Jul 24, 2014

Owner

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!

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

This comment has been minimized.

Show comment Hide comment
@nickdesaulniers

nickdesaulniers Jul 24, 2014

Contributor

looks good

Contributor

nickdesaulniers commented Jul 24, 2014

looks good

@shama

This comment has been minimized.

Show comment Hide comment
@shama

shama Jul 24, 2014

Owner

Tagged as v0.2.7.

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