fix(core): update

This commit is contained in:
2023-07-25 17:35:13 +02:00
parent 8fb95634df
commit 831ab25a6f
10 changed files with 898 additions and 402 deletions

View File

@@ -1,9 +1,6 @@
import * as plugins from './smartscaf.plugins.js';
import * as interfaces from './interfaces/index.js';
// interfaces
import { Smartfile } from '@pushrocks/smartfile';
export interface ScafTemplateContructorOptions {
name?: string;
description?: string;
@@ -39,7 +36,7 @@ export class ScafTemplate {
/**
* the files of the template as array of Smartfiles
*/
public templateSmartfileArray: Smartfile[];
public templateSmartfileArray: plugins.smartfile.Smartfile[];
public requiredVariables: string[];
public defaultVariables: any;
public suppliedVariables: any = {};
@@ -131,7 +128,7 @@ export class ScafTemplate {
*/
public async writeToDisk(destinationDirArg) {
this.destinationPath = destinationDirArg;
const smartfileArrayToWrite: Smartfile[] = [];
const smartfileArrayToWrite: plugins.smartfile.Smartfile[] = [];
for (const smartfile of this.templateSmartfileArray) {
// lets filter out template files
if (smartfile.path === '.smartscaf.yml') {