beyond
Version:
The Full Stack Universal Typescript Framework
54 lines (43 loc) • 889 B
JavaScript
const { join } = require('path');
module.exports = class Templates {
static
get ready() {
return this.
}
get path() {
return this.
}
/**
* get the templates from the @beyond-js/scaffolding package
*/
get templatesPackage() {
return '@beyond-js/scaffolding';
}
constructor(path) {
if (path) {
this.
this.
return;
}
this.load();
}
async
const path = await require('./path')();
this.
return (this.
}
async load() {
return this.
}
ipc() {
return require('../../../ipc-manager');
}
static get(path) {
if (!Templates.
Templates.
}
return Templates.
}
};