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