Merge branch 'feature/improvements' into develop

This commit is contained in:
CJ Patoilo 2016-11-22 19:31:06 -03:00
commit 7ba79ac4f6
11 changed files with 199 additions and 14 deletions

10
.appveyor.yml Normal file
View File

@ -0,0 +1,10 @@
environment:
nodejs_version: 7
platform:
- x86
- x64
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install
test_script: npm test
build: off

1
.coveralls.yml Normal file
View File

@ -0,0 +1 @@
repo_token: m1BEx78tPMAxcADSCK5vtqLfzdj5oU82P

13
.eslintrc Normal file
View File

@ -0,0 +1,13 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": 2,
"quotes": ["error", "single"]
}
}

View File

@ -1,4 +1,8 @@
.appveyor.yml
.coveralls.yml
.editorconfig .editorconfig
.eslintrc
.github .github
.gitignore .gitignore
.npmignore .npmignore

View File

@ -7,7 +7,7 @@ module.exports = {
label: 'Typography', label: 'Typography',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#typography'], selectors: ['#typography'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -18,7 +18,7 @@ module.exports = {
label: 'Blockquotes', label: 'Blockquotes',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#blockquotes'], selectors: ['#blockquotes'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -29,7 +29,7 @@ module.exports = {
label: 'Buttons', label: 'Buttons',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#buttons'], selectors: ['#buttons'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -40,7 +40,7 @@ module.exports = {
label: 'Lists', label: 'Lists',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#lists'], selectors: ['#lists'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -51,7 +51,7 @@ module.exports = {
label: 'Forms', label: 'Forms',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#forms'], selectors: ['#forms'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -62,7 +62,7 @@ module.exports = {
label: 'Tables', label: 'Tables',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#tables'], selectors: ['#tables'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -73,7 +73,7 @@ module.exports = {
label: 'Grids', label: 'Grids',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#grids'], selectors: ['#grids'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -84,7 +84,7 @@ module.exports = {
label: 'Codes', label: 'Codes',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#codes'], selectors: ['#codes'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,
@ -95,7 +95,7 @@ module.exports = {
label: 'Utilities', label: 'Utilities',
url: 'http://localhost:3000', url: 'http://localhost:3000',
hideSelectors: [], hideSelectors: [],
removeSelectors: ['#__bs_notify__'], removeSelectors: [],
selectors: ['#utilities'], selectors: ['#utilities'],
readyEvent: null, readyEvent: null,
delay: 500, delay: 500,

View File

@ -28,7 +28,10 @@
"stylus" "stylus"
], ],
"ignore": [ "ignore": [
".appveyor.yml",
".coveralls.yml",
".editorconfig", ".editorconfig",
".eslintrc",
".github", ".github",
".gitignore", ".gitignore",
".npmignore", ".npmignore",

View File

@ -28,7 +28,10 @@
"stylus" "stylus"
], ],
"ignore": [ "ignore": [
".appveyor.yml",
".coveralls.yml",
".editorconfig", ".editorconfig",
".eslintrc",
".github", ".github",
".gitignore", ".gitignore",
".npmignore", ".npmignore",

View File

@ -28,7 +28,10 @@
"stylus" "stylus"
], ],
"ignore": [ "ignore": [
".appveyor.yml",
".coveralls.yml",
".editorconfig", ".editorconfig",
".eslintrc",
".github", ".github",
".gitignore", ".gitignore",
".npmignore", ".npmignore",

View File

@ -28,7 +28,10 @@
"stylus" "stylus"
], ],
"ignore": [ "ignore": [
".appveyor.yml",
".coveralls.yml",
".editorconfig", ".editorconfig",
".eslintrc",
".github", ".github",
".gitignore", ".gitignore",
".npmignore", ".npmignore",
@ -51,10 +54,15 @@
"autoprefixer": "^6.5.3", "autoprefixer": "^6.5.3",
"backstopjs": "^2.3.3", "backstopjs": "^2.3.3",
"browser-sync": "^2.18.1", "browser-sync": "^2.18.1",
"coveralls": "^2.11.15",
"intelli-espower-loader": "^1.0.1",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"node-sass": "^3.13.0", "node-sass": "^3.13.0",
"npm-run-all": "^2.3.0", "npm-run-all": "^2.3.0",
"onchange": "^2.5.0", "onchange": "^2.5.0",
"postcss-cli": "^2.6.0", "postcss-cli": "^2.6.0",
"power-assert": "^1.4.2",
"sass-lint": "^1.10.2" "sass-lint": "^1.10.2"
}, },
"engines": { "engines": {
@ -72,6 +80,7 @@
"serve": "browser-sync start --no-notify -s test --ss dist -f dist", "serve": "browser-sync start --no-notify -s test --ss dist -f dist",
"start": "run-p watch serve", "start": "run-p watch serve",
"test": "run-s build", "test": "run-s build",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --require intelli-espower-loader test/unit/*.js",
"reference": "backstop reference --configPath=backstop.conf.js", "reference": "backstop reference --configPath=backstop.conf.js",
"compare": "backstop test --configPath=backstop.conf.js", "compare": "backstop test --configPath=backstop.conf.js",
"backstop": "run-s build && run-p serve compare" "backstop": "run-s build && run-p serve compare"

View File

@ -2,11 +2,13 @@
> A minimalist CSS framework. > A minimalist CSS framework.
[![Build Status](https://travis-ci.org/milligram/milligram.svg?branch=master)](https://travis-ci.org/milligram/milligram) [![Travis Status](https://travis-ci.org/milligram/milligram.svg?branch=master)](https://travis-ci.org/milligram/milligram?branch=master)
[![Dependencies Status](https://david-dm.org/milligram/milligram.svg)](https://travis-ci.org/milligram/milligram) [![AppVeyor Status](https://ci.appveyor.com/api/projects/status/wabkk000uh6d97xk?svg=true)](https://ci.appveyor.com/project/cjpatoilo/milligram)
[![npm version](https://badge.fury.io/js/milligram.svg)](https://badge.fury.io/js/milligram) [![Version Status](https://badge.fury.io/js/milligram.svg)](https://www.npmjs.com/package/milligram)
[![Bower version](https://badge.fury.io/bo/milligram.svg)](https://badge.fury.io/bo/milligram) [![Dependencies Status](https://david-dm.org/milligram/milligram.svg)](https://travis-ci.org/milligram/milligram?branch=master)
[![Gitter chat](https://img.shields.io/badge/gitter-join_the_chat-4cc61e.svg)](https://gitter.im/milligram/milligram) [![Codacy Status](https://img.shields.io/codacy/grade/848fb4bd6902434fab0bcfb5461284fe/master.svg)](https://www.codacy.com/app/cjpatoilo/milligram/dashboard)
[![Download Status](https://img.shields.io/npm/dt/milligram.svg)](https://www.npmjs.com/package/milligram)
[![Gitter Chat](https://img.shields.io/badge/gitter-join_the_chat-4cc61e.svg)](https://gitter.im/milligram/milligram)
## Why it's awesome? ## Why it's awesome?

137
test/unit/package-spec.js Normal file
View File

@ -0,0 +1,137 @@
const fs = require('fs');
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
];
describe('Package', () => {
describe('Name', () => {
it(`should be equal to ${npm.name}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.name, compareValue.name);
});
});
});
});
describe('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);
});
});
});
});
describe('Description', () => {
it(`should be equal to ${npm.description}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.description, compareValue.description);
});
});
});
});
describe('Homepage', () => {
it(`should be equal to ${npm.homepage}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.homepage, compareValue.homepage);
});
});
});
});
describe('Repository', () => {
it(`should be equal to ${npm.repository}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.repository, compareValue.repository);
});
});
});
});
describe('License', () => {
it(`should be equal to ${npm.license}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.license, compareValue.license);
});
});
});
});
describe('Author Name', () => {
it(`should be equal to ${npm.author}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.author, compareValue.author);
});
});
});
});
describe('Main File', () => {
it(`should be equal to ${npm.main}`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.main, compareValue.main);
});
});
});
});
describe('Ignore', () => {
it(`should be equal`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.ignore, compareValue.ignore);
});
});
});
});
describe('Keywords', () => {
it(`should be equal`, () => {
packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => {
if (referenceIndex !== compareIndex) assert(referenceValue.keywords, compareValue.keywords);
});
});
});
});
});