-
Notifications
You must be signed in to change notification settings - Fork 72
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
Is there a location for informal discussion? #269
Comments
Technically, there is a slack, but we've never really used it. Github issues are fine for questions. 👍 |
Thank you for your rapid reply! I'll open another issue with my question unless you would prefer I ask here. |
No problem -- whichever you prefer 😉 |
Alright. Here, then. 😊 I have a couple questions:
Oh, and I am trying to build on Windows 7 x64, if that matters. |
Also, you're better off changing your globs from |
Thank you for your help. Changing my globs from To clarify, export async function copyFiles(fly) {
await fly.source(`${srcPath}/**`, {
ignore: [...jsGlobPatterns, ...cssGlobPatterns, ...htmlGlobPatterns]
})
.target(draftPath)
//FIXME: This line fails to copy anything
await fly.source(extraJS).target(`${draftPath}/js`)
} became export async function copyFiles(fly) {
await fly.source(`${srcPath}/**`, {
ignore: [...jsGlobPatterns, ...cssGlobPatterns, ...htmlGlobPatterns]
})
.target(draftPath)
// This works!
await fly.start('copyExtraJS')
}
export async function copyExtraJS(fly) {
await fly.source(extraJS).target(`${draftPath}/js`)
} So, if I understand your response and this behavior, source location(s) can only be set once per task. Further calls to If that is the case, I do have one other question: why was export async function release(fly) {
await fly.clear(draftPath)
await fly.start('build')
await fly.start('test')
await fly.start('cleanRelease')
//FIXME: This line fails to copy anything
await fly.source(`${draftPath}/**`).target(releasePath)
} became export async function release(fly) {
await fly.clear(draftPath)
await fly.start('build')
await fly.start('test')
await fly.start('cleanRelease')
// works now
await fly.start('copyToRelease')
}
export async function copyToRelease(fly) {
await fly.source(`${draftPath}/**`).target(releasePath)
} |
Hmm.. I just cloned your current repo & ran each task individually as is -- works fine for me on my Mac. Unfortunately I'm on the road right now & don't have access to a Windows machine. Strange though -- we run all our tests on Window too (automatically) & they pass. /cc @hzlmn Are you still running that Windows VM? Do you mind checking out the project (commit) & seeing what's happening? Thanks! |
@Etherian I find it odd that nothing happens. But yes, there is a confirmed bug here. Unfortunately there's an inconsistency in "sourcing" after starting tasks from inside other tasks. (See also taskrjs/fly-ava#13.) Generally though, regardless of the bug, a Task should encapsulate a single action & then you chain them together (as You pretty much discovered this with your latest edits. I'd clean it up further by: export async function clean(fly) {
await fly.clear([draftPath, releasePath])
}
export async function release(fly) {
await fly.start('clean').parallel(['build', 'test', 'copyRelease'])
} |
It is odd, isn't it? Yet, those two lines consistently did not copy anything. At one point, I considered that it would be helpful to peek into the data moving between operations. That might be a good idea for a plugin. Anyway, thank you again for your help. 😄 I can easily work around the trouble now. |
Nope. But issues are welcome any time. I may consider revamping the Slack channel in the future though. |
Is there a location, such as an IRC channel, for discussion of Fly difficulties or issues that are not significant enough to warrant a Github Issue? If so, it would be helpful to mention it in the README; if not, it might be worthwhile to create one.
The text was updated successfully, but these errors were encountered: