mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
83 lines
2.3 KiB
JSON
83 lines
2.3 KiB
JSON
{
|
|
"targets":{
|
|
"clean": {
|
|
"jobs": [
|
|
{
|
|
"name": "vfs-rm",
|
|
"data": ["build/debug/scheme.html"]
|
|
}
|
|
]
|
|
},
|
|
"locale": {
|
|
"require": ["locale"],
|
|
"jobs": [
|
|
{
|
|
"name":"locale-gen",
|
|
"data": {
|
|
"src": "",
|
|
"exclude": ["build/debug/", "core/", "ts/test\\.ts", "scheme\\.html"],
|
|
"locale": "en_GB",
|
|
"dest": "package.json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": [
|
|
"core",
|
|
"package.json",
|
|
"README.md"
|
|
],
|
|
"dest":"build/debug"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"release": {
|
|
"depend": ["build","uglify", "copy"],
|
|
"require": ["zip"],
|
|
"jobs": [
|
|
{
|
|
"name": "zip-mk",
|
|
"data": {
|
|
"src":"build/debug",
|
|
"dest":"build/release/libantosdk.zip"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |