remove broken code
This commit is contained in:
@@ -18,7 +18,7 @@ exports.rings = [
|
|||||||
];
|
];
|
||||||
// todo: fix
|
// todo: fix
|
||||||
function assetUrl(file) {
|
function assetUrl(file) {
|
||||||
return '/' + file;
|
return process.env.PUBLIC_URL + '/' + file;
|
||||||
// return `/techradar/assets/${file}`
|
// return `/techradar/assets/${file}`
|
||||||
}
|
}
|
||||||
exports.assetUrl = assetUrl;
|
exports.assetUrl = assetUrl;
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||||||
exports.radarJsonGenerator = void 0;
|
exports.radarJsonGenerator = void 0;
|
||||||
const radar_1 = require("./radar");
|
const radar_1 = require("./radar");
|
||||||
const file_1 = require("./file");
|
const file_1 = require("./file");
|
||||||
const fs_1 = require("fs");
|
|
||||||
const config_1 = require("../src/config");
|
|
||||||
exports.radarJsonGenerator = (() => __awaiter(void 0, void 0, void 0, function* () {
|
exports.radarJsonGenerator = (() => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
console.log('start');
|
console.log('start');
|
||||||
@@ -35,15 +33,6 @@ ReactDOM.render(
|
|||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
`, 'index.tsx');
|
`, 'index.tsx');
|
||||||
fs_1.copyFileSync('build/index.html', 'build/overview.html');
|
|
||||||
fs_1.copyFileSync('build/index.html', 'build/help-and-about-tech-radar.html');
|
|
||||||
config_1.quadrants.forEach(quadrant => {
|
|
||||||
fs_1.copyFileSync('build/index.html', 'build/' + quadrant + '.html');
|
|
||||||
fs_1.mkdirSync('build/' + quadrant);
|
|
||||||
});
|
|
||||||
radar.items.forEach(item => {
|
|
||||||
fs_1.copyFileSync('build/index.html', 'build/' + item.quadrant + '/' + item.name + '.html');
|
|
||||||
});
|
|
||||||
console.log('Built radar');
|
console.log('Built radar');
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
@@ -29,17 +29,6 @@ ReactDOM.render(
|
|||||||
);
|
);
|
||||||
`, 'index.tsx')
|
`, 'index.tsx')
|
||||||
|
|
||||||
copyFileSync('build/index.html', 'build/overview.html')
|
|
||||||
copyFileSync('build/index.html', 'build/help-and-about-tech-radar.html')
|
|
||||||
|
|
||||||
quadrants.forEach(quadrant => {
|
|
||||||
copyFileSync('build/index.html', 'build/' + quadrant + '.html')
|
|
||||||
mkdirSync('build/' + quadrant)
|
|
||||||
})
|
|
||||||
radar.items.forEach(item => {
|
|
||||||
copyFileSync('build/index.html', 'build/' + item.quadrant + '/' + item.name + '.html')
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log('Built radar');
|
console.log('Built radar');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('error:', e);
|
console.error('error:', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user