-
Notifications
You must be signed in to change notification settings - Fork 82
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
Support for compass. #94
Comments
Can Compass not be added to a Lineman project? We've been waiting to hear if there's a blocker. |
I tried importing the following: @include 'compass/css3'; which is really the only way I do it via normal setups, but it's done by I suspect I'd have to try and use node compass ? I have no experience doing On Wed, Jul 3, 2013 at 1:43 PM, Justin Searls [email protected]:
.joe +1.778.994.4846 |
OK. Apologies, as you're probably the first and only person interested in using Compass with Lineman. I suggest we treat this as a grunt-contrib-sass issue until it's clear Lineman is breaking you. For instance, your sass task config apparently needs an option |
Yeah I have that part working for sure. The thing about compass is it's a If there is a better way of getting sprite sheets working I'm all ears. On Wed, Jul 3, 2013 at 2:39 PM, Justin Searls [email protected]:
.joe +1.778.994.4846 |
I haven't tried it, but this looks promising for a pure grunt solution for solving the image spritesheets: https://github.com/asciidisco/grunt-imagine |
Interesting, so if I wanted to add this task to our lineman build I'd just On Thu, Jul 4, 2013 at 11:00 AM, David Mosher [email protected]:
.joe +1.778.994.4846 |
Hrm, did: npm install grunt-imagine, ran as expected. // task override configuration and it claimed I don't have it installed: Running "common" task However from my command line I can in fact see it. Is there a config step I'm missing ? |
Added the load npm directive as well. On Thu, Jul 4, 2013 at 12:02 PM, Joe Gaudet [email protected] wrote:
.joe +1.778.994.4846 |
You'll need to add grunt-imagine to the list of installed tasks from npm, Lineman has a small wrapper around this: loadNpmTasks: [
"grunt-imagine"
] |
Hrm looks like there is an error in the plugin. |
Looks like |
Did you run npm install after adding it to your package?
|
Where do those targets go? Application JS or ? On Thu, Jul 4, 2013 at 12:05 PM, David Mosher [email protected]:
.joe +1.778.994.4846 |
Yep, |
If you don't need all of grunt-imagine you may have success just porting the sprites task : https://github.com/asciidisco/grunt-imagine/blob/master/tasks/sprites.js |
Hrm, Loading "gifmin.js" tasks...ERROR
is the error I keep getting which appears to be generated by:
missing dependency... ? On Thu, Jul 4, 2013 at 12:08 PM, David Mosher [email protected]:
.joe +1.778.994.4846 |
hrm, it would appear they haven't pushed their latest fix... that's annoying On Thu, Jul 4, 2013 at 12:19 PM, Joe Gaudet [email protected] wrote:
.joe +1.778.994.4846 |
Errors all resolved but still getting: Warning: Task "grunt-imagine" not found. Used --force, I don't see an explicit mention of that task in the source, I see the |
Nevermind I think i've got it figured now On Thu, Jul 4, 2013 at 12:47 PM, Joe Gaudet [email protected] wrote:
.joe +1.778.994.4846 |
Well so now I've got it running, however it appears to stop the app from |
If it has its own built in file watcher perhaps there could be a conflict, or perhaps you just need to add an additional watch target for the sprites in |
Ahhh that got it, moved it to the watch block, and then dist. I'm going to write up a blog post on all of this soon. .joe On Thu, Jul 4, 2013 at 1:30 PM, David Mosher [email protected]:
.joe +1.778.994.4846 |
Awesome! Glad to hear it worked out 👍 |
Gah crap.... now my whole app is borked. Getting this: Error: ENOENT, stat 'generated/index.html' On Thu, Jul 4, 2013 at 1:37 PM, David Mosher [email protected]:
.joe +1.778.994.4846 |
A hunch, you may be running into this: https://github.com/testdouble/lineman#too-many-open-files |
nope.. On Thu, Jul 4, 2013 at 2:25 PM, David Mosher [email protected]:
.joe +1.778.994.4846 |
grrr just did a clean checkout, no fixie.... very very odd. On Thu, Jul 4, 2013 at 2:26 PM, Joe Gaudet [email protected] wrote:
.joe +1.778.994.4846 |
was there a change to the homepage directive ? On Thu, Jul 4, 2013 at 2:33 PM, Joe Gaudet [email protected] wrote:
.joe +1.778.994.4846 |
Yes, see #88 |
@joegaudet I was able to get module.exports = require(process.env['LINEMAN_MAIN']).config.extend('application', {
removeTasks: {
common: ["less", "handlebars"]
},
prependTasks: {
common: ["compass:compile"]
},
loadNpmTasks: ["grunt-contrib-compass"],
compass: {
compile: {
options: {
basePath: 'app',
sassDir: 'css',
imagesDir: 'img',
fontsDir: 'fonts',
javascriptsDir: 'js',
cssDir: '../generated/css',
generatedImagesPath: 'generated/img',
importPath: ['vendor/css'],
httpPath: '../',
relativeAssets: false
}
}
}
}); The only issue I have is that I can't seem to configure the |
@mattupstate @joegaudet I was able to get Compass (mostly) working, including getting # Make sure concat_sourcemap gets the generated file from Compass
concat_sourcemap:
css:
src: "<%= files.css.generated %>" Now I'm working on getting the watcher to actually rerun |
A lineman-compass plugin that encapsulated this config would rock On Sun, Jun 15, 2014 at 12:36 PM, Richa Avasthi [email protected]
|
@searls Would love to do that as well, but I'm still pretty new to lineman (started yesterday), and haven't yet gotten a plugin I'm trying to build working. Okay if I post that to get advice later? |
@mattupstate @joegaudet @searls And here's the watcher bit: watch:
compassSource:
files: ["app/css/**/*.scss"],
tasks: ["compass:compile"] I'll work on getting a plugin written ASAP. |
Sass is great, but having the included compass tools would be greater...
specifically the tools for creating sprite sheets.
.joe
The text was updated successfully, but these errors were encountered: