2021-06-19 23:26:05 +02:00
|
|
|
{
|
|
|
|
"name": "ShaderPlayground",
|
|
|
|
"targets":{
|
|
|
|
"clean": {
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "vfs-rm",
|
|
|
|
"data": ["build/debug","build/release"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vfs-mkdir",
|
|
|
|
"data": ["build","build/debug","build/release"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"build": {
|
|
|
|
"require": ["ts"],
|
|
|
|
"jobs":[
|
|
|
|
{
|
|
|
|
"name": "ts-import",
|
|
|
|
"data": ["sdk://core/ts/core.d.ts", "sdk://core/ts/jquery.d.ts","sdk://core/ts/antos.d.ts"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ts-compile",
|
|
|
|
"data": {
|
|
|
|
"src": ["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": [
|
|
|
|
"scheme.html",
|
|
|
|
"package.json",
|
|
|
|
"README.md",
|
2021-06-21 00:04:52 +02:00
|
|
|
"main.css"
|
2021-06-19 23:26:05 +02:00
|
|
|
],
|
|
|
|
"dest":"build/debug"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"release": {
|
|
|
|
"depend": ["clean","build","uglify", "copy"],
|
|
|
|
"require": ["zip"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "zip-mk",
|
|
|
|
"data": {
|
|
|
|
"src":"build/debug",
|
|
|
|
"dest":"build/release/ShaderPlayground.zip"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"run": {
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name": "sdk-run-app",
|
|
|
|
"data": "build/debug"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"build and run": {
|
|
|
|
"depend": ["clean", "build", "copy", "run"],
|
|
|
|
"jobs": []
|
2021-06-21 00:04:52 +02:00
|
|
|
},
|
|
|
|
"locale": {
|
|
|
|
"require": ["locale"],
|
|
|
|
"jobs": [
|
|
|
|
{
|
|
|
|
"name":"locale-gen",
|
|
|
|
"data": {
|
|
|
|
"src": "",
|
|
|
|
"exclude": ["build/"],
|
|
|
|
"locale": "en_GB",
|
|
|
|
"dest": "package.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-06-19 23:26:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|