@40q/40q-cli 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,7 +51,7 @@ class GenerateBlock {
|
|
51
51
|
}
|
52
52
|
createBlockFiles() {
|
53
53
|
var _a, _b;
|
54
|
-
fs.writeFileSync(path_1.default.join(process.cwd(), `resources/scripts/editor/blocks/${this.name}/${this.name}.tsx`), this.getTemplate('tsx')
|
54
|
+
fs.writeFileSync(path_1.default.join(process.cwd(), `resources/scripts/editor/blocks/${this.name}/${this.name}.block.tsx`), this.getTemplate('tsx')
|
55
55
|
.replace(/{{name}}/g, (_a = this.name) !== null && _a !== void 0 ? _a : '')
|
56
56
|
.replace(/{{title}}/g, this.title));
|
57
57
|
fs.writeFileSync(path_1.default.join(process.cwd(), `resources/views/blocks/${this.name}.blade.php`), this.getTemplate('blade'));
|