Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Commit 421738e

Browse files
committed
Initial commit.
0 parents  commit 421738e

File tree

190 files changed

+42914
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+42914
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# OS X
2+
.DS_Store

Contents/Info.plist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<!--Modify these for your Sugar-->
6+
<key>CFBundleName</key>
7+
<string>CSScomb.sugar</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>se.olachristensson.Espresso.Sugar.CSScomb</string>
10+
<key>CFBundleVersion</key>
11+
<string>1.0.0</string>
12+
<!--No need to modify these values-->
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
</dict>
18+
</plist>

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# CSScomb plugin for Espresso
2+
This is a plugin for MacRabbit's [Espresso](http://macrabbit.com/espresso/) code editor with support for the [CSScomb](https://github.com/csscomb/csscomb.js) plugin.
3+
4+
## Requirements
5+
- [Espresso v2.1+](http://macrabbit.com/espresso/)
6+
- [ShellActions.sugar v1.2.1+](https://github.com/onecrayon/ShellActions-sugar)
7+
- [Node.js (v0.10+)](http://nodejs.org/)
8+
9+
## Features
10+
This Espresso plugin uses [CSScomb](https://github.com/csscomb/csscomb.js), a coding style formatter for CSS. Its main feature is sorting properties in a specific order. But it can also be used to beautify your style sheet.
11+
12+
In addition to plain CSS, the plugin also supports SCSS, Sass and Less syntax. But until Espresso receive native support for these languages, you'll need to use third-party plugins to enable support in Espresso. There are several plugins hosted on GitHub that extends the language support in Espresso.
13+
14+
## Usage
15+
Select *Action > CSScomb > Comb CSS* to beautify your style sheet and sort properties. If you don't want to affect the entire style sheet, you can make one or several text selections before performing the action.
16+
17+
It's also possible to only beautify the style sheet without affecting the sort order (and vice versa).
18+
19+
## Custom configuration
20+
This plugin uses a custom made configuration that mimics the way Espresso writes CSS. It also honors your Espresso settings regarding tabs and line endings. The properties sort order is using CSScomb's [zen ordering](https://github.com/csscomb/csscomb.js/blob/master/config/zen.json) style.
21+
22+
To use your own custom configuration, you'll need to create a config file named ".csscomb.json" in your project's root. If you want to use the same configuration for several projects, you can place the file in a parent folder. The plugin searches for a config file in parent folders up to your home folder.
23+
24+
Instructions for creating this config file can be found on [csscomb.com](http://csscomb.com).
25+
26+
## Updates
27+
This plugin is mostly a wrapper for the npm module [csscomb](https://www.npmjs.org/package/csscomb). That means that you can easily update the bundled csscomb package yourself if there is a new version available. The package is found in the folder *ScriptLibraries* in this plugin. I will of course try to keep this plugin updated myself.
28+
29+
## Installation
30+
31+
1. Download and extract the zip
32+
2. Rename folder to CSScomb.sugar
33+
3. Double-click the CSScomb.sugar file to install

ScriptLibraries/node_modules/.bin/csscomb

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ScriptLibraries/node_modules/csscomb/README.md

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ScriptLibraries/node_modules/csscomb/bin/csscomb

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)