@yannick-z/modulo 0.3.3 → 0.3.5

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.
package/dist/131.js CHANGED
@@ -27,7 +27,7 @@ const logger = {
27
27
  }
28
28
  };
29
29
  var package_namespaceObject = {
30
- rE: "0.3.2"
30
+ rE: "0.3.4"
31
31
  };
32
32
  const cli = cac("modulo");
33
33
  cli.command("init <target>", "Initialize modulo configuration or scripts").option("-f, --force", "Force overwrite existing files").option("--path <path>", "Specify the path to initialize").option("--preset <preset>", "Specify the preset to use").action((target, options)=>{
package/dist/839.js CHANGED
@@ -376,7 +376,7 @@ async function page_pack(args) {
376
376
  output: {
377
377
  assetPrefix: config.url.cdn || config.url.base,
378
378
  distPath: {
379
- root: config.output.dist
379
+ root: config.output.distPath
380
380
  },
381
381
  externals,
382
382
  filenameHash: config.output.filenameHash,
package/dist/938.js CHANGED
@@ -122,7 +122,7 @@ const preset_input_dirs = {
122
122
  modules: "modules"
123
123
  };
124
124
  const preset_output_dirs = {
125
- dist: "dist",
125
+ distPath: "dist",
126
126
  pages: "",
127
127
  modules: "modules",
128
128
  filenameHash: true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@yannick-z/modulo",
3
3
  "description": "",
4
4
  "type": "module",
5
- "version": "0.3.3",
5
+ "version": "0.3.5",
6
6
  "main": "./dist/index.js",
7
7
  "author": "oyangxiao",
8
8
  "scripts": {
@@ -18,6 +18,7 @@
18
18
  "dist",
19
19
  "bin",
20
20
  "src",
21
+ "template",
21
22
  "README.md",
22
23
  "LICENSE"
23
24
  ],
@@ -22,7 +22,7 @@ export const preset_input_dirs = {
22
22
  };
23
23
 
24
24
  export const preset_output_dirs = {
25
- dist: "dist", // 源码目录
25
+ distPath: "dist", // 源码目录
26
26
  pages: "", // 页面目录输出目录,默认使用dist/..
27
27
  modules: "modules", // 组件输出目录,默认使用dist/modules/..
28
28
  filenameHash: true,
@@ -50,7 +50,7 @@ export async function page_pack(args: ModuloArgs_Pack) {
50
50
  output: {
51
51
  assetPrefix: config.url.cdn || config.url.base,
52
52
  distPath: {
53
- root: config.output.dist,
53
+ root: config.output.distPath,
54
54
  },
55
55
  externals,
56
56
  filenameHash: config.output.filenameHash,
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ </head>
7
+
8
+ <body>
9
+ <div id="<%= mountId %>"></div>
10
+ </body>
11
+
12
+ </html>