@zbryikt/template 2.4.0 → 2.4.1

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 (3) hide show
  1. package/README.md +10 -0
  2. package/bin/cli.js +3 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,16 @@ start server ( -r, -p and -c are optional ):
20
20
  npx server -r <your-web-root> -c <your-server-config> -o <auto-open:true/false> -p <port>
21
21
 
22
22
 
23
+ By default assets won't be copied but you can specify extensions to copy with comma-separated strings:
24
+
25
+ npx server -r <your-web-root> -m png,jpg,jpeg,gif
26
+
27
+
28
+ or use srcbuild's default values by passing `true`:
29
+
30
+ npx server -r <your-web-root> -m true
31
+
32
+
23
33
  you can also add following in your own package.json:
24
34
 
25
35
  "scripts": {
package/bin/cli.js CHANGED
@@ -20,7 +20,7 @@ if (/\.json$/.exec(process.argv[2] || '')) {
20
20
  }).option('mix-asset', {
21
21
  alias: 'm',
22
22
  description: "mix asset with pug folder",
23
- type: 'bool'
23
+ type: 'string'
24
24
  }).option('config', {
25
25
  alias: 'c',
26
26
  description: "config json",
@@ -64,7 +64,8 @@ main = {
64
64
  },
65
65
  asset: argv.m ? {
66
66
  srcdir: 'src/pug',
67
- desdir: 'static'
67
+ desdir: 'static',
68
+ ext: argv.m && argv.m !== "true" ? argv.m.split(',') : void 8
68
69
  } : void 8
69
70
  }, this$.opt.lsp || {}), ref$.base = '.', ref$.i18n = i18n, ref$));
70
71
  });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "license": "MIT",
5
5
  "main": "bin/lib/index.js",
6
6
  "description": "simple, quick template for bootstrap a page",
7
- "version": "2.4.0",
7
+ "version": "2.4.1",
8
8
  "files": [
9
9
  "bin/**/*"
10
10
  ],