Permalink
Browse files

Store all dependencies in this repo (sigh)

  • Loading branch information...
1 parent 4e90661 commit 04990667dd1d193d291647bb25b3d143b9036c53 @tonyganch tonyganch committed Feb 4, 2014
Showing 325 changed files with 28,202 additions and 61 deletions.
View
@@ -1 +0,0 @@
-node_modules/
@@ -1,14 +1,4 @@
{
- // You must set those two variables to make the plugin work correctly.
-
- // On Unix run from command-line: `echo $PATH`, on Windows: `echo %PATH%`.
- // Copy the result here:
- "PATH": "/usr/local/bin",
-
- // On Unix run from command-line: `echo $NODE_PATH`, on Windows: `echo
- // %NODE_PATH%`. Copy the result here:
- "NODE_PATH": "/usr/local/lib/node_modules",
-
// If you want to use custom config, put file named `.csscomb.json` to the
// project's root or your HOME directory. If for some reason you would like
// to set custom path to configuration file, paste it here.
View
@@ -64,10 +64,11 @@ def get_config_path(self, config_path=''):
return self.get_config_path(config_path)
def get_env(self):
- return {
- 'PATH': self.get_setting('PATH'),
- 'NODE_PATH': self.get_setting('NODE_PATH')
- }
+ env = None
+ if self.is_osx():
+ env = os.environ.copy()
+ env['PATH'] += ':/usr/local/bin'
+ return env
def get_setting(self, key):
settings = self.view.settings().get('CSScomb JS')
@@ -93,6 +94,9 @@ def has_selection(self):
return True
return False
+ def is_osx(self):
+ return platform.system() == 'Darwin'
+
def is_windows(self):
return platform.system() == 'Windows'
View
@@ -8,52 +8,19 @@ process.stdin.on('data', function (data) {
});
process.stdin.on('end', function () {
- var npm;
- try {
- npm = require('npm');
- npm.load({ prefix: __dirname, loglevel: 'error' }, function(err, npm) {
- try {
- checkAndProcess();
- } catch (e) {
- installAndProcess();
- }
- });
- } catch (e) {
- process.stderr.write('Could not load npm. Please make sure your paths are set correctly in settings.');
+ var Comb = require('./node_modules/csscomb/lib/csscomb'),
+ comb = new Comb(),
+ syntax = process.argv[2],
+ configPath = process.argv[3],
+ config, combed;
+
+ if (configPath) {
+ config = require(configPath);
+ } else {
+ config = comb.getConfig('csscomb');
}
- // Check if installed version is outdated:
- function checkAndProcess() {
- var installedVersion = require('./node_modules/csscomb/package.json').version,
- requiredVersion = require('./package.json').dependencies.csscomb;
- if (installedVersion !== requiredVersion) installAndProcess();
- else processString();
- }
-
- function installAndProcess() {
- // Disable install logs:
- console.log = function() {};
- // Install csscomb package:
- npm.commands.install(['csscomb'], function() {
- processString();
- });
- }
-
- function processString() {
- var Comb = require('./node_modules/csscomb/lib/csscomb'),
- comb = new Comb(),
- syntax = process.argv[2],
- configPath = process.argv[3],
- config, combed;
-
- if (configPath) {
- config = require(configPath);
- } else {
- config = comb.getConfig('csscomb');
- }
-
- combed = comb.configure(config).processString(str, syntax);
- process.stdout.write(combed);
- }
+ combed = comb.configure(config).processString(str, syntax);
+ process.stdout.write(combed);
});
@@ -0,0 +1,77 @@
+{
+ "excludeFiles": [
+ "node_modules/**",
+ "lib-cov/**"
+ ],
+ "requireCurlyBraces": [
+ "else",
+ "while",
+ "do"
+ ],
+ "requireSpaceAfterKeywords": [
+ "if",
+ "else",
+ "for",
+ "while",
+ "do",
+ "switch",
+ "return",
+ "catch"
+ ],
+ "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
+ "disallowSpacesInFunctionExpression": { "beforeOpeningRoundBrace": true },
+ "disallowMultipleVarDecl": true,
+ "disallowLeftStickedOperators": [
+ "?",
+ "+",
+ "-",
+ "/",
+ "*",
+ "=",
+ "==",
+ "===",
+ "!=",
+ "!==",
+ ">",
+ ">=",
+ "<",
+ "<="
+ ],
+ "disallowRightStickedOperators": [
+ "?",
+ "+",
+ "/",
+ "*",
+ ":",
+ ",",
+ "=",
+ "==",
+ "===",
+ "!=",
+ "!==",
+ ">",
+ ">=",
+ "<",
+ "<="
+ ],
+ "requireRightStickedOperators": ["!"],
+ "requireLeftStickedOperators": [","],
+ "disallowImplicitTypeConversion": [
+ "numeric",
+ "boolean",
+ "binary",
+ "string"
+ ],
+ "disallowKeywords": ["with"],
+ "disallowKeywordsOnNewLine": ["else", "catch"],
+ "requireLineFeedAtFileEnd": true,
+ "validateJSDoc": {
+ "checkParamNames": true,
+ "checkRedundantParams": true,
+ "requireParamTypes": true
+ },
+ "requireSpacesInsideObjectBrackets": "all",
+ "disallowSpacesInsideArrayBrackets": true,
+ "disallowSpaceAfterObjectKeys": true,
+ "disallowQuotedKeysInObjects": true
+}
@@ -0,0 +1,35 @@
+module.exports = {
+ options: {
+ eqeqeq: true,
+ evil: true,
+ expr: true,
+ forin: true,
+ immed: true,
+ indent: 4,
+ latedef: true,
+ maxdepth: 5,
+ maxlen: 120,
+ maxparams: 4,
+ newcap: true,
+ noarg: true,
+ noempty: true,
+ nonew: true,
+ quotmark: 'single',
+ trailing: true,
+ undef: true,
+ unused: true
+ },
+ groups: {
+ js: {
+ options: { node: true },
+ includes: ['lib/**/*.js']
+ },
+ test: {
+ options: {
+ node: true,
+ predef: ['describe', 'beforeEach', 'afterEach', 'it']
+ },
+ includes: ['test/*.js']
+ }
+ }
+};
@@ -0,0 +1,8 @@
+lib-cov
+node_modules
+test/test-coverage.html
+
+.idea
+*.iml
+
+.DS_Store
@@ -0,0 +1,9 @@
+language: node_js
+
+node_js:
+ - "0.10"
+ - "0.11"
+
+matrix:
+ allow_failures:
+ - node_js: "0.11"
@@ -0,0 +1,124 @@
+# Changelog
+
+## 2.0.4 - 2014-01-16
+- Fixed relative path to config (#164)
+
+## 2.0.3 - 2014-01-16
+- Documentation moved to `doc` directory
+- Fixed incorrect left indent (#153)
+
+## 2.0.2 - 2014-01-09
+- Added test coverage (#138)
+- Added test helpers (#147)
+- Fixed config file recursive searching (#151)
+- Fixed `block-indent` detecting (#148)
+- Fixed `quote` value setter (#149)
+- Fixed detection integral tests (#150)
+
+## 2.0.1 - 2013-12-23
+- Fix for `remove-empty-rulesets` option (#133)
+
+## 2.0.0 - 2013-12-18
+**Great thanks for @tonyganch and @kizu!**
+- Use Gonzales PE to parse *.scss and *.less files
+- Support sorting properties in *.scss and *.less files
+- Codestyle detection
+- Option: always-semicolon (scss + less)
+- Option: quotes
+- Two more config examples now: `csscomb` and `zen`
+- Lots of refactoring and fixes
+- Lots of tests added
+- Node v0.8 no longer supported
+
+## 1.0.0 - 2013-11-06
+- Option: vendor-prefix-align
+- Dependencies updated
+- Fixed options order in readme
+
+## 0.1.0 - 2013-10-11
+- CLI: lint mode
+
+## 0.0.15 - 2013-10-03
+- Option: remove-empty-rulesets (#67)
+- Option colon-space expanded
+- Some refactoring and fixes
+
+## 0.0.14 - 2013-09-12
+- Option: eof-newline (#55)
+- Verbose option (#62)
+- Some refactoring
+
+## 0.0.13 - 2013-09-12
+- Fixed failing on empty files (#66)
+
+## 0.0.12 - 2013-09-11
+- Option: combinator-space
+- Readme update
+- Some CLI fixes
+- Contributor added: @anton-rudeshko
+
+## 0.0.11 - 2013-09-10
+- Option: element-case
+- Fixed block-indent bug with space after at-rule opening brace
+- Fixed JSDoc
+- Fixed colon-space description
+
+## 0.0.10 - 2013-09-06
+- Option: color-case
+- Option: color-shorthand
+- Option: leading-zero
+- Option: unitless-zero
+- Option update: colon-space
+- Contributors added: @kizu and @ignovak
+- Readme updated
+- Licence added
+- Contributing info added
+- Changelog added
+
+## 0.0.9 - 2013-08-28
+- Option: sort-order
+- Sort order config fix
+- JSCS version and config update
+- jshint config fix
+- Some codestyle fixes
+
+## 0.0.8 - 2013-08-22
+- !!! Now using Gonzales instead of CSSP
+- Option: block-indent
+- Option: rule-indent
+- Added few links to README
+- Added some debug info
+- Fixed default sort order
+- Fixed path processing bug
+- Fixed stick-brace option
+
+## 0.0.7 - 2013-08-09
+- jshint config fix
+- Codestyle fix for always-semicolon
+- Integral test fix
+- Removed old php code
+
+## 0.0.6 - 2013-08-08
+- Option: always-semicolon
+
+## 0.0.5 - 2013-08-08
+- Fix for value setting
+- Bugfix for stick-brace
+- Added integral test
+
+## 0.0.4 - 2013-08-07
+- Some refactoring
+- Tests added
+
+## 0.0.3 - 2013-08-05
+- Option: colon-space
+- Option: stick-brace
+- Moved to github/csscomb/csscomb.js
+
+## 0.0.2 - 2013-08-04
+- Option: strip-spaces - fix
+
+## 0.0.1 - 2013-08-03
+- Initial release
+- Option: strip spaces
+- Travis support
Oops, something went wrong.

0 comments on commit 0499066

Please sign in to comment.