@nickkaramoff/taskr-postcss
Advanced tools
Comparing version 2.0.0 to 2.0.1
10
index.js
'use strict'; | ||
const res = require('path').resolve; | ||
const postcss = require('postcss'); | ||
@@ -8,15 +7,10 @@ const postcssrc = require('postcss-load-config'); | ||
const base = { plugins:[], options:{} }; | ||
const filenames = ['.postcssrc', '.postcssrc.js', 'postcss.config.js', 'package.json']; | ||
const isString = any => typeof any === 'string'; | ||
const isObject = any => !!any && typeof any === 'object' && !Array.isArray(any); | ||
const isEmptyObj = any => isObject(any) && Object.keys(any).length === 0; | ||
module.exports = function (task, utils) { | ||
const rootDir = str => res(task.root, str); | ||
module.exports = function (task) { | ||
const setError = msg => task.emit('plugin_error', { plugin:'@nickkaramoff/taskr-postcss', error:msg }); | ||
const getConfig = arr => Promise.all(arr.map(utils.find)).then(res => res.filter(Boolean)).then(res => res[0]); | ||
task.plugin('postcss', { every:false }, function * (files, opts) { | ||
let config, isJSON = false; | ||
let config = false; | ||
@@ -23,0 +17,0 @@ try { |
{ | ||
"name": "@nickkaramoff/taskr-postcss", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "PostCSS plugin for Taskr", | ||
@@ -5,0 +5,0 @@ "repository": "NickKaramoff/taskr-postcss", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6228
35