testling + component

45 views
Skip to first unread message

William Casarin

unread,
Feb 20, 2014, 1:13:07 AM2/20/14
to compo...@googlegroups.com
I don't see many components using testling. I originally didn't think it
was possible due to substack's opinionated style wrt. browserify. Turns
out it's pretty easy:

https://github.com/jb55/parents/tree/testling

package.json:

{
"testling": {
"harness": "mocha",
"browsers": [
"ie6", "ie7", "ie8", "ie9",
"firefox/15", "chrome/22", "opera/12", "safari/5.1"
],
"preprocess": "make build",
"scripts": ["build/*.js", "test/*.js"]
},
"devDependencies": {
"mocha": "*",
"component": "*"
}
}

This almost works except that build/build.js doesn't get included even
though it is generated by the preprocess field. I have contacted
substack to see if this is intentional, hopefully it will be fixed. For
now I had to include the build.js in the repo which is ugly but works.

Cheers,
William

William Casarin

unread,
Feb 20, 2014, 2:08:11 AM2/20/14
to compo...@googlegroups.com
I put together an example repo that explains everything a bit better:

https://github.com/jb55/component-testling-ci-example

Cheers,
William

vision media [ Tj Holowaychuk ]

unread,
Feb 20, 2014, 11:07:08 AM2/20/14
to compo...@googlegroups.com
cool! I didn't know he had a preprocess field there, back when I tried it I found similar, I didn't want to commit the build



Cheers,
William

--
You received this message because you are subscribed to the Google Groups "component" group.
To unsubscribe from this group and stop receiving emails from it, send an email to componentjs...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages