Merge branch 'release/v1.3.0-rc3'

This commit is contained in:
CJ Patoilo 2016-12-01 10:08:14 -03:00
commit 06ee5fd415
13 changed files with 43 additions and 9 deletions

View File

@ -53,8 +53,8 @@
"autoprefixer": "^6.5.3", "autoprefixer": "^6.5.3",
"ava": "^0.17.0", "ava": "^0.17.0",
"backstopjs": "^2.3.3", "backstopjs": "^2.3.3",
"banner-cli": "^0.5.0", "banner-cli": "^0.6.0",
"browser-sync": "^2.18.1", "browser-sync": "^2.18.2",
"coveralls": "^2.11.15", "coveralls": "^2.11.15",
"node-sass": "^3.13.0", "node-sass": "^3.13.0",
"npm-run-all": "^2.3.0", "npm-run-all": "^2.3.0",
@ -70,15 +70,16 @@
"prestart": "npm install", "prestart": "npm install",
"pretest": "npm install", "pretest": "npm install",
"banner": "banner-cli dist/*.css", "banner": "banner-cli dist/*.css",
"clean": "rm -rf dist",
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers \"last 1 versions\" -r dist/*.css", "autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers \"last 1 versions\" -r dist/*.css",
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css", "sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
"lint": "sass-lint -c .sasslintrc \"src/*.sass\" --verbose --no-exit", "lint": "sass-lint -c .sasslintrc \"src/*.sass\" --verbose --no-exit",
"build": "run-s lint sass autoprefixer banner", "build": "run-s clean lint sass autoprefixer banner",
"watch": "onchange src -- npm run build", "watch": "onchange src -- npm run build",
"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 build watch serve",
"test": "run-s build", "test": "nyc ava",
"coverage": "nyc ava | coveralls", "coveralls": "nyc report --reporter=text-lcov | coveralls",
"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"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

33
test/unit/build.js Normal file
View File

@ -0,0 +1,33 @@
const test = require('ava');
const fs = require('fs');
const path = require('path');
let dist = path.join(__dirname, '../../dist');
test.before('`dist` path should be created', t => {
t.true(fs.lstatSync(dist).isDirectory());
});
test('`milligram.css` should be created', t => {
fs.readdirSync(dist).map(file => {
if (file === 'milligram.css') t.is(file, 'milligram.css');
});
});
test('`milligram.min.css` should be created', t => {
fs.readdirSync(dist).map(file => {
if (file === 'milligram.min.css') t.is(file, 'milligram.min.css');
});
});
test('`milligram.css.map` should be created', t => {
fs.readdirSync(dist).map(file => {
if (file === 'milligram.css.map') t.is(file, 'milligram.css.map');
});
});
test('`milligram.min.css.map` should be created', t => {
fs.readdirSync(dist).map(file => {
if (file === 'milligram.min.css.map') t.is(file, 'milligram.min.css.map');
});
});

View File

@ -12,7 +12,7 @@ const packages = [
test(`Name should be equal "${npm.name}"`, t => { test(`Name should be equal "${npm.name}"`, t => {
packages.map((referenceValue, referenceIndex) => { packages.map((referenceValue, referenceIndex) => {
packages.map((compareValue, compareIndex) => { packages.map((compareValue, compareIndex) => {
if (compareValue.name.match('/')) compareValue.name = compareValue.name.split('/')[1] if (compareValue.name.match('/')) compareValue.name = compareValue.name.split('/')[1];
if (referenceIndex !== compareIndex) t.is(referenceValue.name, compareValue.name); if (referenceIndex !== compareIndex) t.is(referenceValue.name, compareValue.name);
}); });
}); });