refactor build process (#1675)

* add nc-broadcast to view initialization.sh logs

* include stderr

* refactor build

* add frontend/config.json as frontend dependency

* fix nc-broadcast

* always run all workflows

* address dependabot alerts

* fix build caching

* remove registries.json

* more efficient build
This commit is contained in:
Aiden McClelland
2022-07-21 15:18:44 -06:00
committed by GitHub
parent ea2d77f536
commit 9a01a0df8e
28 changed files with 178 additions and 355 deletions

View File

@@ -1,15 +0,0 @@
import { parse } from 'node-html-parser'
import * as fs from 'fs'
let index = fs.readFileSync('./dist/ui/index.html').toString('utf-8')
const root = parse(index)
for (let elem of root.querySelectorAll('link')) {
if (elem.getAttribute('rel') === 'stylesheet') {
const sheet = fs
.readFileSync('./dist/ui/' + elem.getAttribute('href'))
.toString('utf-8')
index = index.replace(elem.toString(), '<style>' + sheet + '</style>')
}
}
fs.writeFileSync('./dist/ui/index.html', index)