miniprogram-ci 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/README.md +3 -1
  3. package/dist/@types/config/config.d.ts +1 -1
  4. package/dist/@types/index.d.ts +1 -3
  5. package/dist/@types/modules/index.d.ts +0 -3
  6. package/dist/@types/types/miniprogram-json/app.d.ts +3 -0
  7. package/dist/@types/utils/filerules.d.ts +5 -0
  8. package/dist/config/config.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
  11. package/dist/modules/index.js +1 -1
  12. package/dist/utils/filerules.js +1 -1
  13. package/dist/utils/packOptionsHelper.js +1 -1
  14. package/package.json +3 -2
  15. package/dist/@types/cli/cmdForDonutH5.d.ts +0 -22
  16. package/dist/@types/modules/fullcompiler/app/app.d.ts +0 -74
  17. package/dist/@types/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.d.ts +0 -2
  18. package/dist/@types/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.d.ts +0 -2
  19. package/dist/@types/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.d.ts +0 -2
  20. package/dist/@types/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.d.ts +0 -3
  21. package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +0 -4
  22. package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +0 -12
  23. package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +0 -9
  24. package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +0 -32
  25. package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +0 -18
  26. package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +0 -12
  27. package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +0 -7
  28. package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +0 -10
  29. package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +0 -13
  30. package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +0 -48
  31. package/dist/@types/modules/fullcompiler/filerules.d.ts +0 -5
  32. package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +0 -11
  33. package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +0 -11
  34. package/dist/@types/modules/fullcompiler/index.d.ts +0 -28
  35. package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +0 -10
  36. package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +0 -13
  37. package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +0 -10
  38. package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +0 -11
  39. package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +0 -21
  40. package/dist/@types/modules/fullcompiler/trans/wcc/index.d.ts +0 -2
  41. package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +0 -18
  42. package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +0 -11
  43. package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +0 -12
  44. package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +0 -3
  45. package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +0 -14
  46. package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +0 -3
  47. package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +0 -3
  48. package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +0 -14
  49. package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +0 -9
  50. package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +0 -3
  51. package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +0 -41
  52. package/dist/@types/modules/fullcompiler/utils/index.d.ts +0 -4
  53. package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +0 -23
  54. package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +0 -40
  55. package/dist/@types/modules/fullcompiler/utils/tools.d.ts +0 -15
  56. package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +0 -1
  57. package/dist/manifest.json +0 -4
  58. package/dist/modules/fullcompiler/app/app.js +0 -1
  59. package/dist/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.js +0 -1
  60. package/dist/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.js +0 -1
  61. package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +0 -1
  62. package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.js +0 -1
  63. package/dist/modules/fullcompiler/appservice/appservice.config.js +0 -1
  64. package/dist/modules/fullcompiler/appservice/generatecode.utils.js +0 -1
  65. package/dist/modules/fullcompiler/appservice/getappservice.js +0 -1
  66. package/dist/modules/fullcompiler/appservice/getcompiledjs.js +0 -1
  67. package/dist/modules/fullcompiler/appservice/getjsfile.js +0 -1
  68. package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +0 -1
  69. package/dist/modules/fullcompiler/appservice/getsubpackage.js +0 -1
  70. package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +0 -1
  71. package/dist/modules/fullcompiler/appservice/getwxappcode.js +0 -1
  72. package/dist/modules/fullcompiler/config/apperrcode.config.js +0 -1
  73. package/dist/modules/fullcompiler/filerules.js +0 -1
  74. package/dist/modules/fullcompiler/getallrawfiles.js +0 -1
  75. package/dist/modules/fullcompiler/getallwmltohtmlmap.js +0 -1
  76. package/dist/modules/fullcompiler/index.js +0 -1
  77. package/dist/modules/fullcompiler/pageframe/getsubpackage.js +0 -1
  78. package/dist/modules/fullcompiler/pageframe/getwxappcode.js +0 -1
  79. package/dist/modules/fullcompiler/pageframe/index.js +0 -1
  80. package/dist/modules/fullcompiler/trans/transwxmltojs.js +0 -1
  81. package/dist/modules/fullcompiler/trans/transwxsstojs.js +0 -1
  82. package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
  83. package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
  84. package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
  85. package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
  86. package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
  87. package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
  88. package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
  89. package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
  90. package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
  91. package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
  92. package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
  93. package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
  94. package/dist/modules/fullcompiler/trans/wcc/index.js +0 -1
  95. package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +0 -19
  96. package/dist/modules/fullcompiler/trans/wcc/lib/index.js +0 -4
  97. package/dist/modules/fullcompiler/trans/wcc/lib/util.js +0 -1134
  98. package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +0 -94
  99. package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +0 -93
  100. package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +0 -1
  101. package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +0 -1
  102. package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +0 -1
  103. package/dist/modules/fullcompiler/utils/appconfig/appjson.js +0 -1
  104. package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +0 -1
  105. package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +0 -1
  106. package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +0 -1
  107. package/dist/modules/fullcompiler/utils/filewriter/index.js +0 -1
  108. package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +0 -1
  109. package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +0 -1
  110. package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +0 -1
  111. package/dist/modules/fullcompiler/utils/index.js +0 -1
  112. package/dist/modules/fullcompiler/utils/taskmanager.js +0 -1
  113. package/dist/modules/fullcompiler/utils/theme/index.js +0 -1
  114. package/dist/modules/fullcompiler/utils/tools.js +0 -1
  115. package/dist/modules/fullcompiler/utils/transformsourcemap.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.transWXSSToJS=exports.getWxssFilesAndContent=void 0;const tslib_1=require("tslib"),path_1=tslib_1.__importDefault(require("path")),packOptionsHelper_1=tslib_1.__importDefault(require("../../../utils/packOptionsHelper")),locales_1=tslib_1.__importDefault(require("../../../utils/locales/locales")),appconfig_1=tslib_1.__importDefault(require("../utils/appconfig/appconfig")),tools_1=require("../../../utils/tools"),apperrcode_config_1=require("../config/apperrcode.config"),checkcustomcomponent_1=require("../utils/appconfig/checkcustomcomponent"),compilewxss_1=require("./wxss/compilewxss");function formatError(o){const e=new Error(locales_1.default.config.COMPILE_WXSS_ERROR_CONSOLE);return e.code=apperrcode_config_1.appErrCode.TRANS_WXSS_JS_ERR,e.msgForConsole=o.message,e}async function wxssToJS(o,e,t){try{return await _wxssToJS(o,e,t)}catch(o){if("CustomError"===(null==o?void 0:o.type))throw o;throw formatError(o)}}async function getWxssFilesAndContent(o,e,t){const{config:s}=t,n=await e.getPackageWxssFiles((null==s?void 0:s.root)||"__APP__"),i=packOptionsHelper_1.default.filter(n.wxssFiles),{content:a}=n;return{wxssFiles:i,content:a}}async function _wxssToJS(o,e,t){const{appConfig:s,config:n,lazyload:i}=t,a=await e.getPackageWxssFiles((null==n?void 0:n.root)||"__APP__"),r=packOptionsHelper_1.default.filter(a.wxssFiles),c={};r.forEach(o=>{c[o]=!0});const l=(null==n?void 0:n.pages.map(o=>path_1.default.posix.join(n.root,o)))||s.pages,p=[];let u=0;l.forEach(o=>{c[o+".wxss"]&&(u++,p.push(`./${o}.wxss`),delete c[o+".wxss"])});(await(0,checkcustomcomponent_1.getWxssCompileConfig)(o,e,s,n)).forEach(o=>{c[o+".wxss"]&&(u++,p.push(`./${o}.wxss`),delete c[o+".wxss"])});for(const o in c)p.push("./"+o);let _;return a&&(_=a.content),await(0,compilewxss_1.compileWxss)({pageCount:u,files:p,cwd:o.srcPath||o.projectPath,subPackage:null==n?void 0:n.root,lazyload:i,replaceContent:_})}async function transWXSSToJS(o,e,t={}){packOptionsHelper_1.default.updateState(o);const{app:s,page:n}=t,i=await appconfig_1.default.getAppConfig(o,e);if(s){const t=await wxssToJS(o,e,{appConfig:i})||{};return{comm:(null==t?void 0:t.comm)||""}}const a=`./${n}.wxss`,r=(0,tools_1.checkIsInSubPackage)(i,n);if(!r){const t=await wxssToJS(o,e,{appConfig:i});return{comm:null==t?void 0:t.comm,page:(null==t?void 0:t[a])||""}}const c=await wxssToJS(o,e,{appConfig:i,config:r});return{comm:(null==c?void 0:c.comm)||"",page:(null==c?void 0:c[a])||""}}exports.getWxssFilesAndContent=getWxssFilesAndContent,exports.transWXSSToJS=transWXSSToJS;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const wcc=require("./lib/index");exports.default=wcc;
@@ -1,19 +0,0 @@
1
- const os = require('os');
2
- let platform = null;
3
- const { arch } = process;
4
- if (os.type() == 'Windows_NT') {
5
- platform = 'win32';
6
- } else if (os.type() == 'Darwin') {
7
- platform = 'darwin';
8
- }
9
-
10
- module.exports = {
11
- getAddonRelativePath(type) {
12
- if (type === 'wcc'
13
- || type === 'wcsc') {
14
- if (platform) {
15
- return `../build/${platform}_${arch}/${type}.node`;
16
- }
17
- }
18
- },
19
- };
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- wcc: require('./wcc'),
3
- wcsc: require('./wcsc'),
4
- };