@cloud-ru/ft-gulp-icon-builder 1.0.1-preview-de2b26f.0 → 1.0.1-preview-a291701.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.
|
@@ -35,7 +35,9 @@ function gulpCreateSvgSprite({ filePath, idPrefix }) {
|
|
|
35
35
|
},
|
|
36
36
|
onEnd: () => __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const { result } = yield sprite.compileAsync();
|
|
38
|
-
|
|
38
|
+
const fullFilePath = node_path_1.default.resolve(process.cwd(), filePath);
|
|
39
|
+
node_fs_1.default.mkdirSync(node_path_1.default.dirname(fullFilePath), { recursive: true });
|
|
40
|
+
node_fs_1.default.writeFileSync(fullFilePath, result.symbol.sprite.contents.toString());
|
|
39
41
|
}),
|
|
40
42
|
});
|
|
41
43
|
}
|
|
@@ -29,7 +29,9 @@ export function gulpCreateSvgSprite({ filePath, idPrefix }) {
|
|
|
29
29
|
},
|
|
30
30
|
onEnd: () => __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const { result } = yield sprite.compileAsync();
|
|
32
|
-
|
|
32
|
+
const fullFilePath = path.resolve(process.cwd(), filePath);
|
|
33
|
+
fs.mkdirSync(path.dirname(fullFilePath), { recursive: true });
|
|
34
|
+
fs.writeFileSync(fullFilePath, result.symbol.sprite.contents.toString());
|
|
33
35
|
}),
|
|
34
36
|
});
|
|
35
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ft-gulp-icon-builder",
|
|
3
|
-
"version": "1.0.1-preview-
|
|
3
|
+
"version": "1.0.1-preview-a291701.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
""
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@types/vinyl": "2.0.12",
|
|
47
47
|
"gulp-cli": "3.1.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "dd75754836764fb4377b7d5b71746736a5cf16bc"
|
|
50
50
|
}
|
package/src/svg-create-sprite.ts
CHANGED
|
@@ -27,7 +27,9 @@ export function gulpCreateSvgSprite({ filePath, idPrefix }: { idPrefix: string;
|
|
|
27
27
|
|
|
28
28
|
onEnd: async () => {
|
|
29
29
|
const { result } = await sprite.compileAsync();
|
|
30
|
-
|
|
30
|
+
const fullFilePath = path.resolve(process.cwd(), filePath);
|
|
31
|
+
fs.mkdirSync(path.dirname(fullFilePath), { recursive: true });
|
|
32
|
+
fs.writeFileSync(fullFilePath, result.symbol.sprite.contents.toString());
|
|
31
33
|
},
|
|
32
34
|
});
|
|
33
35
|
}
|