ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clientside

Sublime Text plugin to minify, format, and lint CSS and Javascript

Details

  • 2012.09.16.14.36.32
  • github.​com
  • github.​com
  • 12 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 2K
  • Win 1K
  • Mac 803
  • Linux 331
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text Clientside Plugin

About

This plugin provides common tools for developing with clientside languages javascript and css. Tools for javascript include:

Author: Trent Richardson

Prerequisites

NodeJS: http://nodejs.org/

For Ubuntu use:

sudo apt-get install nodejs

For other linux distrobutions this may be a click away in your package manager. The plugin uses nodejs to execute serverside javascript (jslint and csslint)

Install

The recommended install is via the Package Control: - Press ctrl+shift+p (Windows, Linux) or cmd+shift+p (OS X), start typing “Package” to access Package Manager commands - When the list of packages is presented, search for “Clientside”, press enter to install - Go to the Preferences -> Package Settings -> Clientside and set preferences and nodejs path

If you need to manually install: - Copy or clone the repository from https://github.com/trentrichardson/Clientside into your packages folder (“Packages/Clientside”) - Go to the Preferences -> Package Settings -> Clientside and set preferences and nodejs path

Configure

Since this plugin uses NodeJS it needs to know how to call it. Inside the configuration window there is a field for the command to call from a terminal.
If you've installed nodejs manually, it is likely accessible through the command using “node”. However, though Ubuntu's package manager you will need to use “nodejs”. And, on some occasions, you may have to actually point to the binary file location (Mac might be /usr/local/bin/node). If you need help you can try running in a terminal (unix or linux) the which tool: “which nodejs” or “which node”. This should print out a file path to the binary.

Further help is located in the comments of the preferences configuration files.

Each operation can handle results in the following ways (editable in the configuration): - “new” Places the results in a new unsaved file - “replace” Replaces the current selection - “clipboard” Copies the results to your clipboard - “console” Prints the results to your console. You will need to open your console (Ctl+)

Use

  • With your js or css file the active document go to Tools -> Clientside -> desired tool

License

Sublime Text Clientside Plugin is licensed under the MIT license.

Copyright © 2012 Trent Richardson [http://trentrichardson.com]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.