js-must icon indicating copy to clipboard operation
js-must copied to clipboard

Browser distribution package build

Open verkholantsev opened this issue 10 years ago • 5 comments

Hi!

I've got a problem to use js-must in browser, so I setted up lmd builder to assemble distribution package for browser and added it to repo (to use in npm).

Usage:

Build dist package:

make dist

Removing package added to make clean target.

verkholantsev avatar Mar 26 '14 10:03 verkholantsev

This is awesome, but how can is use the expect wrapping with this?

mabuchner avatar Apr 04 '14 04:04 mabuchner

I can config builder to put this module.exports = Must to global scope (like window.Must = Must). So you can use it like this:

var expect = window.Must;
expect(true).be.true();

Sounds good?

verkholantsev avatar Apr 04 '14 06:04 verkholantsev

Yes, sounds good to me.

mabuchner avatar Apr 04 '14 09:04 mabuchner

Can this be updated for latest must ?

kofifus avatar Aug 03 '17 22:08 kofifus

Hey, @verkholantsev! Really long time no speak! ^_^ I asked something in https://github.com/moll/js-must/issues/11 that I'd like to get your opinion on, too. I'll quote it here to make your life easier. :) Goes for @kofifus, too.

[...] I've pondered up a question of how are you fellows running your unit tests in browsers? :) Don't the popular test runners these days use Browserify or something equivalent internally that makes using CommonJS libs (like Must.js is) transparent? Where do <script src> tags come into play?

moll avatar Aug 31 '17 20:08 moll