2021-04-18 18:49:53 +02:00
|
|
|
{
|
|
|
|
"targets":{
|
|
|
|
"clean": {
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "vfs-rm",
|
|
|
|
"data": ["build/debug/scheme.html"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"build": {
|
|
|
|
"require": ["ts"],
|
|
|
|
"jobs":[
|
|
|
|
{
|
|
|
|
"name": "vfs-mkdir",
|
|
|
|
"data": ["build","build/debug","build/release"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ts-import",
|
|
|
|
"data": ["core/ts/core.d.ts", "core/ts/jquery.d.ts","core/ts/antos.d.ts"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ts-compile",
|
|
|
|
"data": {
|
|
|
|
"src": ["ts/main.ts"],
|
|
|
|
"dest": "build/debug/main.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"uglify": {
|
|
|
|
"require": ["terser"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name":"terser-uglify",
|
|
|
|
"data": ["build/debug/main.js"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"copy": {
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "vfs-cp",
|
|
|
|
"data": {
|
|
|
|
"src": [
|
2021-04-18 23:29:50 +02:00
|
|
|
"core",
|
2021-04-18 18:49:53 +02:00
|
|
|
"package.json",
|
2021-04-18 23:29:50 +02:00
|
|
|
"README.md"
|
2021-04-18 18:49:53 +02:00
|
|
|
],
|
|
|
|
"dest":"build/debug"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"release": {
|
2021-04-18 23:29:50 +02:00
|
|
|
"depend": ["clean","build","uglify", "copy"],
|
2021-04-18 18:49:53 +02:00
|
|
|
"require": ["zip"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "zip-mk",
|
|
|
|
"data": {
|
|
|
|
"src":"build/debug",
|
|
|
|
"dest":"build/release/libantosdk.zip"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|