Comparing version 0.3.0 to 0.3.2
{ | ||
"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 | ||
``` |
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
19402
32