GithubHelp home page GithubHelp logo

kkbox / compassapp Goto Github PK

View Code? Open in Web Editor NEW
758.0 758.0 88.0 216.91 MB

Compass.app helps designers compile stylesheets easily without resorting to command line interface

Home Page: http://compass.kkbox.com

License: GNU General Public License v2.0

Ruby 75.35% Shell 0.04% HTML 0.89% Objective-C 0.14% Java 1.46% JavaScript 0.90% Logos 0.02% Lua 0.04% Perl 0.03% CSS 0.30% Gherkin 0.19% C++ 4.56% C 1.23% Haml 0.51% SCSS 13.36% Sass 0.93% Less 0.01% Slim 0.06% RPC 0.01%

compassapp's People

Contributors

bivald avatar blackhawkso avatar bookcasey avatar dependabot[bot] avatar gaod avatar hungtatai avatar imgarylai avatar kaelig avatar kusako avatar timdream avatar tka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compassapp's Issues

Importing partials (_partialfile)

How can I import a _partial sass (doesn't seem like this is supported by compass.app?)

Kind regards
Morten Sørdahl Nielsen
Copenhagen, Denmark

Compass.app crashes when using asset_cache_buster in config.rb

I'm using an existing project.

undefined method `asset_cache_buster' for #<Tray:0x15e7597>
/Volumes/www/hkm_template/sass/config.rb:14:in `build_change_options_menuitem'
org/jruby/RubyKernel.java:1088:in `eval'
src/ui/tray.rb:146:in `build_change_options_menuitem'
src/ui/tray.rb:404:in `watch'
src/app.rb:171:in `try'
src/ui/tray.rb:363:in `watch'
src/ui/tray.rb:137:in `open_dir_handler'
src/ui/tray.rb:56:in `run'
src/main.rb:36:in `(root)'
org/jruby/RubyKernel.java:1038:in `require'
<script>:1:in `(root)'

Here is my config.rb

# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "../css"
sass_dir = "src"
images_dir = "../img"
javascripts_dir = "../js"
#sass_options = {:debug_info => true}
relative_assets = true
line_comments = false
#output_style = :compressed
asset_cache_buster :none

Pause watched folders

In line with having multiple projects being watched, there would also need to be a feature where you could pause the watching of a project.

Using compass.app and RVM manager

Im using rvm for managing different Ruby enviroments.

The setup im currently running is located at:
/Users/luismartins/.rvm/gems/ruby-1.9.2-p180/gems

After inserting this the Compass.app 1.2 i cant get it to work. Am i missing something here?

Thanks.

Gem path help text is incomplete

I needed to use /usr/local/Cellar/gems/1.8:/Library/Ruby/Gems/1.8 for my gem path, but the help text doesn't explain that I can use multiple paths.

The browse button is misleading in this context, because if I use it, the existing value is replaced. Since the gem path is an obscure setting, it may be a good idea to remove the browse button.

Compass.app HAML watching/compilation.

It would be great if someday the Compass.app could watching also the HAML. Or at least if it will have some compile action in it's menu (or implemented in current "Clean & Compile").

App wont start after Compass update

Compass.app won't start after i've upgraded the Compass gem to the latest beta version.
Tried to remove the app and add install it again, but no success.

I get the following error on console:
11/01/15 13:58:20 [0x0-0xc64c64].compass[62117] /Library/Ruby/Gems/1.8/gems/compass-0.11.beta.0/lib/compass/sass_extensions/monkey_patches/browser_support.rb:31:in require': undefined methodto_literal' for class `Sass::Script::Funcall' (NameError)

Option to just Sass watch (not full Compass)

I know this is first and foremost a Compass GUI, but it would be nice to have an additional option to simply just Sass watch a directory (i.e. not the full Compass features). Some projects I work on just need some simple Sass markup, and for that I still need to use the command line at the moment.

Watch multiple projects

A feature that I have enjoyed back using LESS.app and then Scout was the ability to create and then watched projects. While Compass.app watching set up is pretty quick and the history is nice, it would be nice if a few projects could simply be watched all at the same time.

Modifying 'Change Options' Crashes Compass

In OSX Lion when watching a folder if I try to modify anything in 'Change Options' the application crashes out without a visible error. Testing the problem Compass App crashes when you click any of the output styles or Options.

User can specify his own gem path in preference

Expect:

Compass.app has bundled with Sass/Compass in its own library path by default. It should provide an option to specify user's own gem path.

We can use gem environment to get user's default gem path. It should be pre-filled if user want to use this option.

$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-04-19 patchlevel 253) [i686-darwin10.4.0]
- INSTALLATION DIRECTORY: /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/Cellar/ruby-enterprise-edition/2010.02/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby-enterprise-edition/2010.02/bin
- RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-10
- GEM PATHS:
    - /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8
    - /Users/hlb/.gem/ruby/1.8

refs: #1

Support my existing Compass installation and extensions

I already use Compass that I've installed with RubyGems. I also use the alpha version. I would like the option to use my existing installation with the GUI without having to maintain two separate sets of gems.

I do think it's useful and correct to include compass in the app, but I cannot use the app this way.

Is this a documentation problem or a feature request?

Specifically, when I tried to work on an existing project, Compass.app crashed.

[LaunchRunner Error] org.rubyforge.rawr.Main.main(String[]) threw an exception:
/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/data.rb:105:in `require': no such file to load -- fancy-buttons (LoadError)
  from /Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/data.rb:105:in `require'
  from /Users/me/Sites/electronicsomething/drupal/sites/all/themes/something/config.rb:2:in `parse_string'
  ...internal jruby stack elided...
  from Kernel.require(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/data.rb:105)
  from Compass::Configuration::Data.require(/Users/me/Sites/electronicsomething/drupal/sites/all/themes/something/config.rb:2)
  from Compass::Configuration::Serialization::InstanceMethods.parse_string(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/serialization.rb:35)
  from Kernel.eval(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/serialization.rb:41)
  from Compass::Configuration::Serialization::InstanceMethods.parse_string(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/serialization.rb:35)
  from Compass::Configuration::Serialization::InstanceMethods._parse(file:/Applications/compass.app/Contents/Resources/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8/open-uri.rb:32)
  from Kernel.open(file:/Applications/compass.app/Contents/Resources/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8/open-uri.rb:32)
  from Kernel.open(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/serialization.rb:34)
  from Compass::Configuration::Serialization::InstanceMethods._parse(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/serialization.rb:13)
  from Compass::Configuration::Serialization::ClassMethods.new_from_file(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/helpers.rb:39)
  from Compass::Configuration::Helpers.configuration_for(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/configuration/helpers.rb:83)
  from Compass::Configuration::Helpers.add_project_configuration(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/commands/project_base.rb:31)
  from Compass::Commands::ProjectBase.add_project_configuration(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/commands/project_base.rb:25)
  from Compass::Commands::ProjectBase.configure!(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/commands/project_base.rb:15)
  from Compass::Commands::ProjectBase.initialize(/Applications/compass.app/Contents/Resources/ruby/gem/gems/compass-0.10.6/lib/compass/commands/update_project.rb:26)
  from Compass::Commands::UpdateProject.initialize(src/tray.rb:205)
  from (unknown).new(src/tray.rb:205)
  from Tray.watch(src/tray.rb:112)
  from Tray.open_dir_handler(src/tray.rb:48)
  from Tray.run(src/main.rb:44)
  from Kernel.require(<script>:1)
  from (unknown).(unknown)(:1)

Compass app not working on Unity

I have the 1.5 version of compass app, but once I upgraded to Ubuntu natty the indicator disapeared form the panel. So now I can't acces the app at all.

Can you please take a look at this and see if there's a workaround?

Update to html5 boilerplate 2.0

I wish this could be done automatically on the next release of compass app. The current version on the app is the 1.0.

Thanks!

dont load compass.app on ubuntu 11.10 oneiric

i start the run.sh after extract the package to my personal home folder, but dont works, no result after start this; not via doubleclick or terminal; i dont find also this on my search in www to an solution. Maybe you have other hint for to start the comapass.app. compass is installed and works fine.

1.11 Boilerplate 2.0 issue.

Hi,
I'm a bit of a newbie to compass & SASS.
On the previous Compass.app version, Boilerplate 1.0 was working fine.
I recently upgraded and now, with the added support for boilerplate 2.0, I'm unable to get Boilerplate working at all.

I've tried a few updated versions of boilerplate for compass, as well as the one which comes with Compass.app.
Every time I try to compile the .SASS file, I get this message:
"Syntax error: Mixin html5-boilerplate-normalize takes 1 argument but 11 were passed."

This is referring to:
"+html5-boilerplate-normalize(html5, base, selection, links, typography, lists, images, svg, figures, forms, tables)"
Previously, this was simply a list of mixins, which worked fine. Unfortunately, this new argument format refuses to work.

Do I need to find a specific version somewhere, or is it an issue with the installation?

I'm using Compass 0.12 alpha (but tried it with the main release too).
Sorry if this is too amateurishness. Any help would be appreciated!

High memory usage

Compass.app takes 84.5MB of memory when idle and consistently increased to 90MB when turn on folder watching. It seems a bit too high I think

Watch folder issue

I have a compass project, that i initiated via terminal, i cant make the compassapp watch that folder, or atleast i can set it to watch, but nothing happens :/

Problems with compass-colors plugin after reboot

He there, after a reboot on OSX i got this error mgs:

no such file to load -- compass-colors
org/jruby/RubyKernel.java:1038:in require' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/data.rb:122:inrequire'
/Users/tdwesten/Sites/Localhost/trumm/wp-content/themes/trumm/config.rb:42:in parse_string' org/jruby/RubyKernel.java:1088:ineval'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/serialization.rb:21:in parse_string' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/serialization.rb:15:in_parse'
org/jruby/RubyIO.java:1111:in open' org/jruby/RubyKernel.java:298:inopen'
file:/Applications/compass.app/Contents/Resources/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8/open-uri.rb:32:in open' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/serialization.rb:14:in_parse'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/file_data.rb:29:in new_from_file' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/inheritance.rb:96:inwith_defaults'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/file_data.rb:28:in new_from_file' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/helpers.rb:42:inconfiguration_for'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/configuration/helpers.rb:89:in add_project_configuration' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/commands/project_base.rb:31:inadd_project_configuration'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/commands/project_base.rb:25:in configure!' /Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/commands/project_base.rb:15:ininitialize'
/Applications/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.5/lib/compass/commands/update_project.rb:29:in initialize' src/ui/tray.rb:353:inwatch'
src/app.rb:171:in try' src/ui/tray.rb:351:inwatch'
src/ui/tray.rb:126:in compass_switch_handler' src/ui/tray.rb:56:inrun'
src/main.rb:36:in (root)' org/jruby/RubyKernel.java:1038:inrequire'

<script>:1:in `(root)' Do you now how to fix this? Thanks

Livereload already Loaded

Hi,

First I want to thanks you for your work. I just bought Compass App and I have a little problem. I'm already using livereload to "watch" modification of PHP files. But when I edit SCSS file Compass app the livereload doesn't work.

Is there a solution to check if livereload is already working, and use this already working instance of livereload to call the refresh ?

(Also is there a solution to download updates ? I mean I bought the software but the download link is not valid forever :()

Problems with require

hi!

I have a project located in "/develeop/sasstest".
In my config.rb I require a lib in "/develop/sasstest/themes/lib/utils.rb" with

require File.join(File.dirname(FILE),"themes","lib","utils.rb")

compass tells me in compass report that

no such file to load -- ./themes/lib/utils
org/jruby/RubyKernel.java:1038:in require' :35:inbuild_change_options_menuitem'
org/jruby/RubyKernel.java:1088:in eval' src/ui/tray.rb:147:inbuild_change_options_menuitem'
src/ui/tray.rb:398:in watch' src/app.rb:170:intry'
src/ui/tray.rb:357:in watch' src/ui/tray.rb:304:inclean_project'
src/ui/tray.rb:288:in clean_project_handler' src/ui/tray.rb:56:inrun'
src/main.rb:44:in (root)' org/jruby/RubyKernel.java:1038:inrequire'
:1:in `(root)'

When I require the lib with the absolute path

require /develop/sasstest/themes/lib/utils.rb

it works.

Using Compass Extensions

Since i havent been able to use my custom compass install, i've changed for now to the bundled compass version.

Also placed the compass extensions i use at ~/.compass/extensions as described in the wiki and restarted the app.

After this, when i try to compile the project i always get this:

no such file to load -- rgbapng
org/jruby/RubyKernel.java:1037:in require' /Users/luismartins/Applications/Develop/compass.app/Contents/Resources/ruby/compass_0.11/compass-0.11.beta.6/lib/compass/configuration/data.rb:120:inrequire'

rgbapng is one of the Compass Extension im using on this project.

Am i missing something?

Highlight menu bar item/ change icon color when compass is working/ done

A small feature request: it sometimes happens to me that compass/ compass.app is too slow to keep up with the frequency of my saving changes to the SCSS file, causing my last change to not be visible in the browser (confusion :) ). I sometimes use the command line, and even though it does not seem faster, at least I can see from the output when the CSS compilation is done.

To get the same effect and control in compass.app, I would suggest to color the menu bar icon somehow or otherwise change it during the compilation and revert the icon to normal state when it is finished.

Thanks for your work!

Installation (unzip) path limitation

Example (under Windows 7 x64):

Compass.app is running in
C:/Program Files (x86)/compass.app
This path has space , please move Compass.app to another path

This should be fixed.

On Linux or Mac the menu item could be shorten with "~"

Instead of showing the full path, on Linux or Mac the menu item could be shorten with "~" to replace the home dir part.

Current menu label:

"Stop watching /Users/timdream/Repositories/blahbalh"

Desired:

"Stop watching ~/Repositories/blahbalh"

Should be trivial to do in tray.rb, but I don't write ruby ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.