diff --git a/.npmignore b/.npmignore index 55c11f1..63744b3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,3 @@ - .appveyor.yml .coveralls.yml .editorconfig @@ -11,7 +10,6 @@ backstop.conf.js bower.json changelog.md -component.json composer.json package.js package.json diff --git a/bower.json b/bower.json index dd83ec8..1ff7338 100644 --- a/bower.json +++ b/bower.json @@ -40,7 +40,6 @@ "backstop.conf.js", "bower.json", "changelog.md", - "component.json", "composer.json", "package.js", "package.json", diff --git a/component.json b/component.json deleted file mode 100644 index 6616f91..0000000 --- a/component.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "milligram", - "version": "1.2.0", - "description": "A minimalist CSS framework.", - "homepage": "http://milligram.github.io", - "repository": "milligram/milligram", - "license": "MIT", - "author": "CJ Patoilo ", - "main": "dist/milligram.css", - "keywords": [ - "bootstrap", - "css", - "css3", - "flexbox", - "front-end", - "framework", - "html", - "html5", - "kickstarter", - "less", - "responsive", - "mobile", - "mobile-first", - "postcss", - "responsive", - "sass", - "scss", - "stylus" - ], - "ignore": [ - ".appveyor.yml", - ".coveralls.yml", - ".editorconfig", - ".eslintrc", - ".github", - ".gitignore", - ".npmignore", - ".sasslintrc", - ".travis.yml", - "backstop.conf.js", - "bower.json", - "changelog.md", - "component.json", - "composer.json", - "package.js", - "package.json", - "src", - "test" - ], - "styles": [ - "examples", - "dist/milligram.css", - "dist/milligram.css.map", - "dist/milligram.min.css", - "dist/milligram.min.css.map", - "license", - "readme.md" - ] -} diff --git a/composer.json b/composer.json index e73dff1..77584e9 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,6 @@ "backstop.conf.js", "bower.json", "changelog.md", - "component.json", "composer.json", "package.js", "package.json", diff --git a/package.json b/package.json index fba3c56..a0ae564 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "backstop.conf.js", "bower.json", "changelog.md", - "component.json", "composer.json", "package.js", "package.json", diff --git a/test/unit/package-spec.js b/test/unit/package-spec.js index 645b0b9..6097bce 100644 --- a/test/unit/package-spec.js +++ b/test/unit/package-spec.js @@ -1,13 +1,11 @@ const assert = require('power-assert'); const npm = require('../../package.json'); const bower = require('../../bower.json'); -const component = require('../../component.json'); const composer = require('../../composer.json'); const packages = [ npm, bower, - component, composer ]; @@ -15,10 +13,11 @@ describe('Package', () => { describe('Name', () => { - it(`should be equal to ${npm.name}`, () => { + it(`should be equal "${npm.name}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.name, compareValue.name); + if (compareValue.name.match('/')) compareValue.name = compareValue.name.split('/')[1] + if (referenceIndex !== compareIndex) assert(referenceValue.name === compareValue.name); }); }); }); @@ -27,10 +26,10 @@ describe('Package', () => { describe('Version', () => { - it(`should be equal to v${npm.version}`, () => { + it(`should be equal to "v${npm.version}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.version, compareValue.version); + if (referenceIndex !== compareIndex) assert(referenceValue.version === compareValue.version); }); }); }); @@ -39,10 +38,10 @@ describe('Package', () => { describe('Description', () => { - it(`should be equal to ${npm.description}`, () => { + it(`should be equal to "${npm.description}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.description, compareValue.description); + if (referenceIndex !== compareIndex) assert(referenceValue.description === compareValue.description); }); }); }); @@ -51,10 +50,10 @@ describe('Package', () => { describe('Homepage', () => { - it(`should be equal to ${npm.homepage}`, () => { + it(`should be equal to "${npm.homepage}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.homepage, compareValue.homepage); + if (referenceIndex !== compareIndex) assert(referenceValue.homepage === compareValue.homepage); }); }); }); @@ -63,10 +62,10 @@ describe('Package', () => { describe('Repository', () => { - it(`should be equal to ${npm.repository}`, () => { + it(`should be equal to "${npm.repository}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.repository, compareValue.repository); + if (referenceIndex !== compareIndex) assert(referenceValue.repository === compareValue.repository); }); }); }); @@ -75,10 +74,10 @@ describe('Package', () => { describe('License', () => { - it(`should be equal to ${npm.license}`, () => { + it(`should be equal to "${npm.license}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.license, compareValue.license); + if (referenceIndex !== compareIndex) assert(referenceValue.license === compareValue.license); }); }); }); @@ -87,10 +86,10 @@ describe('Package', () => { describe('Author Name', () => { - it(`should be equal to ${npm.author}`, () => { + it(`should be equal to "${npm.author}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.author, compareValue.author); + if (referenceIndex !== compareIndex) assert(referenceValue.author === compareValue.author); }); }); }); @@ -99,10 +98,10 @@ describe('Package', () => { describe('Main File', () => { - it(`should be equal to ${npm.main}`, () => { + it(`should be equal to "${npm.main}"`, () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.main, compareValue.main); + if (referenceIndex !== compareIndex) assert(referenceValue.main === compareValue.main); }); }); }); @@ -114,7 +113,7 @@ describe('Package', () => { it('should be equal', () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.ignore, compareValue.ignore); + if (referenceIndex !== compareIndex) assert(JSON.stringify(referenceValue.ignore) === JSON.stringify(compareValue.ignore)); }); }); }); @@ -126,7 +125,7 @@ describe('Package', () => { it('should be equal', () => { packages.map((referenceValue, referenceIndex) => { packages.map((compareValue, compareIndex) => { - if (referenceIndex !== compareIndex) assert(referenceValue.keywords, compareValue.keywords); + if (referenceIndex !== compareIndex) assert(JSON.stringify(referenceValue.keywords) === JSON.stringify(compareValue.keywords)); }); }); });