Comments (13)
Can you pipe webpack to testling instead of browserify?
from node-libs-browser.
@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.
@shtylman I vote reverse. Explode this entire repo into one repo per buildin module.
from node-libs-browser.
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.
@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.
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.
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.
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.
@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.
@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.
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.
👍
from node-libs-browser.
think you meant this issue 17 https://github.com/substack/node-mkdirp/issues/17
from node-libs-browser.
Related Issues (20)
- The Elliptic package 6.5.2 for Node.js allows ECDSA signature malleability via variations in encoding, leading '\0' bytes, or integer overflows.
- The new version of readable-stream is incompatible HOT 1
- New version of stream browser/ index.js
- dependencies:{"readable-stream": "^2.3.3" } in package.json ,have a mistake in building project HOT 1
- Deprecate the npm package? HOT 1
- good idea why stop develop
- bump url dependency module version to remove querystring dependency
- 请求报错 code: MissingDateHeader
- crypto-browserify needs help
- console polyfill outdated
- Incompatibility between Node.js core libs and webpack's lib HOT 4
- Publish on npm already! HOT 1
- Old path-browserify is very slow on long pathnames (should I say ReDoS'able?) HOT 1
- Module not found: Can't resolve 'util' HOT 2
- process.nextTick polyfill is slow when tab is unfocused
- buffer 4.9.1 can cause errors
- why has this become deprecated? HOT 8
- Compatibility with new readable-stream HOT 3
- TypeError: The "original" argument must be of type Function HOT 5
- path-browserify 0.X won't support path.parse method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libs-browser.