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
Replaced coffescript task with grunt-coffee #522
Conversation
I have signed the CLA |
Thanks, but you're using grunt-coffee, instead of grunt-contrib-coffee. Can you change that? Also make sure the test suite passes locally. I know Travis fails now because it depends on the generator PR, but it should pass locally with both changes. Sidenote: In the future, please notice if the issue is assigned or not. I was actually in the middle of making this change. Also link to the other PR by link. GitHub will make it pretty. This makes us not having to hunt it down. |
Also, issue 385 looks like the wrong reference. |
I can look again, but i didn't see the ability to preserve the directory
|
@@ -55,7 +55,8 @@ | |||
"prompt": "~0.1.12", | |||
"colors": "~0.6.0", | |||
"grunt-mocha": "~0.1.3", | |||
"es6-collections": ">=0.2.0" | |||
"es6-collections": ">=0.2.0", | |||
"grunt-coffee": "0.0.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"grunt-contrib-coffee": "~0.2.0"
The TravisCI failure looks like something didnt fetch from bower correctly. The tests pass locally, and this pull request isn't dependent on the other one. The other one is dependent on this one. |
Tests also pass locally when I update the generators with my pull request. |
Unless I am missing something, grunt-contrib-coffee does not give me the ability to preserve the directory structure when compiled to temp. This will break rjs when it tries to trace the dependencies. |
You might be right about that. However grunt-contrib-coffee is the official one, and grunt-coffee is probably going to be deprecated. Can you add a PR on the grunt-contrib-coffee repo to add that? And we'll just pull in your fork for the time being. |
Will do. |
@blakeblackshear Can you update to use the suggested method in the PR? Latest grunt-contrib-coffee is available on NPM. |
@sindresorhus Tried using the suggested method via grunt-contrib-coffee, getting the following warning when building Yeoman project:
In Gruntfile.js, I have: coffee: {
dist: {
src: 'app/scripts/**/*.coffee',
dest: 'app/scripts/compiled',
options: {
base_path: 'app/scripts',
preserve_dirs: true
}
}
}, |
Tests will fail until this generators pull request is in: https://github.com/yeoman/generators/pull/62 |
Landed. Keep up the good work @blakeblackshear :D |
@blakeblackshear Looks like
Could you take a look? |
Confirmed.
|
Looking into it. The contrib coffee task also fails if there are no coffee files, not sure what is the best way to handle that. |
Fixed that some hours ago. Pull and npm install. |
Thanks. The problem is the config for the watch coffee task. It is trying to lookup from
It can be fixed by just putting |
It would be better to look it up, but we'll go for the temporary fix for now, just to get an release out. Can you open an issue about this to get it fixed for real, so we don't forget? |
Should I also issue a pull request with the temporary fix on the generators repo? |
No worries. I've tested the fix and am making the updates to the generators now. Need to test this works with all of them. |
Ok. Thanks. Sorry for breaking the build. |
I confirm it's working. Just a question on top of my head: Shouldn't we add something related to this change in the FAQ (i.e. to indicate how the |
+1 To fixing this. +1 for putting this in the FAQs. You may also want to add that you need to run |
Agree on fixing and faq. The last point is incorrect. If you upgrade though npm it's done automatically. If you use master, you can just do 'mom install' in the /cli folder |
@sindresorhus I've added an entry in the Additional FAQ ("Q: I just upgraded to 0.9.1 and my coffee files are not compiled anymore" near end of the FAQ) |
@sleeper Much appreciated :) |
@sindresorhus When yeoman autoupdated to 0.9.2 it complained that I didn't have the package. Shouldn't the FAQs reference upgrading to 0.9.2 not 0.9.1? |
Actually looking at the changelog, this change has been part of 0.9.1. |
This replaces the coffee task with grunt-coffee, it has several features that grunt-contrib-coffee doesn't. The biggest one is the ability to maintain a directory structure when compiling the app directory to the temp directory. This addresses issues #407, #387.
I have also opened a pull request to update the generators as well.