@adamlui/scss-to-css 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +1 -1
- package/scss-to-css.js +2 -2
package/README.md
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
### Recursively compile all SCSS files into minified CSS.
|
|
4
4
|
|
|
5
|
+
<a href="https://www.npmjs.com/package/@adamlui/scss-to-css"><img height=31 src="https://img.shields.io/npm/dt/%40adamlui%2Fscss-to-css?logo=npm&logoColor=white&labelColor=46464&style=for-the-badge"></a>
|
|
5
6
|
<a href="#%EF%B8%8F-mit-license"><img height=31 src="https://img.shields.io/badge/License-MIT-fcde7b.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
6
|
-
<a href="https://www.npmjs.com/package/@adamlui/scss-to-css"><img height=31 src="https://img.shields.io/badge/Latest_Build-1.3.
|
|
7
|
+
<a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=versions"><img height=31 src="https://img.shields.io/badge/Latest_Build-1.3.2-fc7811.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
7
8
|
|
|
8
|
-
<img height=8px width="100%" src="https://
|
|
9
|
+
<img height=8px width="100%" src="https://github.com/adamlui/js-utils/blob/main/docs/images/aqua-separator.png">
|
|
9
10
|
|
|
10
11
|
## ⚡ Installation
|
|
11
12
|
|
|
@@ -111,7 +112,7 @@ SOFTWARE.
|
|
|
111
112
|
|
|
112
113
|
<br>
|
|
113
114
|
|
|
114
|
-
<img height=6px width="100%" src="https://
|
|
115
|
+
<img height=6px width="100%" src="https://github.com/adamlui/js-utils/blob/main/docs/images/aqua-separator.png">
|
|
115
116
|
|
|
116
117
|
<a href="https://github.com/adamlui/js-utils">**Home**</a> /
|
|
117
118
|
<a href="https://github.com/adamlui/js-utils/discussions">Discuss</a> /
|
package/package.json
CHANGED
package/scss-to-css.js
CHANGED
|
@@ -13,13 +13,13 @@ const nc = '\x1b[0m', // no color
|
|
|
13
13
|
|
|
14
14
|
// Init I/O args
|
|
15
15
|
const [inputArg = '', outputArg = ''] = ( // default to empty strings for error-less handling
|
|
16
|
-
process.argv.slice(2) // exclude executable and script
|
|
16
|
+
process.argv.slice(2) // exclude executable and script paths
|
|
17
17
|
.filter(arg => !arg.startsWith('-')) // exclude flags
|
|
18
18
|
.map(arg => arg.replace(/^\/*/, '')) // clean leading slashes to avoid parsing system root
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
// Validate input arg (output arg can be anything)
|
|
22
|
-
const inputPath = path.resolve(
|
|
22
|
+
const inputPath = path.resolve(process.cwd(), inputArg);
|
|
23
23
|
if (inputArg && !fs.existsSync(inputPath)) {
|
|
24
24
|
console.error(`\n${br}Error: First arg must be an existing file or directory.`
|
|
25
25
|
+ `\n${ inputPath } does not exist.${nc}`
|