Compile stringtemplates via esbuild

This commit is contained in:
Adria Navarro 2024-01-15 11:01:13 +01:00
parent 6be7814e55
commit 27bb73f77a
3 changed files with 767 additions and 51 deletions

View File

@ -19,8 +19,9 @@
"manifest.json"
],
"scripts": {
"build": "tsc && rollup -c",
"dev": "tsc && rollup -cw",
"build:esbuild": "esbuild --minify --bundle src/index-helpers.js --outfile=dist/index-helpers.bundled.js --platform=node --format=esm",
"build": "yarn build:esbuild && tsc && rollup -c",
"dev": "concurrently \"yarn build:esbuild --watch\" \"tsc && rollup -cw\"",
"test": "jest",
"manifest": "node ./scripts/gen-collection-info.js"
},
@ -34,6 +35,7 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"concurrently": "^8.2.2",
"doctrine": "^3.0.0",
"jest": "29.7.0",
"marked": "^4.0.10",

View File

@ -0,0 +1,5 @@
const { getHelperList } = require("./helpers")
const helpers = getHelperList()
module.exports = { helpers }

807
yarn.lock

File diff suppressed because it is too large Load Diff