antosdk-apps/CodePad/build.json

89 lines
2.4 KiB
JSON
Raw Permalink Normal View History

2021-04-20 17:36:01 +02:00
{
2021-04-21 11:37:58 +02:00
"name": "CodePad",
2021-04-20 17:36:01 +02:00
"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-04-20 17:36:01 +02:00
},
{
"name": "ts-compile",
"data": {
2021-04-21 11:37:58 +02:00
"src": [
2021-04-21 12:44:43 +02:00
"ts/main.ts",
2021-04-21 11:37:58 +02:00
"ts/BaseEditorModel.ts",
2021-04-21 12:44:43 +02:00
"ts/ACEModel.ts"
2021-04-21 11:37:58 +02:00
],
2021-04-20 17:36:01 +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-21 11:37:58 +02:00
"assets/main.css",
"assets/scheme.html",
2021-04-20 17:36:01 +02:00
"package.json",
"README.md"
],
"dest":"build/debug"
}
}
]
},
2021-04-21 11:37:58 +02:00
"debug": {
"depend": ["build", "copy"]
},
"run": {
"depend": ["debug"],
"jobs": [
{
"name": "sdk-run-app",
"data": "build/debug"
}
]
},
2021-04-20 17:36:01 +02:00
"release": {
2021-04-21 11:37:58 +02:00
"depend": ["debug","uglify"],
2021-04-20 17:36:01 +02:00
"require": ["zip"],
"jobs": [
{
"name": "zip-mk",
"data": {
"src":"build/debug",
2021-04-21 11:37:58 +02:00
"dest":"build/release/CodePad.zip"
2021-04-20 17:36:01 +02:00
}
}
]
}
}
}