antosdk-apps/AntunnelPlugins/build.json

82 lines
2.3 KiB
JSON
Raw Normal View History

2021-11-28 14:10:21 +01:00
{
"name": "AntunnelPlugins",
"targets":{
"clean": {
"jobs": [
{
"name": "vfs-rm",
"data": ["build/debug","build/release"]
}
]
},
"build": {
"require": ["ts"],
"jobs":[
{
"name": "vfs-mkdir",
"data": ["build","build/debug","build/release"]
},
{
"name": "ts-antos-sdk",
"data": {
"version": "2.0.x"
}
2021-11-28 14:10:21 +01:00
},
{
"name": "ts-compile",
"data": {
"src": ["main.ts", "broadcast.ts"],
"dest": "build/debug/main.js"
}
},
{
"name": "ts-compile",
"data": {
"src": ["main.ts", "broadcast.ts"],
"dest": "build/debug/main.d.ts",
"options": {
"declaration": true,
"emitDeclarationOnly": true
}
}
}
]
},
"uglify": {
"require": ["terser"],
"jobs": [
{
"name":"terser-uglify",
"data": ["build/debug/main.js"]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"package.json",
"README.md"
],
"dest":"build/debug"
}
}
]
},
"release": {
"depend": ["clean","build","uglify", "copy"],
"require": ["zip"],
"jobs": [
{
"name": "zip-mk",
"data": {
"src":"build/debug",
"dest":"build/release/AntunnelPlugins.zip"
}
}
]
}
}
}