Skip to content

Commit

Permalink
Finish debugging the console builder
Browse files Browse the repository at this point in the history
  • Loading branch information
jhgilbert committed Dec 11, 2024
1 parent 98ab952 commit e67c5da
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 73 deletions.
3 changes: 2 additions & 1 deletion markdoc/markdoc-hugo-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"scripts": {
"test": "npm run build; vitest run --coverage --reporter=verbose",
"test:watch": "npm run build; vitest",
"build-markdoc-integration": "rimraf ./dist && npx tsc; npm run copy-assets",
"build-markdoc-integration": "rimraf ./dist && npx tsc; npm run copy-assets && npm run copy-author-console",
"build-prod-renderer": "npx esbuild ./dist/markdoc-client-filters-manager.js --metafile=esbuild-meta-prod.json --tree-shaking=true --bundle --minify --outfile='./dist/helperModules/PageBuilder/compiledScripts/markdoc-client-filters-manager.min.js'",
"build-dev-renderer": "npx esbuild ./dist/markdoc-client-filters-manager.js --metafile=esbuild-meta-dev.json --tree-shaking=true --bundle --outfile='./dist/helperModules/PageBuilder/compiledScripts/markdoc-client-filters-manager.js'",
"build": "npm run build-markdoc-integration && npm run build-dev-renderer && npm run build-prod-renderer && npm run copy-assets && npm run copy-compiled-scripts",
"copy-assets": "cp -r ./src/helperModules/PageBuilder/assets ./dist/helperModules/PageBuilder",
"copy-author-console": "cp -r ./src/author-console ./dist/author-console",
"copy-compiled-scripts": "cp -r ./dist/helperModules/PageBuilder/compiledScripts ./src/helperModules/PageBuilder"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import react from '@vitejs/plugin-react';
import { viteSingleFile } from 'vite-plugin-singlefile';
import path from 'path';
import fs from 'fs';
import os from 'os';
import { AuthorConsoleData } from '../schemas/authorConsole';

const __dirname = path.dirname(__filename);
const VITE_PROJECT_PATH = path.resolve(__dirname, '../author-console');
const VITE_PROJECT_PATH = path.resolve(__dirname, '../../dist/author-console');
// const TEMP_PARENT_DIR = path.resolve(os.tmpdir(), 'markdoc-author-console');
const TEMP_PARENT_DIR = path.resolve(__dirname, 'tmp');
const TEMP_PARENT_DIR = path.resolve(__dirname, '../../dist/tmp');
console.log('TEMP_PARENT_DIR: ' + TEMP_PARENT_DIR);

export class AuthorConsoleBuilder {
Expand Down
Loading

0 comments on commit e67c5da

Please sign in to comment.