better build pipeline

This commit is contained in:
2021-04-23 13:01:16 +02:00
parent 8b86e8ea40
commit 288927e74c
14 changed files with 134 additions and 83 deletions

View File

@@ -5,7 +5,7 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "tsc --build && copyfiles -u 2 './src/nodes/**/*.{png,svg,html}' ./dist/nodes/"
"build": "tsc --build && copyfiles -u 2 './src/nodes/**/*.{png,svg}' ./dist/nodes/ && node build/build.js"
},
"files": [
"dist/**/*"
@@ -24,6 +24,7 @@
"devDependencies": {
"@types/node": "^14.14.41",
"@types/node-red": "^1.1.1",
"copyfiles": "^2.4.1"
"copyfiles": "^2.4.1",
"mustache": "^4.2.0"
}
}