dpcasady / compass-sass Goto Github PK
View Code? Open in Web Editor NEWThis project forked from altosz/grass
Compass grails plugin - updated to work with the latest versions of Compass, SASS, and JRuby
License: Apache License 2.0
This project forked from altosz/grass
Compass grails plugin - updated to work with the latest versions of Compass, SASS, and JRuby
License: Apache License 2.0
i get the following error:
Error loading event script from file [/Users/quorak/.grails/2.0.0/projects/beeWorkflow/plugins/compass-sass-0.6/scripts/_Events.groovy] /Users/quorak/.grails/2.0.0/projects/beeWorkflow/plugins/compass-sass-0.6**/src/groovy/com/stefankendall**/CompassInvoker.groovy (/Users/quorak/.grails/2.0.0/projects/beeWorkflow/plugins/compass-sass-0.6**/src/groovy/com/stefankendall/**CompassInvoker.groovy) (Use --stacktrace to see the full trace)
Thanks for your plugin, it's awesome. But there is an issue when we build a multiple module project using grails plugin system.
First of all, we created a plugin which only contains the base sass files which can be imported by other plugins/ main app.
The plugin does not contain the GrassConfig.groovy. But when packing it, it will always generate one and cause compilation error on the main app caused by the duplicated GrassConfig.groovy in the plugins and the main app.
Another issue is about importing the sass/ scss located in plugin between different plugins and the main app. Currently, it will show "File to import not found or unreadable" when importing such files. Any workaround to solve this issues? Thanks.
The currently deployed version of the plugin does not work with maven plugin resolution. By removing "release" plugin from the BuildConfig.groovy, updating to grails 2.1 or above and redeploying the plugin should fix the issue.
Once Grails 2.3 this will cause issues even for non maven users. http://grails.io/post/40093552028/road-to-grails-2-3-improved-dependency-resolution
The config file specifies the ability to toggle "relative_assets", but due to a bug in compile(), this isn't working.
I have a patch and am sending you a pull request.
Currenty (at least in my case) grails asks me upon dependency renewal if I want to upgrade to 1.1.5 (although I have 1.1.6 installed) and afterwards asks me to upgrade to 1.1.6 again.. Kind of strange.
Would be great to see this updated to support Grails 2.0 along with it's associated plugin updates.
Hi,
in my opinion, the plugin has two modes of operation:
grass.sass_dir
, either continuously when run-app is invoked (using compass watch
) or on demand when compile-css is invoked (using compass compile
).SassResourceMapper.groovy
) and referencing SASS/SCSS files in the application resource definitions, with attrs: [type: 'css']
set.Is this correct?
I think, these two modes are used mutual exclusive. E.g., I decided to use the second mode and thus, I do not require compass watch
to be run upon run-app.
Can you introduce a flag to switch between the two modes of operation in GrassConfig.groovy
, or a flag to disable compass watching the grass.sass_dir
?
Thanks!
Florian
the plugin requires resources 1.0.2 and refuses to run with the latest resources 1.1.1 plugin.
I have this plugin setup with the defaults and compiling, but once my css gets a certain length it starts cutting things off.
This....
header {
background-color:green;
h1 {
color:white;
font-weight:bold;
text-transform:uppercase;
padding:10px 0;
}
}
#main{
padding-top:30px;
min-height:300px;
background-color:#eeeeee;
}
body.welcome {
div.post {
border: 1px dashed black;
background-color: #eeeeee;
margin-bottom:10px;
padding:20px;
}
}
turns into this....
header {
background-color: green;
}
header h1 {
color: white;
font-weight: bold;
text-transform: uppercase;
padding: 10px 0;
}
#main {
padding-top: 30px;
min-height: 300px;
background-color: #eeeeee;
}
body.welcome div.post {
border: 1px dashed black;
background-color: #eeeeee;
margin-bottom: 10px;
notice the padding isn't there and the bottom bracket is missing. If I switch everything around in terms of order, it doesn't matter.. it just cuts off the last few lines. Even if I change the styles to something completely mundane.
Any ideas on how I can even see if an error is happening?
Testing with a project and it's really slow, like 30 sec per file. Running windows jdk 1.7, grails 2.3.0 and latest version of your plugin.
We're using the latest version, just installed into a new Grails app.
$ jruby -v [9:17:56]
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
App itself runs fine but every time I launch it I see:
$ grails install-blueprint
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/xxx/grails
Base Directory: /local/svn/app/grails-soa/trunk
Resolving dependencies...
Dependencies resolved in 1799ms.
Running script /Users/xxx/.grails/1.3.7/projects/trunk/plugins/compass-sass-0.4.3/scripts/InstallBlueprint.groovy
Environment set to development
Executing: jruby -S compass create --using blueprint --sass-dir ./src/stylesheets --css-dir ./web-app/css --javascripts-dir js --images-dir ./web-app/images
jruby: No such file or directory -- compass (LoadError)
Blueprint has been installed!
I had Compass installed already on my MacBook Pro (Snow Leopard) using rvm but I blew rvm away and manually had jruby install compass:
$ jruby -S gem install compass --pre
Fetching: sass-3.1.10.gem (100%)
Fetching: chunky_png-1.2.5.gem (100%)
Fetching: fssm-0.2.7.gem (100%)
Fetching: compass-0.12.alpha.0.gem (100%)
Successfully installed sass-3.1.10
Successfully installed chunky_png-1.2.5
Successfully installed fssm-0.2.7
Successfully installed compass-0.12.alpha.0
4 gems installed
But no change in result, still get the error
Anyone managed to have the plugin work in "watch" mode with grails 2.3.1? Running grails compile-css works normally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.