@das-fed/cli 6.4.0-dev.55.9 → 6.4.0-dev.57

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/commands/build/get-window-config.js +1 -0
  3. package/src/commands/build/index.js +1 -1
  4. package/src/commands/build/nginx.main.conf +54 -54
  5. package/src/commands/build/nginx.micro.conf +61 -61
  6. package/src/commands/dev-helper/watchers/i18n/index.js +1 -1
  7. package/src/commands/helper/modules/gen-auth/gen/dist/config.js +1 -0
  8. package/src/commands/helper/modules/gen-auth/gen/dist/config.local.js +1 -0
  9. package/src/commands/helper/modules/gen-auth/gen/dist/index.js +1 -0
  10. package/src/commands/init/template/.prettierignore +21 -21
  11. package/src/commands/init/template/.prettierrc +8 -8
  12. package/src/commands/init/template/README.md +28 -28
  13. package/src/commands/init/template/config.js +3 -3
  14. package/src/commands/init/template/index.html +12 -12
  15. package/src/commands/init/template/package.json +12 -12
  16. package/src/commands/init/template/public/config.js +4 -4
  17. package/src/commands/init/template/src/das-web-app.ts +9 -9
  18. package/src/commands/init/template/src/main.ts +9 -9
  19. package/src/commands/init/template/src/micro-app.ts +8 -8
  20. package/src/commands/init/template/src/views/demo/app.vue +61 -61
  21. package/src/commands/init/template/src/views/demo/i18n/index.ts +14 -14
  22. package/src/commands/init/template/src/views/demo/router.ts +13 -13
  23. package/src/commands/init/template/src/views/demo/theme/index.ts +7 -7
  24. package/src/commands/init/template/src/views/hello/api/index.ts +6 -6
  25. package/src/commands/init/template/src/views/hello/app.vue +157 -157
  26. package/src/commands/init/template/src/views/hello/i18n/index.ts +16 -16
  27. package/src/commands/init/template/src/views/hello/router.ts +12 -12
  28. package/src/commands/init/template/src/views/hello/theme/index.ts +18 -18
  29. package/src/commands/init/template/src/vite-env.d.ts +1 -1
  30. package/src/commands/init/template/tsconfig.app.json +28 -28
  31. package/src/commands/init/template/tsconfig.json +11 -11
  32. package/src/commands/init/template/tsconfig.node.json +13 -13
  33. package/src/commands/init/template/vite.config.ts +11 -11
  34. package/src/vite-plugins/das-fe-ui/index.js +1 -1
  35. package/src/vite-plugins/das-fe-web/index.js +1 -1
  36. package/src/vite-plugins/das-fe-resolve/index.js +0 -1
  37. package/src/vite-plugins/dynamic-entry/index.js +0 -1
@@ -1 +0,0 @@
1
- import{resolve,extname}from"path";import dayjs from"dayjs";import fs from"fs-extra";import{parse as lexerParse}from"es-module-lexer";import MagicString from"magic-string";import{parseImportCode}from"../../utils/parse-import-code.js";let dasFeExternal=e=>{var r=process.cwd();resolve(r,"node_modules");let n=["@das-fed/web","@das-fed/ui","@das-fed/utils"];return{name:"das-fe-web-app-external",enforce:"pre",apply:"build",async transform(e,r){if(!(-1<r.indexOf("?"))&&[".vue",".ts",".js",".jsx",".tsx"].includes(extname(r))){if([".ts",".js"].includes(extname(r))&&r.indexOf("node_modules")<0){var s,[r,,]=lexerParse(e),a=new MagicString(e);for(s of r){var t=e.slice(s.s,s.e);!t.startsWith("@das-fed/")||t.endsWith(".js")||(t.endsWith("/index")?a.overwrite(s.s,s.e,t+".js"):a.overwrite(s.s,s.e,t+"/index.js"))}e=a.toString()}var i,r=parseImportCode(e);if(r)for(i of r.filter(e=>e.name.startsWith("@das-fed/")).filter(e=>!n.includes(e.name)))i.name.endsWith(".js")||(e=i.name.endsWith("/index")?e.replaceAll(`'${i.name}'`,`'${i.name}.js'`):e.replaceAll(`'${i.name}'`,`'${i.name}/index.js'`));return e}}}};export default e=>[dasFeExternal()];
@@ -1 +0,0 @@
1
- import{resolve}from"path";import fs from"fs-extra";export default(s="/src/main.ts")=>{let a=process.cwd();return{name:"das-fe-dynamic-entry",apply:"serve",transformIndexHtml:{order:"pre",handler:async r=>{var e="/src/main.dev.ts";return await fs.exists(resolve(a,"."+e))?r.replace(s,e):r}}}};