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

prejss-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prejss-cli - npm Package Compare versions

Comparing version 0.3.0 to 0.3.2

4

package.json
{
"name": "prejss-cli",
"version": "0.3.0",
"version": "0.3.2",
"description": "Get ES6 or CommonJS modules from CSS/SCSS/LESS styles using PreJSS",

@@ -12,3 +12,3 @@ "main": "lib/index.js",

"build:lib": "babel src --out-dir lib",
"build:examples-js": "./lib/cli.js ./examples/src --out-dir ./examples/dist --config plugins=postcss-import,postcss-simple-vars,postcss-sassy-mixins",
"build:examples-js": "./lib/cli.js ./examples/src --pretty --out-dir ./examples/dist --config plugins=postcss-import,postcss-simple-vars,postcss-sassy-mixins",
"build:examples-json": "./lib/cli.js ./examples/src -f json --pretty --out-dir ./examples/dist --config plugins=postcss-import,postcss-simple-vars,postcss-sassy-mixins",

@@ -15,0 +15,0 @@ "build:examples": "npm run build:examples-js && npm run build:examples-json",

@@ -9,3 +9,3 @@ prejss-cli

Command-Line Interface (CLI) interface for converting CSS/SCSS/LESS/other files into plain ES6 or CommonJS modules.
Command-Line Interface (CLI) interface for converting CSS/SCSS/LESS/other files to ES6 modules or to JSON files.

@@ -16,23 +16,18 @@ ## Examples

# Convert CSS file to JSON in current directory
prejss-cli -f json source.css
prejss-cli -f json source.css --pretty
# Convert CSS file to CommonJS in current directory
prejss-cli -f commonjs source.css
# Convert CSS file to ES6 in current directory
prejss-cli -f es6 source.css
# Convert CSS file to ES6 in current directory
prejss-cli source.css
# Convert all CSS in specified directory to ES6 in ./dist
prejss-cli --out-dir ./dist my-styles-directory
# Convert all CSS in specified directory to ES6 in ./examples/dist
prejss-cli examples/src --out-dir ./examples/dist
# Convert CSS in specified directory to ES6 in the same directory
# using specified parser (which should be installed as prejss-NAME-parser package)
prejss-cli --parser postcss ./src
prejss-cli examples/src --parser postcss
# Convert SCSS files only in specified directory to ES6 in ./jss
# using specified parser
prejss-cli --parser postcss --out-dir ./jss src/**/*.scss
# Convert SCSS files only in specified directory to ES6 in ./dist
# using specified parser and config
prejss-cli src/**/*.scss --parser postcss --out-dir ./dist \
--config plugins=postcss-import,postcss-simple-vars,postcss-sassy-mixins
```
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