Commit Graph

59 Commits

Author SHA1 Message Date
Chris Eppstein
95fd94428a Refactored the Configuration Singleton and the UpdateProject command so that it now relies more heavily on the configuration object. 2009-02-21 00:15:19 -08:00
Chris Eppstein
a8f6648a64 Give a better error when a framework is misspelled. 2009-02-20 17:07:56 -08:00
Chris Eppstein
7f63fe7a29 Clean up some of the command line documentation. 2009-02-20 14:39:01 -08:00
Chris Eppstein
ccf0dfa19a Rename the --source and --target command line options to --sass-dir and --css-dir respectively to match the configuration file syntax. 2009-02-20 14:38:33 -08:00
Chris Eppstein
39a4b48b5e Fixed a bug in the configuration parser.
Added Compass#sass_engine_options method to emit sass options suitable
for passing to Sass::Engine#new.

Added require tracking in the configuration parser and serializer.
2009-02-12 23:19:32 -08:00
Chris Eppstein
c391ce09c0 Import the configuration module by default and not just for installation. 2009-02-08 13:09:29 -08:00
Chris Eppstein
10e6808648 Detect identical files when writing files during install, compile, etc. Also centralize the actions to use the write_file action as much as possible. 2009-02-08 03:46:47 -08:00
Chris Eppstein
0dfd60671f Remove some unused methods. 2009-02-08 03:46:46 -08:00
Chris Eppstein
3adf6a6435 Extract a project compiler class from the update_project command. 2009-02-08 03:46:46 -08:00
Chris Eppstein
6c4759278e Don't return a trailing slash from templatize or targetize. 2009-02-08 03:46:46 -08:00
Chris Eppstein
c0c422c373 Consolodate error classes. 2009-02-08 03:46:46 -08:00
Chris Eppstein
9e80847ac7 Remove unused method. 2009-02-08 03:46:46 -08:00
Chris Eppstein
8a0d2b900c Clean up the version parsing code. 2009-02-08 03:46:46 -08:00
Chris Eppstein
29666e177c DRY up the different types of installs. 2009-02-08 03:46:46 -08:00
Chris Eppstein
a0552a67c4 Modify the update command to use the Actions module and Logger. Moved the compile action to the Actions module. 2009-02-08 03:46:46 -08:00
Chris Eppstein
dbc262fbe1 Factored out an Actions module for doing the filesystem actions like copying, making directories, etc. 2009-02-08 03:46:46 -08:00
Chris Eppstein
98a2f0538b Use the Compass.configuration singleton for updates. 2009-02-08 03:46:46 -08:00
Chris Eppstein
a7406659b6 New Ruby on Rails project installer. 2009-02-08 03:46:46 -08:00
Chris Eppstein
94f4471ad5 Better followup messages after installation. 2009-02-08 03:45:48 -08:00
Chris Eppstein
1da3b3ae9b Add a to method to Manifest::Entry to centralize the logic. 2009-02-08 03:45:48 -08:00
Chris Eppstein
d2a3046526 Make the Configuration class a singleton + added some access helpers to
the Compass module.
2009-02-08 03:45:48 -08:00
Chris Eppstein
91e081cd50 New project creation implemented using manifests and installation strategies. 2009-02-08 03:45:48 -08:00
Chris Eppstein
0ac537a81b Added a framework accessor for the current framework. 2009-02-08 03:45:48 -08:00
Chris Eppstein
61de5ae125 New base class for Compass Errors. 2009-02-08 03:45:48 -08:00
Chris Eppstein
59e626fe8b Factored out a Configuration object to parse stand-alone project configuration files. 2009-02-08 03:45:47 -08:00
Chris Eppstein
845fa14e71 Factored out a logger for the command line to tell the user what is happening. 2009-02-08 03:45:47 -08:00
Chris Eppstein
359be7e46e Added an import to the install_rails command line command. Bumped the version up to 0.3.9 2009-02-06 10:57:08 -08:00
Chris Eppstein
f316dd013e Centralize all the framework specific code into the frameworks directory. 2009-01-25 15:05:36 -08:00
Chris Eppstein
1e5502159b Refactor the Compass commands to centralize and cleanup the project commands. 2009-01-25 14:27:08 -08:00
Chris Eppstein
911041f355 Give a better error message to users with an unsupported version of haml installed. 2009-01-25 11:28:11 -08:00
Chris Eppstein
c8e07b4228 Make the compass watch command a little more understandable for first time users and handle Interrupt more gracefully. 2009-01-24 14:35:17 -08:00
Chris Eppstein
ff2a54af53 Changes to make the command-line tool more testable. 2009-01-19 07:52:39 -08:00
Chris Eppstein
5fce487ba8 Don't reference ARGV in the exec module. This makes testing easier. 2009-01-18 17:41:20 -08:00
Chris Eppstein
becda48b83 Allow passing a path to the rails project instead of requiring the user to change into the rails project directory first. 2009-01-18 17:04:20 -08:00
Chris Eppstein
f903da3434 Indifferent access (symbol, string) for Compass::Frameworks[] 2009-01-18 12:25:16 -08:00
Chris Eppstein
98035eea07 Better to keep the config file in the source directory. 2009-01-02 01:35:14 -08:00
Chris Eppstein
77077c6347 Allow a ruby configuration file named config.rb to be placed at the top of a compass project to import other plugins and frameworks. 2009-01-02 01:26:16 -08:00
Chris Eppstein
8b8ad95c15 Make framework plugins actually work. 2009-01-01 23:18:21 -08:00
Chris Eppstein
ebb22c1060 Register the blueprint framework as the correct name. 2009-01-01 23:14:51 -08:00
Chris Eppstein
a54ccae040 Don't limit the legal framework values on the command line. 2009-01-01 23:14:24 -08:00
Chris Eppstein
e93051d239 Add a command to list available frameworks. 2009-01-01 23:11:52 -08:00
Chris Eppstein
b021b77894 Allow frameworks more control over specifying where the templates and stylesheets are located. 2009-01-01 18:06:37 -08:00
Chris Eppstein
9631a403e3 Allow the project source and target directories to be different by specifying --source and --target to any of the command line commands. 2008-12-21 22:07:32 -08:00
Chris Eppstein
618bd788e1 Require rubygems helps to require sass when running locally instead of out of a gem. 2008-12-08 20:43:13 -08:00
Chris Eppstein
31370e20d8 Fixed the --imports command-line option so that it generates useful output for being passed to sass. E.g.:
sass `compass --imports` some_file.sass
2008-12-02 15:48:22 -08:00
Chris Eppstein
39265bafc3 Added a Sass Function called nest that performs a nesting operation on (possibly) comma delimited selectors and emits the result as a string.
For example:

nest(".foo", "a, em, b")

would render:

.foo a, .foo em, .foo b

The nest function can take any number of arguments and each argument can have any number of comma-delimited selectors.
2008-11-29 01:08:07 -08:00
Chris Eppstein
3fe8f6a675 Added a compass command-line option to watch a project and automatically recompile when it changes. Use compass --watch. 2008-11-04 11:55:57 -08:00
Chris Eppstein
f62b5589a7 Command line option to emit the compass import paths suitable for use in a PATH variable. 2008-10-21 09:06:35 -07:00
Chris Eppstein
e10cc76ca5 Fixed duplicate directory information in the rails initializer generator. 2008-10-13 07:49:44 -07:00
Chris Eppstein
9af18fa20f Added a basic test case. So far it can be used to make sure your stylesheets compile.
Eventually it should provide assertions for generated rules and styles.
2008-10-03 16:38:39 -07:00