diff --git a/docs/WCC与WCSC.MD b/docs/WCC与WCSC.MD new file mode 100644 index 0000000..588c47b --- /dev/null +++ b/docs/WCC与WCSC.MD @@ -0,0 +1,72 @@ + + +# 输入 +node_modules --- options.json +把options.json转换为命令行参数 + +# 二进制文件的说明 +## WCC +### Windows +``` +Wechat WXML Compiler, version v0.5vv_20200413_syb_scopedata +Usage: Z:\mnt\disk1\GitHub\wechat-devtools\cache\wechat_devtools_1.05.2201240_x64\code\package.nw\js\vendor\wcc.exe [-d] [-o OUTPUT] [-xc XComponentDefine] [-om XComponentDefine] [-cb [callback.js...]] [-llcommon] [-llw/-lla XCPath] + Options: + -d: output code for debug + -o: output destination (default stdout) + -xc: output simplified code for custom component + -cc: output compelete code for custom component + -s: read from stdin + -ds: insert debug wxs info + -cb: add life cycle callback + -llw: compile in lazy load mode (webiew) + -lla: compile in lazy load mode (app service) + args XCPath: custom component paths connected by comma or --split (./page/index,./comp/comp) +``` + +### Linux +``` +Wechat WXML Compiler, version v0.5vv_20200413_syb_scopedata +Usage: ./wcc [-d] [-o OUTPUT] [-xc XComponentDefine] [-om XComponentDefine] [-cb [callback.js...]] [-ll XCPath] + Options: + -d: output code for debug + -o: output destination (default stdout) + -xc: output simplified code for custom component + -cc: output compelete code for custom component + -s: read from stdin + -ds: insert debug wxs info + -cb: add life cycle callback + -ll: compile in lazy load mode +``` + +## WCSC +### Windows +``` +*** WeChat Stylesheet Compiler, Version v0.4me_20190328_db *** +Usage: Z:\mnt\disk1\GitHub\wechat-devtools-linux\package.nw\js\vendor\wcsc.exe [-lc] [-o OUTPUT] [-s ] [-st] [-js] [-db] [-cp ] [-pc ] <[-sd ] | [import_css_files..]> + -lc: need to lint the css + -sd: 'someclass { font-size: 18px }' + -s: read from stdin + -o: output destination (default stdout) + -st: print tree + -db: add debug attr + -js: js formate output + -cp: add class prefix + -pc: page wxss files count +``` + +### Linux +``` +*** WeChat Stylesheet Compiler, Version v0.4me_20190328_db *** +Usage: ./bin/linux/wcsc [-lc] [-o OUTPUT] [-s ] [-st] [-js] [-db] [-cp ] [-pc ] <[-sd ] | [import_css_files..]> + -lc: need to lint the css + -sd: 'someclass { font-size: 18px }' + -s: read from stdin + -o: output destination (default stdout) + -st: print tree + -db: add debug attr + -js: js formate output + -cp: add class prefix + -pc: page wxss files count +``` +# 输出 + diff --git a/test/wcc/WCC.MD b/test/wcc/WCC.MD deleted file mode 100644 index a8984ac..0000000 --- a/test/wcc/WCC.MD +++ /dev/null @@ -1,42 +0,0 @@ - - -# 输入 -node_modules --- options.json -把options.json转换为命令行参数 - -## Windows -``` -Wechat WXML Compiler, version v0.5vv_20200413_syb_scopedata -Usage: Z:\mnt\disk1\GitHub\wechat-devtools\cache\wechat_devtools_1.05.2201240_x64\code\package.nw\js\vendo -r\wcc.exe [-d] [-o OUTPUT] [-xc XComponentDefine] [-om XComponentDefine] [-cb [callback.js...]] [-llcommon -] [-llw/-lla XCPath] - Options: - -d: output code for debug - -o: output destination (default stdout) - -xc: output simplified code for custom component - -cc: output compelete code for custom component - -s: read from stdin - -ds: insert debug wxs info - -cb: add life cycle callback - -llw: compile in lazy load mode (webiew) - -lla: compile in lazy load mode (app service) - args XCPath: custom component paths connected by comma or --split (./page/index,./comp/comp) -``` - -## Linux -``` -Wechat WXML Compiler, version v0.5vv_20200413_syb_scopedata -Usage: ./wcc [-d] [-o OUTPUT] [-xc XComponentDefine] [-om XComponentDefine] [-cb [callback.js...]] [-ll XCPath] - Options: - -d: output code for debug - -o: output destination (default stdout) - -xc: output simplified code for custom component - -cc: output compelete code for custom component - -s: read from stdin - -ds: insert debug wxs info - -cb: add life cycle callback - -ll: compile in lazy load mode -``` - -# 输出 -