-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"explicit parent script" not working #20
Comments
Thanks for this load test. |
Just to clarify:
What if you rename |
As always I'd appreciate any help you can offer, whether it's a way to reproduce the issue, a test, or a PR. Thanks |
yes
yes
This fixes the issue. |
in |
...but that may not be any faster. sounds silly to generate a globspec using glob |
looks like you have that covered |
this line should probably be return path.join(expanded, '*') the following return path.join(expanded, '/') + '*' is not windows-safe, afaik. the purpose of |
return fs.statSync(f + '/index').isFile() isn't windows-safe either, right? probably want return fs.statSync(path.join(f, 'index')).isFile() but you may blow that away if you change your strategy anyway |
I think you can do the index check before you do the dir check too. this might do it: // untested
module.exports = function (dir1, dir2) {
var expanded = path.resolve(dir1, path.join.apply(this, dir2.split(':')))
// find any index files beneath expanded. if it's not a directory,
// this will fail
var indexGlob = path.join(expanded, 'index*')
if (glob.sync(indexGlob, {nodir: true}).length) {
return indexGlob
}
// check if expanded is actually a directory
var dirGlob = path.join(expanded, path.sep)
if (glob.sync(dirGlob).length) {
return dirGlob + '*'
}
// otherwise, default
return expanded + '*'
} |
A couple questions:
|
Nevermind, was able to reproduce |
Need to: * Refactor names * Rewrite generate-globs unit test now that it does a different thing Pretty big refactor to fix #20 * Move unit-test-specific fixtures into their own dir to avoid confusion * Demarcate unit-test fixtures from one another so they don't become tangled with one another and can be changed/deleted safely * Write a "multi-glob" module which will accept multiple globbing patterns and return the first hit. This allows us to avoid the stat calls or moving glob.sync calls elsewhere
Need to: * Rewrite generate-globs unit test now that it does a different thing Pretty big refactor to fix #20 * Refactor a bunch of names * Move unit-test-specific fixtures into their own dir to avoid confusion * Demarcate unit-test fixtures from one another so they don't become tangled with one another and can be changed/deleted safely * Write a "multi-glob" module which will accept multiple globbing patterns and return the first hit. This allows us to avoid the stat calls or moving glob.sync calls elsewhere
I'm not on Windows. |
Thanks for your help with this. Fix landed in 1.2.3 |
Contents of
scripts
:test/index.sh
invokesnpm run test:lint && npm run test:nsp && npm run test:node && npm run test:browser
.test/browser/index.sh
invokeskarma
.scripty erroneously executes
test/browser/dev.sh
. at least.. I think that's in error.The text was updated successfully, but these errors were encountered: