From b81fccc35f18d0c0ef461ccb92f89666fe1468a7 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 Feb 2016 11:17:31 +0200 Subject: Travis CI: specify sudo and add all node supported versions. --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 33debdd..3cb8101 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ +sudo: false language: node_js node_js: + - "5" + - "4" - "0.12" + - "0.10" install: - npm install -g grunt-cli - npm install +matrix: + fast_finish: true -- cgit v1.2.3 From ba28fe8bd814479faf385c8a40eb45948573e77f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 Feb 2016 11:23:04 +0200 Subject: Switch to shields.io for badges. [ci skip] --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 18cb70b..f5d2518 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # grunt-css-flip -[![NPM version](https://badge.fury.io/js/grunt-css-flip.svg)](http://badge.fury.io/js/grunt-css-flip) -[![Build Status](https://travis-ci.org/twbs/grunt-css-flip.svg?branch=master)](https://travis-ci.org/twbs/grunt-css-flip) +[![NPM version](https://img.shields.io/npm/v/grunt-css-flip.svg)](https://www.npmjs.com/package/grunt-css-flip) +[![Build Status](https://img.shields.io/travis/twbs/grunt-css-flip.svg?branch=master)](https://travis-ci.org/twbs/grunt-css-flip) ![Development Status :: 5 - Production/Stable](https://img.shields.io/badge/maturity-stable-green.svg "Development Status :: 5 - Production/Stable") [![MIT License](https://img.shields.io/npm/l/grunt-css-flip.svg)](https://github.com/twbs/grunt-css-flip/blob/master/LICENSE) -[![Dependency Status](https://david-dm.org/twbs/grunt-css-flip.svg)](https://david-dm.org/twbs/grunt-css-flip) -[![devDependency Status](https://david-dm.org/twbs/grunt-css-flip/dev-status.svg)](https://david-dm.org/twbs/grunt-css-flip#info=devDependencies) +[![Dependency Status](https://img.shields.io/david/twbs/grunt-css-flip.svg)](https://david-dm.org/twbs/grunt-css-flip) +[![devDependency Status](https://img.shields.io/david/dev/twbs/grunt-css-flip.svg)](https://david-dm.org/twbs/grunt-css-flip#info=devDependencies) + > Grunt plugin for [Twitter's css-flip](https://github.com/twitter/css-flip) -- cgit v1.2.3 From 702179e22bfd3a271fb6bcab85c8fa42a182669e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 Feb 2016 11:23:20 +0200 Subject: Update dependencies. --- .eslintrc | 11 +++++------ README.md | 10 ++++------ package.json | 18 +++++++++--------- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.eslintrc b/.eslintrc index 93b72a6..91f00bd 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,5 @@ { + "root": true, "env": { "node": true }, @@ -14,6 +15,7 @@ "eqeqeq": 2, "indent": [2, 2], "key-spacing": [2, {"beforeColon": false, "afterColon": true}], + "keyword-spacing": 2, "new-cap": 2, "new-parens": 2, "no-array-constructor": 2, @@ -28,8 +30,8 @@ "no-inline-comments": 0, "no-irregular-whitespace": 2, "no-mixed-spaces-and-tabs": 2, - "no-multi-spaces": 2, "no-multiple-empty-lines": 0, + "no-multi-spaces": 2, "no-new-object": 2, "no-param-reassign": 0, "no-process-env": 2, @@ -40,6 +42,7 @@ "no-trailing-spaces": 2, "no-underscore-dangle": 0, "no-void": 2, + "object-curly-spacing": [2, "never"], "one-var": [2, "never"], "operator-assignment": [2, "always"], "padded-blocks": 0, @@ -47,14 +50,10 @@ "radix": 2, "semi": [2, "always"], "semi-spacing": [2, {"before": false, "after": true}], - "space-after-keywords": [2, "always", {"checkFunctionKeyword": true}], "space-before-blocks": [2, "always"], - "space-before-function-parentheses": [2, {"anonymous": "always", "named": "never"}], - "space-in-brackets": [2, "never"], + "spaced-comment": [2, "always"], "space-in-parens": [2, "never"], - "space-return-throw-case": 2, "space-unary-ops": [2, {"words": true, "nonwords": false}], - "spaced-line-comment": [2, "always"], "strict": [2, "global"], "vars-on-top": 0, "wrap-iife": [2, "inside"], diff --git a/README.md b/README.md index f5d2518..4f62d69 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,6 @@ ## Getting Started -This plugin requires Grunt `~0.4.3`. - If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: ```shell @@ -53,14 +51,14 @@ All options are passed directly to css-flip's `flip()` function. None of the options are required. #### options.compress -Type: `Boolean` -Default value: `false` +* Type: `Boolean` +* Default: `false` Whether to slightly compress output. Some newlines and indentation are removed. Comments stay intact. #### options.indent -Type: `String` -Default value: `' '` (two spaces) +* Type: `String` +* Default: `' '` (two spaces) String value to use for 1 level of indentation in the output. diff --git a/package.json b/package.json index a2fdd90..15df528 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Chris Rebert (http://chrisrebert.com)", "repository": { "type": "git", - "url": "https://github.com/twbs/grunt-css-flip.git" + "url": "git+https://github.com/twbs/grunt-css-flip.git" }, "bugs": { "url": "https://github.com/twbs/grunt-css-flip/issues" @@ -20,19 +20,19 @@ "test": "grunt test" }, "dependencies": { - "css-flip": "~0.5.0" + "css-flip": "^0.5.0" }, "devDependencies": { - "grunt": "~0.4.5", - "grunt-contrib-clean": "^0.6.0", - "grunt-contrib-jshint": "^0.11.0", - "grunt-contrib-nodeunit": "^0.4.1", - "grunt-eslint": "^10.0.0", - "grunt-jscs": "^1.5.0", + "grunt": "^0.4.5", + "grunt-contrib-clean": "^1.0.0", + "grunt-contrib-jshint": "^1.0.0", + "grunt-contrib-nodeunit": "^1.0.0", + "grunt-eslint": "^18.0.0", + "grunt-jscs": "^2.7.0", "load-grunt-tasks": "^3.1.0" }, "peerDependencies": { - "grunt": "~0.4.3" + "grunt": ">=0.4.5" }, "engines": { "node": ">= 0.10.0" -- cgit v1.2.3 From e2661143295e91a5dc3ea9f9baa7f8c2d659565e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 Feb 2016 11:34:47 +0200 Subject: Minor cleanup. --- tasks/cssflip.js | 1 - test/cssflip_test.js | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/tasks/cssflip.js b/tasks/cssflip.js index 71ffd31..2d7d9ac 100644 --- a/tasks/cssflip.js +++ b/tasks/cssflip.js @@ -10,7 +10,6 @@ var flip = require('css-flip'); - module.exports = function (grunt) { grunt.registerMultiTask('cssflip', 'Grunt plugin for Twitter\'s css-flip', function () { var options = this.options({}); diff --git a/test/cssflip_test.js b/test/cssflip_test.js index b62ced7..15e8427 100644 --- a/test/cssflip_test.js +++ b/test/cssflip_test.js @@ -2,31 +2,7 @@ var grunt = require('grunt'); -/* - ======== A Handy Little Nodeunit Reference ======== - https://github.com/caolan/nodeunit - - Test methods: - test.expect(numAssertions) - test.done() - Test assertions: - test.ok(value, [message]) - test.equal(actual, expected, [message]) - test.notEqual(actual, expected, [message]) - test.deepEqual(actual, expected, [message]) - test.notDeepEqual(actual, expected, [message]) - test.strictEqual(actual, expected, [message]) - test.notStrictEqual(actual, expected, [message]) - test.throws(block, [error], [message]) - test.doesNotThrow(block, [error], [message]) - test.ifError(value) -*/ - exports.cssflip = { - setUp: function (done) { - // setup here if necessary - done(); - }, defaultOptions: function (test) { test.expect(1); -- cgit v1.2.3