diff --git a/CHANGELOG.md b/CHANGELOG.md index a60e69f..4088d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.0.8] - 16-06-2016 +### Change +- Change babel preset +- Update devDep + ## [0.0.7] - 23-05-2016 ### Change - Update devDep diff --git a/package.json b/package.json index ae3bdee..62db960 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "postcss-attribute-selector-prefix", - "version": "0.0.7", + "version": "0.0.8", "description": "A attribute selector prefixer for postcss", - "main": "./lib/index.js", + "main": "lib/index.js", "files": "lib/index.js", "scripts": { "test": "eslint --format=node_modules/eslint-formatter-pretty ./src/*.js ./test/*.js && nyc ava", @@ -22,7 +22,10 @@ "prefix", "css" ], - "author": "Scrum", + "author": { + "name": "GitScrum", + "email": "scrum@list.ru" + }, "license": "MIT", "bugs": { "url": "https://github.com/GitScrum/postcss-attribute-selector-prefix/issues" @@ -30,7 +33,7 @@ "homepage": "https://github.com/GitScrum/postcss-attribute-selector-prefix#readme", "babel": { "presets": [ - "es2015-node6" + "es2015-node" ], "plugins": [ "add-module-exports" @@ -56,26 +59,25 @@ ] }, "dependencies": { - "babel-preset-node5": "^11.1.0", "postcss": "^5.0.21" }, "devDependencies": { - "ava": "^0.15.0", + "ava": "^0.15.2", "ava-codemods": "^0.2.1", - "babel-cli": "^6.9.0", + "babel-cli": "^6.10.1", "babel-eslint": "^6.0.4", "babel-plugin-add-module-exports": "^0.2.1", - "babel-preset-es2015-node6": "^0.2.0", + "babel-preset-es2015-node": "^6.1.0", "babel-register": "^6.9.0", "coveralls": "^2.11.9", "eslint": "^2.10.2", - "eslint-config-xo": "^0.14.1", + "eslint-config-xo": "^0.15.0", "eslint-formatter-pretty": "^0.2.2", "eslint-plugin-ava": "^2.3.1", "eslint-plugin-babel": "^3.2.0", "eslint-plugin-require-path-exists": "^1.1.5", "eslint-plugin-xo": "^0.5.0", - "nyc": "^6.6.0", + "nyc": "^6.4.4", "package-config-checker": "^1.0.0", "updtr": "^0.1.15" } diff --git a/test/test-plugin.js b/test/test-plugin.js index 16647e2..9a920b3 100644 --- a/test/test-plugin.js +++ b/test/test-plugin.js @@ -25,29 +25,44 @@ test('processing options prefix and attribute selector', t => { test('processing options prefix, filter and attribute selector', t => { const expected = '.class, [type="text"], [class*="test-lorem"] { color:red; }'; const fixtures = '.class, [type="text"], [class*="lorem"] { color:red; }'; - t.is(processing(fixtures, {prefix: 'test-', filter: ['class']}), expected); + t.is(processing(fixtures, { + prefix: 'test-', + filter: ['class'] + }), expected); }); test('processing options prefix, filter and attribute selector witch indentical class filter', t => { const expected = '.class, [type="text"], [alt*="class"] { color:red; }'; const fixtures = '.class, [type="text"], [alt*="class"] { color:red; }'; - t.is(processing(fixtures, {prefix: 'test-', filter: ['class']}), expected); + t.is(processing(fixtures, { + prefix: 'test-', + filter: ['class'] + }), expected); }); test('processing options filter and attribute selector', t => { const expected = '.class, [type="text"], [class*="lorem"] { color:red; }'; const fixtures = '.class, [type="text"], [class*="lorem"] { color:red; }'; - t.is(processing(fixtures, {filter: ['class']}), expected); + t.is(processing(fixtures, { + filter: ['class'] + }), expected); }); test('processing options prefix, filter, ignore and attribute selector', t => { const expected = '.class, [type="text"], [class*="lorem"] { color:red; }'; const fixtures = '.class, [type="text"], [class*="lorem"] { color:red; }'; - t.is(processing(fixtures, {prefix: 'test', filter: ['class'], ignore: ['class']}), expected); + t.is(processing(fixtures, { + prefix: 'test', + filter: ['class'], + ignore: ['class'] + }), expected); }); test('processing options prefix, ignore and attribute selector', t => { const expected = '.class, [type="text"], [class*="test-lorem"] { color:red; }'; const fixtures = '.class, [type="text"], [class*="lorem"] { color:red; }'; - t.is(processing(fixtures, {prefix: 'test-', ignore: ['type']}), expected); + t.is(processing(fixtures, { + prefix: 'test-', + ignore: ['type'] + }), expected); });