2021-04-18 18:49:53 +02:00
|
|
|
{
|
|
|
|
"targets":{
|
|
|
|
"clean": {
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "vfs-rm",
|
|
|
|
"data": ["build/debug/scheme.html"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-05-01 20:17:34 +02:00
|
|
|
"locale": {
|
|
|
|
"require": ["locale"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name":"locale-gen",
|
|
|
|
"data": {
|
|
|
|
"src": "",
|
|
|
|
"exclude": ["build/debug/", "core/", "ts/test\\.ts", "scheme\\.html"],
|
|
|
|
"locale": "en_GB",
|
|
|
|
"dest": "package.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-04-18 18:49:53 +02:00
|
|
|
"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-20 18:12:54 +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-20 18:12:54 +02:00
|
|
|
"depend": ["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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-05-06 14:25:50 +02:00
|
|
|
},
|
|
|
|
"list": {
|
|
|
|
"require": ["linux"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "linux-exec",
|
|
|
|
"data": {
|
|
|
|
"cmd": "ls -al .",
|
|
|
|
"pwd": "home://"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-04-18 18:49:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|