Coder Social home page Coder Social logo

Comments (13)

quantuminformation avatar quantuminformation commented on May 2, 2024 1

Can you pipe webpack to testling instead of browserify?

from node-libs-browser.

defunctzombie avatar defunctzombie commented on May 2, 2024

@substack @Raynos @dominictarr Thoughts on the above? We could test all of them under one roof and provide a nice testling badge. I think right now the testing for the core shims is rather minimal in many places.

from node-libs-browser.

Raynos avatar Raynos commented on May 2, 2024

@shtylman I vote reverse. Explode this entire repo into one repo per buildin module.

from node-libs-browser.

defunctzombie avatar defunctzombie commented on May 2, 2024

On Feb 25, 2013, at 1:41 PM, Raynos [email protected] wrote:

@shtylman I vote reverse. Explode this entire repo into one repo per buildin module.

Ok, and leave the testing for each module? There will be a lot of duplicated effort to have each module tested in testling. Also, ideally, would want one place where I can go and see. Ok core shims are all passing tests for these browsers.

Is there an advantage for multiple modules in this case?


Reply to this email directly or view it on GitHub.

from node-libs-browser.

Raynos avatar Raynos commented on May 2, 2024

@shtylman there won't be that much duplicated effort.

You just write n unit tests for all the modules.

You have a valid point that you may want to see aggregate test results but that's easy. Make a new repo and have it no code, one test that does require('x-browserify/test/index.js') for each one and have testling create a single badge for it.

The advantage to multiple modules is "holy fuck. why are there 20 files and 1000s of lines of code in one repo"

from node-libs-browser.

sokra avatar sokra commented on May 2, 2024

hmm... a repo with n require('x-browserify/test/index.js') isn't really pretty and make testing more complicated.

Unit tests for each module may be more pain because of (circular) dependencies between modules.

Another point pro merging is that the modules can share common code so the overall size would be smaller...

from node-libs-browser.

Raynos avatar Raynos commented on May 2, 2024

sharing common code is trivial with npm, it's called making new modules.

A repo that requires all the tests is only for the purpose of generating a single testling badge. You would develop and test each buildin yourself.

from node-libs-browser.

sokra avatar sokra commented on May 2, 2024

Do I have to push to the aggregated repo if I want the badge to be updated? If yes, could I push to a x-browserify repo without the badge being updated? That would be annoying...

from node-libs-browser.

dominictarr avatar dominictarr commented on May 2, 2024

@sokra there is hardly ever any problem with circular deps in npm/node, you'd have to really go out of your way to get that problem.

here is a crazy idea: just get the tests from core to work.
(may require a monkey patch to assert that will make it log TAP)

from node-libs-browser.

defunctzombie avatar defunctzombie commented on May 2, 2024

@sokra Lets start with bringing things together and adding some tests. Once things stabilize we can split off anything that seems worthwhile to do so. Having everything here is perfectly fine since a user of this module has the goal of shimming node libs. All the node libs.

from node-libs-browser.

 avatar commented on May 2, 2024

If you want more tests the easiest thing to do is add tests to each of the modules, one-by-one.
If you want to aggregate the test output, just put all the badges into a markdown file someplace and link to each of the modules individually. Merging modules is the opposite direction of what you want. When modules are big and complicated, it's much harder to iterate, it's much harder for outsiders to contribute, and the versions of all the functionality must be updated in lock-step with each other. For more elaboration on this point see mkdirp/issues/15.

from node-libs-browser.

Raynos avatar Raynos commented on May 2, 2024

👍

from node-libs-browser.

dominictarr avatar dominictarr commented on May 2, 2024

think you meant this issue 17 https://github.com/substack/node-mkdirp/issues/17

from node-libs-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.