sheetloaf 1.26.0-beta.0 → 1.26.0-beta.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/dist/index.js +11 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -41,14 +41,14 @@ const chokidar_1 = __importDefault(require("chokidar"));
|
|
|
41
41
|
const picocolors_1 = __importDefault(require("picocolors"));
|
|
42
42
|
const fs_1 = __importDefault(require("fs"));
|
|
43
43
|
const path_1 = __importDefault(require("path"));
|
|
44
|
-
const sass_embedded_1 =
|
|
44
|
+
const sass_embedded_1 = require("sass-embedded");
|
|
45
45
|
const postcss_1 = __importDefault(require("postcss"));
|
|
46
46
|
const configs = __importStar(require("./configs"));
|
|
47
47
|
const fileFinder = __importStar(require("./fileFinder"));
|
|
48
48
|
const sources = __importStar(require("./sources"));
|
|
49
49
|
const glob_1 = require("glob");
|
|
50
50
|
const sheetloaf = new commander_1.Command();
|
|
51
|
-
sheetloaf.version("1.26.0
|
|
51
|
+
sheetloaf.version("1.26.0", '-v, --version', 'Print the version of Sheetloaf.');
|
|
52
52
|
let usingStdin = false;
|
|
53
53
|
let postcssConfig = {
|
|
54
54
|
plugins: []
|
|
@@ -66,10 +66,10 @@ sheetloaf
|
|
|
66
66
|
postcssConfig = configs.generatePostcssConfigFromFile(sheetloaf.opts().config);
|
|
67
67
|
}
|
|
68
68
|
if (sheetloaf.opts().async === true) {
|
|
69
|
-
sassAsyncCompiler = yield sass_embedded_1.
|
|
69
|
+
sassAsyncCompiler = yield (0, sass_embedded_1.initAsyncCompiler)();
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
|
-
sassCompiler = sass_embedded_1.
|
|
72
|
+
sassCompiler = (0, sass_embedded_1.initCompiler)();
|
|
73
73
|
}
|
|
74
74
|
if (source.length > 0) {
|
|
75
75
|
renderAllFiles(source);
|
|
@@ -256,6 +256,9 @@ function renderPost(fileName, destination, sassResult) {
|
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
258
|
process.stdout.write(postedResult.css);
|
|
259
|
+
if (!sheetloaf.opts().watch) {
|
|
260
|
+
process.exit();
|
|
261
|
+
}
|
|
259
262
|
}
|
|
260
263
|
})
|
|
261
264
|
.catch((err) => {
|
|
@@ -265,6 +268,9 @@ function renderPost(fileName, destination, sassResult) {
|
|
|
265
268
|
else {
|
|
266
269
|
process.stderr.write(err);
|
|
267
270
|
}
|
|
271
|
+
if (!sheetloaf.opts().watch) {
|
|
272
|
+
process.exit();
|
|
273
|
+
}
|
|
268
274
|
});
|
|
269
275
|
}
|
|
270
276
|
function sassErrorCatcher(e, destination) {
|
|
@@ -292,6 +298,7 @@ function sassErrorCatcher(e, destination) {
|
|
|
292
298
|
}
|
|
293
299
|
if (!sheetloaf.opts().watch && (process.exitCode == null || process.exitCode === 0)) {
|
|
294
300
|
process.exitCode = 1;
|
|
301
|
+
process.exit();
|
|
295
302
|
}
|
|
296
303
|
}
|
|
297
304
|
function emitSassError(err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.26.0-beta.
|
|
3
|
+
"version": "1.26.0-beta.2",
|
|
4
4
|
"description": "freshmade stylesheets for the whole family.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"autoprefixer": "^10.4.22",
|
|
40
40
|
"bootstrap": "^5.3.8",
|
|
41
41
|
"mocha": "^11.7.5",
|
|
42
|
-
"postcss": "^8.
|
|
42
|
+
"postcss": "^8.5.15",
|
|
43
43
|
"postcss-custom-properties": "^13.3.10",
|
|
44
44
|
"ts-node": "^10.9.2",
|
|
45
45
|
"typescript": "^4.7.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"postcss": "^8.5.
|
|
48
|
+
"postcss": "^8.5.15"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"chokidar": "^
|
|
51
|
+
"chokidar": "^5.0.0",
|
|
52
52
|
"commander": "^9.4.0",
|
|
53
|
-
"glob": "^
|
|
53
|
+
"glob": "^13.0.6",
|
|
54
54
|
"picocolors": "^1.1.1",
|
|
55
|
-
"sass-embedded": "1.
|
|
55
|
+
"sass-embedded": "1.100.0"
|
|
56
56
|
}
|
|
57
57
|
}
|