Skip to content

Commit

Permalink
meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 14, 2016
1 parent 727b83d commit 8f83d74
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 25 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ insert_final_newline = true
[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
13 changes: 0 additions & 13 deletions .jshintrc

This file was deleted.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"private": true,
"scripts": {
"test": "xo"
},
"dependencies": {
"autoprefixer": "^6.0.0",
"get-stdin": "^5.0.1",
"postcss": "^5.0.4",
"postcss-safe-parser": "^1.0.1"
},
"private": true
"devDependencies": {
"xo": "*"
}
}
11 changes: 3 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Works only with CSS and not preprocessors like Sass or LESS.

Install `Autoprefixer` with [Package Control](https://packagecontrol.io) and restart Sublime.

**You need to have [Node.js](http://nodejs.org) >=0.12.0 installed.**
Make sure it's in your $PATH by running `node -v` in your command-line.
**You need to have [Node.js](http://nodejs.org) >=0.12.0 installed.**<br>
Make sure it's in your $PATH by running `node -v` in your command-line.<br>
On macOS you need to make sure it's in `/usr/local/bin` or symlink it there.

See the Autoprefixer version in use [here](https://github.com/sindresorhus/sublime-autoprefixer/blob/master/node_modules/autoprefixer/package.json#L3).
Expand All @@ -26,7 +26,6 @@ See the Autoprefixer version in use [here](https://github.com/sindresorhus/subli

In a CSS file, open the Command Palette *(Cmd+Shift+P)* and choose `Autoprefix CSS`. You can alternatively create one or more selections before running the command to only prefix those parts.


### Options

*(Preferences > Package Settings > Autoprefixer > Settings - User)*
Expand All @@ -35,7 +34,6 @@ You can specify which browsers you need to support using an array of rules.

See the [supported browser names](https://github.com/ai/autoprefixer#browsers).


#### Default

```json
Expand All @@ -45,7 +43,6 @@ See the [supported browser names](https://github.com/ai/autoprefixer#browsers).
}
```


#### Example

```json
Expand All @@ -56,7 +53,6 @@ See the [supported browser names](https://github.com/ai/autoprefixer#browsers).

This will add the needed prefixes for the last version of each browser, all browsers with market share of more than 10% globally and 5% in the US, and Internet Explorer 7 and 8.


### Keyboard shortcut

You can also set up a keyboard shortcut to run the command by opening up "Preferences > Key Bindings - User" and adding your shortcut with the `autoprefixer` command.
Expand All @@ -69,7 +65,6 @@ Example:
]
```


### Project settings

You can override the default and user settings for individual projects. Just add an `"Autoprefixer"` object to the `"settings"` object in the project's `.sublime-project` file containing your [project specific settings](http://www.sublimetext.com/docs/3/projects.html).
Expand All @@ -89,4 +84,4 @@ Example:

## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit 8f83d74

Please sign in to comment.