mirror of
https://github.com/dadosfera/maestro.git
synced 2026-08-31 19:58:21 +00:00
REFACTOR: move template to assets folder
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"assets": [
|
"assets": [
|
||||||
"**/*.proto",
|
"**/*.proto",
|
||||||
|
"assets/**/*",
|
||||||
{
|
{
|
||||||
"include": "i18n/**/*",
|
"include": "i18n/**/*",
|
||||||
"watchAssets": true
|
"watchAssets": true
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import { TypeParser } from './parser-types';
|
import { TypeParser } from './parser-types';
|
||||||
import { HtmlParser } from './html-parser';
|
import { HtmlParser } from './html-parser';
|
||||||
import { CsvParser } from './csv-parser';
|
import { CsvParser } from './csv-parser';
|
||||||
@@ -7,10 +6,7 @@ import { Parser } from './parser.interface';
|
|||||||
|
|
||||||
export class ParserBuilder {
|
export class ParserBuilder {
|
||||||
static build<T>(type: TypeParser): Parser<T> {
|
static build<T>(type: TypeParser): Parser<T> {
|
||||||
const templatePath = path.join(
|
const templatePath = '/app/dist/assets/template/pii-reporter.html';
|
||||||
__dirname,
|
|
||||||
'../../../src/template/pii-reporter.html',
|
|
||||||
);
|
|
||||||
|
|
||||||
if (type === 'html') {
|
if (type === 'html') {
|
||||||
const htmlParser = new HtmlParser<T>(templatePath);
|
const htmlParser = new HtmlParser<T>(templatePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user