tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

Rebuild browser build in npm #140

Closed englercj closed 11 years ago

englercj commented 11 years ago

Looks like there are some differences in the library and browser builds in the latest npm version (specifically a766dc58f56ca5ba2b3a2463e141774006ca43f6).

Anyway you can push an updated browser version to npm?

Thanks!

btd commented 11 years ago

Yes, this script was added as proof of concept that should.js can be build without any issues. I will remove this script soon as should.js main target is node.js. You can use this version (i build it for myself). It contains all node dependencies extracted, but it does not use assert module. In any case you can build you own version - all build commands included.

englercj commented 11 years ago

Hmm, I am using it to run browser tests with mocha. Just like mocha has the JS/CSS necessary for running browser tests in the repo I would expect should.js to be the same.

Basically so I can install should with npm and do:

<script src="../../node_modules/should/should.js"></script>

or something to that effect (which is what mocha lets you do now).

btd commented 11 years ago

I updated script. Try 2.0.2.

englercj commented 11 years ago

Perfect, thanks!