From 3fc7aba1b39dc111c4e5ea872f39f37c8971796f Mon Sep 17 00:00:00 2001 From: shylinux Date: Wed, 26 Jan 2022 11:00:47 +0800 Subject: [PATCH] opt some --- proto.js | 22 ++-- publish/client/mp/project.config.json | 152 +++++++++++++------------- 2 files changed, 83 insertions(+), 91 deletions(-) diff --git a/proto.js b/proto.js index e64c7844..e06c063f 100644 --- a/proto.js +++ b/proto.js @@ -59,16 +59,11 @@ var cli = { START: "start", STOP: "stop", OPEN: "open", CLOSE: "close", BEGIN: "begin", END: "end", - EXEC: "exec", CODE: "code", - DONE: "done", - COST: "cost", - FROM: "from", BACK: "back", + + MAIN: "main", MAKE: "make", SHOW: "show", + EXEC: "exec", DONE: "done", CODE: "code", COST: "cost", ERROR: "error", CLEAR: "clear", REFRESH: "refresh", - - - SHOW: "show", - MAIN: "main", - MAKE: "make", + FROM: "from", BACK: "back", RED: "red", GREEN: "green", BLUE: "blue", YELLOW: "yellow", CYAN: "cyan", PURPLE: "purple", MAGENTA: "magenta", @@ -94,7 +89,7 @@ var mdb = { MODIFY: "modify", SELECT: "select", INPUTS: "inputs", PRUNES: "prunes", EXPORT: "export", IMPORT: "import", - PLUGIN: "plugin", RENDER: "render", SEARCH: "search", ENGINE: "engine", + SEARCH: "search", ENGINE: "engine", RENDER: "render", PLUGIN: "plugin", NEXT: "next", PREV: "prev", PAGE: "page", MAIN: "main", FOREACH: "*", RANDOMS: "%", @@ -103,14 +98,11 @@ var ssh = { SCRIPT: "script", } var nfs = { - DEFS: "defs", HTML: "html", CSS: "css", JS: "js", GO: "go", SH: "sh", CSV: "csv", JSON: "json", PATH: "path", FILE: "file", LINE: "line", SIZE: "size", - DIR: "dir", CAT: "cat", TRASH: "trash", + DIR: "dir", CAT: "cat", DEFS: "defs", TRASH: "trash", DIR_ROOT: "dir_root", - FIND: "find", GREP: "grep", - SAVE: "save", LOAD: "load", - TAGS: "tags", + SAVE: "save", LOAD: "load", TAGS: "tags", FIND: "find", GREP: "grep", } var tcp = { HOST: "host", PORT: "port", diff --git a/publish/client/mp/project.config.json b/publish/client/mp/project.config.json index 34654e3a..662959b5 100644 --- a/publish/client/mp/project.config.json +++ b/publish/client/mp/project.config.json @@ -1,83 +1,83 @@ { - "description": "项目配置文件", - "packOptions": { - "ignore": [] + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "es6": true, + "enhance": false, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": false, + "useApiHook": false, + "useApiHostProcess": false, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" }, - "setting": { - "urlCheck": true, - "es6": true, - "enhance": false, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": true, - "coverView": true, - "nodeModules": false, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "uglifyFileName": false, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, - "lazyloadPlaceholderEnable": false, - "useMultiFrameRuntime": true, - "useApiHook": true, - "useApiHostProcess": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "enableEngineNative": false, - "useIsolateContext": true, - "userConfirmedBundleSwitch": false, - "packNpmManually": false, - "packNpmRelationList": [], - "minifyWXSS": true, - "disableUseStrict": false, - "showES6CompileOption": false, - "useCompilerPlugins": false, - "minifyWXML": true + "enableEngineNative": false, + "useIsolateContext": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "minifyWXML": true, + "showES6CompileOption": false, + "useCompilerPlugins": false + }, + "compileType": "miniprogram", + "libVersion": "2.15.0", + "appid": "wxf4e5104d83476ed6", + "projectname": "%E7%BB%88%E7%AB%AF%E5%B7%A5%E5%85%B7%E9%93%BE", + "debugOptions": { + "hidedInDevtools": [] + }, + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "list": [] }, - "compileType": "miniprogram", - "libVersion": "2.15.0", - "appid": "wxf4e5104d83476ed6", - "projectname": "%E7%BB%88%E7%AB%AF%E5%B7%A5%E5%85%B7%E9%93%BE", - "debugOptions": { - "hidedInDevtools": [] + "conversation": { + "list": [] }, - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "condition": { - "search": { - "list": [] - }, - "conversation": { - "list": [] - }, - "plugin": { - "list": [] - }, - "game": { - "currentL": -1, - "list": [] - }, - "gamePlugin": { - "list": [] - }, - "miniprogram": { - "list": [ - { - "id": 0, - "name": "pages/action/action", - "pathName": "pages/action/action", - "query": "river= e0a1eb&storm=c23ae3&title=hi.scan", - "scene": 1001 - } - ] + "plugin": { + "list": [] + }, + "game": { + "currentL": -1, + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "id": 0, + "name": "pages/action/action", + "pathName": "pages/action/action", + "query": "river= e0a1eb&storm=c23ae3&title=hi.scan", + "scene": 1001 } + ] } + } } \ No newline at end of file