Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-cli

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-cli - npm Package Compare versions

Comparing version 2.5.2 to 2.6.0

15

History.md

@@ -0,1 +1,16 @@

2.6.0 / 2016-08-30
==================
* Add log option
* Update postcss-import to v8.1.2 from v7.1.0
* Update globby to v4.1.0 from v3.0.1
* Update postcss-url to v5.1.2 from v4.0.0
* Update jshint to v2.9.2 from v2.6.3
* Update chokidar to v1.5.1 from v1.0.3
* Update yargs to v4.7.1 from v3.32.0
* Support es6 export
* Allow running without plugins
* Add test for --poll
* Add --poll flag
2.5.2 / 2016-04-18

@@ -2,0 +17,0 @@ ==================

34

index.js

@@ -33,4 +33,10 @@ var globby = require("globby");

.describe('p', 'Alternative CSS parser')
.option('poll', {
describe: 'Use polling to monitor for changes.',
default: false,
})
.alias('t', 'stringifier')
.describe('t', 'Alternative output stringifier')
.alias('l', 'log')
.describe('l', 'Log when file is written')
.alias('w', 'watch')

@@ -44,3 +50,3 @@ .describe('w', 'auto-recompile when detecting source changes')

].join(' ');
}, 'v')
})
.alias('v', 'version')

@@ -50,5 +56,2 @@ .help('h')

.check(function(argv) {
if (!argv.use) {
throw 'Please specify at least one plugin name.';
}
if (argv._.length && argv.input) {

@@ -106,5 +109,10 @@ throw 'Both positional arguments and --input option used for `input file`: please only use one of them.';

plugin = require(resolved);
} else if (name) {
plugin = require(name);
} else {
plugin = require(name);
return null;
}
if (plugin.default && typeof plugin.default === 'function') {
plugin = plugin.default;
}
if (name in argv) {

@@ -139,3 +147,3 @@ plugin = plugin(argv[name]);

var postcss = require('postcss');
var processor = postcss(plugins);
var processor = plugins[0] ? postcss(plugins) : postcss();
var mkdirp = require('mkdirp');

@@ -154,4 +162,12 @@

var index = {}; // source files by entry point
var opts = {};
var watcher = require('chokidar').watch(watchedFiles);
if (argv.poll) {
opts.usePolling = true;
}
if (typeof argv.poll === 'number') {
opts.interval = argv.poll;
}
var watcher = require('chokidar').watch(watchedFiles, opts);
// recompile if any watched file is modified

@@ -264,4 +280,8 @@ // TODO: only recompile relevant entry point

fs.writeFile(name, content, fn);
if (argv.log) {
console.log('Generated file: ' + name);
}
}
});
}
{
"name": "postcss-cli",
"version": "2.5.2",
"version": "2.6.0",
"description": "CLI for postcss",

@@ -21,3 +21,3 @@ "main": "index.js",

"dependencies": {
"globby": "^3.0.1",
"globby": "^4.1.0",
"mkdirp": "^0.5.1",

@@ -28,12 +28,12 @@ "neo-async": "^1.0.0",

"resolve": "^1.1.6",
"yargs": "^3.32.0"
"yargs": "^4.7.1"
},
"optionalDependencies": {
"chokidar": "^1.0.3"
"chokidar": "^1.5.1"
},
"devDependencies": {
"jshint": "^2.6.3",
"postcss-import": "^7.1.0",
"postcss-url": "^4.0.0"
"jshint": "^2.9.2",
"postcss-import": "^8.1.2",
"postcss-url": "^5.1.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc