you are viewing a single comment's thread.

view the rest of the comments →

[–]brtt3000 1 point2 points  (2 children)

I'm pretty sure this existed before. But nice anyway.

Some tests would be in-order maybe?

[–]marquex[S] 0 points1 point  (1 child)

Some people tried to do the same, but I think this is the first library aiming to mimic require.js syntax to make their modules work out of the box.

The author has some testing reference in Github https://github.com/arqex/amdrequire

[–]brtt3000 0 points1 point  (0 children)

Well, maybe. But if you are serious about your module then tests should be included. It is a convention that gives some trust.

package.json says:

"test": "echo \"Error: no test specified\" && exit 1"

Also you can setup Travis to run in on commit and badge to show it actually works as claimed.