antosdk-apps/libantosdk/build.json

101 lines
2.8 KiB
JSON
Raw Permalink Normal View History

2021-04-18 18:49:53 +02:00
{
"targets":{
"clean": {
"jobs": [
{
"name": "vfs-rm",
2021-05-06 17:26:01 +02:00
"data": ["build"]
2021-04-18 18:49:53 +02:00
}
]
},
"locale": {
"require": ["locale"],
"jobs": [
{
"name":"locale-gen",
"data": {
"src": "",
2021-05-06 17:26:01 +02:00
"exclude": ["build/debug/", "core/"],
"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": {
2021-05-06 17:26:01 +02:00
"src": ["ts/main.ts", "ts/app.ts"],
2021-04-18 18:49:53 +02:00
"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-05-06 17:26:01 +02:00
"README.md",
"main.css",
"scheme.html"
2021-04-18 18:49:53 +02:00
],
"dest":"build/debug"
}
}
]
},
2021-05-06 17:26:01 +02:00
"debug": {
"depend": ["build","copy"],
"jobs": []
},
2021-04-18 18:49:53 +02:00
"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"
}
}
]
},
"list": {
"require": ["linux"],
"jobs": [
{
"name": "linux-exec",
"data": {
"cmd": "tree .",
"pwd": "home://workspace/antosdk-apps/libantosdk"
}
}
]
2021-04-18 18:49:53 +02:00
}
}
}