sheetloaf 1.3.1-beta.1 → 1.3.2-beta.0
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 +8 -5
- package/dist/sources.js +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const configs = __importStar(require("./configs"));
|
|
|
47
47
|
const fileFinder = __importStar(require("./fileFinder"));
|
|
48
48
|
const sources = __importStar(require("./sources"));
|
|
49
49
|
const sheetloaf = new commander_1.Command();
|
|
50
|
-
sheetloaf.version("1.3.1
|
|
50
|
+
sheetloaf.version("1.3.1", '-v, --version', 'Print the version of Sheetloaf.');
|
|
51
51
|
let usingStdin = false;
|
|
52
52
|
let postcssConfig = {
|
|
53
53
|
plugins: []
|
|
@@ -115,12 +115,15 @@ function renderPartially(source, fileName) {
|
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
117
|
let partialExistsInSassSources = false;
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
let ind = 0;
|
|
119
|
+
while (ind < sources.getChecker().length) {
|
|
120
|
+
const toCheck = sources.getChecker()[ind];
|
|
121
|
+
if (toCheck.containsPartial(fileName)) {
|
|
120
122
|
partialExistsInSassSources = true;
|
|
121
|
-
renderSass(
|
|
123
|
+
renderSass(toCheck.getMain());
|
|
122
124
|
}
|
|
123
|
-
|
|
125
|
+
ind = ind + 1;
|
|
126
|
+
}
|
|
124
127
|
if (partialExistsInSassSources === false) {
|
|
125
128
|
sources.clearSourcesChecker();
|
|
126
129
|
renderAllFiles(source);
|
package/dist/sources.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.addResultToSourcesChecker = exports.clearSourcesChecker = exports.getChecker = exports.SassSources = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const url_1 = require("url");
|
|
8
9
|
let sourcesChecker = [];
|
|
9
10
|
class SassSources {
|
|
10
11
|
constructor(fileName, sassResult) {
|
|
@@ -16,8 +17,8 @@ class SassSources {
|
|
|
16
17
|
setSources(urls) {
|
|
17
18
|
this.sources.splice(0, this.sources.length);
|
|
18
19
|
urls.forEach(url => {
|
|
19
|
-
if (url.
|
|
20
|
-
this.sources.push(url.
|
|
20
|
+
if ((0, url_1.fileURLToPath)(url.href) !== this.absoluteMain) {
|
|
21
|
+
this.sources.push((0, url_1.fileURLToPath)(url.href));
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheetloaf",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2-beta.0",
|
|
4
4
|
"description": "freshmade stylesheets for the whole family.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"fast-glob": "^3.2.11",
|
|
55
55
|
"picocolors": "^1.0.0",
|
|
56
56
|
"picomatch": "^2.3.1",
|
|
57
|
-
"sass": "^1.54.
|
|
57
|
+
"sass": "^1.54.8"
|
|
58
58
|
}
|
|
59
59
|
}
|