@savvywombat/tailwindcss-grid-areas
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@savvywombat/tailwindcss-grid-areas", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A plugin to provide TailwindCSS utilities for grid areas.", | ||
@@ -14,6 +14,7 @@ "keywords": ["tailwind", "tailwindcss", "css", "css grid", "css grid area", "grid-template-areas"], | ||
"homepage": "https://github.com/savvywombat/tailwindcss-grid-areas#readme", | ||
"main": "index.js", | ||
"main": "src/plugin.js", | ||
"scripts": { | ||
"style": "eslint .", | ||
"test": "jest && eslint ." | ||
"test": "jest && eslint .", | ||
"test:coverage": "jest --config jestconfig.coverage.json" | ||
}, | ||
@@ -20,0 +21,0 @@ "devDependencies": { |
# TailwindCSS Grid Areas | ||
[![Latest Version on NPM](https://img.shields.io/npm/v/@savvywombat/tailwindcss-grid-areas)](https://www.npmjs.com/package/@savvywombat/tailwindcss-areas) | ||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/SavvyWombat/tailwindcss-grid-areas/blob/main/LICENSE) | ||
[![Build](https://img.shields.io/github/workflow/status/SavvyWombat/tailwindcss-grid-areas/Test?label=build)](https://github.com/SavvyWombat/tailwindcss-grid-areas/actions) | ||
[![Code Coverage](https://codecov.io/gh/SavvyWombat/tailwindcss-grid-areas/branch/main/graph/badge.svg)](https://codecov.io/gh/SavvyWombat/tailwindcss-grid-areas) | ||
A plugin to provide TailwindCSS utilities for grid areas. | ||
@@ -4,0 +9,0 @@ |
@@ -10,5 +10,5 @@ const _ = require('lodash') | ||
if (match !== '.') { | ||
return match; | ||
return match | ||
} | ||
return []; | ||
return [] | ||
}) | ||
@@ -15,0 +15,0 @@ }) |
@@ -13,6 +13,6 @@ import extractGridAreaNames from '../../src/util/extractGridAreaNames' | ||
const gridTemplateAreas = { | ||
layout: [] | ||
layout: [], | ||
} | ||
expect(extractGridAreaNames({})).toEqual([]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([]) | ||
}) | ||
@@ -22,8 +22,6 @@ | ||
const gridTemplateAreas = { | ||
layout: ['abc'] | ||
layout: ['abc'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc']) | ||
}) | ||
@@ -33,8 +31,6 @@ | ||
const gridTemplateAreas = { | ||
layout: ['abc abc'] | ||
layout: ['abc abc'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc']) | ||
}) | ||
@@ -44,9 +40,6 @@ | ||
const gridTemplateAreas = { | ||
layout: ['abc def'] | ||
layout: ['abc def'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
'def', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc', 'def']) | ||
}) | ||
@@ -56,9 +49,6 @@ | ||
const gridTemplateAreas = { | ||
layout: ['abc', 'def'] | ||
layout: ['abc', 'def'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
'def', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc', 'def']) | ||
}) | ||
@@ -68,9 +58,6 @@ | ||
const gridTemplateAreas = { | ||
layout: ['abc abc', 'def .'] | ||
layout: ['abc abc', 'def .'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
'def', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc', 'def']) | ||
}) | ||
@@ -81,10 +68,6 @@ | ||
default: ['abc abc', 'def .'], | ||
large: ['abc abc abc', 'def hij hij',] | ||
large: ['abc abc abc', 'def hij hij'], | ||
} | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual([ | ||
'abc', | ||
'def', | ||
'hij', | ||
]) | ||
expect(extractGridAreaNames(gridTemplateAreas)).toEqual(['abc', 'def', 'hij']) | ||
}) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19169
11
483
131
1