2020-05-05 05:31:53 +08:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2020-06-22 20:11:20 +08:00
|
|
|
{
|
|
|
|
"label": "build and run",
|
|
|
|
"type": "shell",
|
2020-06-24 04:39:48 +08:00
|
|
|
"command": "swift run carton"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "build and run sdk",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift run carton sdk"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "build and run sdk install",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift run carton sdk install"
|
2020-06-22 20:11:20 +08:00
|
|
|
},
|
2020-07-07 22:52:07 +08:00
|
|
|
{
|
|
|
|
"label": "build and run sdk versions",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift run carton sdk versions"
|
|
|
|
},
|
2020-06-22 20:11:20 +08:00
|
|
|
{
|
|
|
|
"label": "build and version",
|
|
|
|
"type": "shell",
|
2020-06-24 04:39:48 +08:00
|
|
|
"command": "swift run carton --version"
|
2020-06-22 20:11:20 +08:00
|
|
|
},
|
2020-05-05 05:31:53 +08:00
|
|
|
{
|
2020-06-10 05:37:29 +08:00
|
|
|
"label": "build and run dev",
|
2020-05-05 05:31:53 +08:00
|
|
|
"type": "shell",
|
2020-09-29 18:41:50 +08:00
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton dev"
|
2020-06-08 02:25:08 +08:00
|
|
|
},
|
2020-10-21 15:48:03 +08:00
|
|
|
{
|
|
|
|
"label": "build release and run dev",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build -c release && cd TestApp && ../.build/release/carton dev"
|
|
|
|
},
|
2020-10-02 03:43:14 +08:00
|
|
|
{
|
|
|
|
"label": "build and run dev on 9090 port",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton dev --port 9090"
|
|
|
|
},
|
2020-09-01 01:37:43 +08:00
|
|
|
{
|
|
|
|
"label": "build and run dev w/ custom index",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton dev --product TestApp --custom-index-page index.html"
|
|
|
|
},
|
2020-07-25 22:32:42 +08:00
|
|
|
{
|
|
|
|
"label": "build and run dev in subdirectory",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp/Sources/TestApp && ../../../.build/debug/carton dev --product TestApp"
|
|
|
|
},
|
2020-06-10 05:37:29 +08:00
|
|
|
{
|
|
|
|
"label": "build and run test",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton test"
|
|
|
|
},
|
2020-07-16 02:12:28 +08:00
|
|
|
{
|
|
|
|
"label": "build and run test list",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton test -l"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "build and run test case",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton test Tests.Test/testTrivial"
|
|
|
|
},
|
2020-08-31 23:29:47 +08:00
|
|
|
{
|
|
|
|
"label": "build and hash static dependencies",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift run carton-release hash-archive"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "build and run bundle",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton bundle"
|
|
|
|
},
|
2020-09-29 03:14:18 +08:00
|
|
|
{
|
|
|
|
"label": "build and run bundle, log to file",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton bundle > .build/log"
|
|
|
|
},
|
2020-09-01 01:37:43 +08:00
|
|
|
{
|
|
|
|
"label": "build and run bundle w/ custom index",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "swift build && cd TestApp && ../.build/debug/carton bundle --custom-index-page index.html"
|
|
|
|
},
|
2020-06-08 02:25:08 +08:00
|
|
|
{
|
|
|
|
"type": "npm",
|
|
|
|
"script": "build",
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"label": "npm: build",
|
|
|
|
"detail": "webpack"
|
2020-08-31 23:29:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "npm",
|
|
|
|
"script": "bundle",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"label": "npm: bundle",
|
|
|
|
"detail": "webpack --config bundle.config.js"
|
2020-05-05 05:31:53 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|