js-must
js-must copied to clipboard
Browser distribution package build
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.
This is awesome, but how can is use the expect wrapping with this?
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?
Yes, sounds good to me.
Can this be updated for latest must ?
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?