123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- {
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "tasks": [
- {
- "label": "MakeHTML",
- "type": "shell",
- "command": "./sugarcube_compile.bat",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build",
- "isDefault": true
- },
- "problemMatcher": [],
- "dependsOn": [
- "esbuild",
- "cleanCSS"
- ]
- },
- {
- "label": "MakeReadme",
- "type": "shell",
- "command": "./readme/readme_compile.bat",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "shared",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": []
- },
- {
- "label": "BuildModFiles",
- "type": "shell",
- "command": "./mods/util/BuildModFiles.bat",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "shared",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": [],
- "dependsOn": [
- "MakeHTML"
- ]
- },
- {
- "type": "typescript",
- "tsconfig": "./sugarcube/tsconfig.json",
- "problemMatcher": [
- "$tsc"
- ],
- "presentation": {
- "panel": "dedicated",
- },
- "group": {
- "kind": "build"
- },
- "label": "TSC"
- },
- {
- "label": "esbuild",
- "type": "shell",
- "command": "esbuild sugarcube/temp/typescript.js --minify --outfile=sugarcube/src/typescript-min.js",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": [],
- "dependsOn": [
- "TSC"
- ]
- },
- {
- "label": "lessPrecompile",
- "type": "shell",
- "command": "python sugarcube/devTools/lessPreCompile/lessPreCompile.py",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": [],
- "dependsOn": [
-
- ]
- },
-
- {
- "label": "less",
- "type": "shell",
- "command": "lessc sugarcube/src/main.less sugarcube/temp/less_preCleaned.css",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": [],
- "dependsOn": ["lessPrecompile"]
- },
- {
- "label": "cleanCSS",
- "type": "shell",
- "command": "./node_modules/.bin/cleancss -o sugarcube/src/less.min.css sugarcube/temp/less_preCleaned.css -O 2",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": false,
- "clear": true
- },
- "group": {
- "kind": "build"
- },
- "problemMatcher": [],
- "dependsOn": [
- "less"
- ]
- },
- ]
- }
|