@syncify/cli 0.2.0-beta → 0.2.2-beta

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/cli.js CHANGED
@@ -3,10 +3,10 @@
3
3
 
4
4
  var cjs_js = require('./cjs.js');
5
5
  var process$1 = require('process');
6
- var t = require('minimist');
6
+ var a = require('minimist');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
- var t__default = /*#__PURE__*/_interopDefault(t);
10
+ var a__default = /*#__PURE__*/_interopDefault(a);
11
11
 
12
- cjs_js.e(t__default.default(process$1.argv.slice(1),{alias:{config:"c",input:"i",output:"o",build:"b",watch:"w",upload:"u",download:"d",theme:"t",help:"h",spawn:"s",filter:"f",delete:"del"},default:{cwd:process.cwd(),config:".",input:"source",cli:!0,dev:!0,prod:!1,import:!1,export:!1,build:!1,watch:!1,upload:!1,download:!1,terse:!1,hot:!1,help:!1,interactive:!1,script:!1,style:!1,svg:!1,image:!1,metafields:!1,pages:!1,redirects:!1,clean:!1,silent:!1,force:!1,setup:!1,strap:!1},boolean:["build","watch","download","upload","import","export","hot","terse","help","interactive","dev","prod","metafields","pages","redirects","clean","silent","pull","force","test","vsc","strap","script","style","svg","image"],string:["input","output","config","theme","spawn","del","bump","filter","strap"]})).catch(cjs_js.a.throws);
12
+ cjs_js.e(a__default.default(process$1.argv.slice(1),{alias:{config:"c",input:"i",output:"o",build:"b",watch:"w",upload:"u",download:"d",theme:"t",help:"h",spawn:"s",filter:"f",delete:"del"},default:{cwd:process.cwd(),config:".",input:"source",cli:!0,dev:!0,prod:!1,import:!1,export:!1,build:!1,watch:!1,upload:!1,download:!1,terse:!1,hot:!1,help:!1,interactive:!1,views:!1,script:!1,style:!1,svg:!1,image:!1,metafields:!1,pages:!1,redirects:!1,clean:!1,silent:!1,force:!1,setup:!1,strap:!1},boolean:["build","watch","download","upload","import","export","hot","terse","help","interactive","dev","prod","metafields","pages","redirects","clean","silent","pull","force","test","vsc","strap","views","script","style","svg","image"],string:["input","output","config","theme","spawn","del","bump","filter","strap"]})).catch(cjs_js.a.throws);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@syncify/cli",
3
3
  "description": "The next generation build tool for Shopify theme development.",
4
- "version": "0.2.0-beta",
4
+ "version": "0.2.2-beta",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/panoply/syncify",
7
7
  "bugs": "https://github.com/panoply/syncify/issues",
package/types/cli.d.ts CHANGED
@@ -468,6 +468,20 @@ export interface Commands {
468
468
  * ```
469
469
  */
470
470
  bump?: string;
471
+ /**
472
+ * Runs view transforms only (i.e: `.liquid` and `.json` files)
473
+ * ---
474
+ *
475
+ * Example:
476
+ *
477
+ * ```bash
478
+ * $ syncify --views # executes build
479
+ * $ syncify -w --views # executes in watch mode
480
+ * $ syncify --views --prod # executes build with minify
481
+ * $ syncify --views --terse # executes build with minify
482
+ * ```
483
+ */
484
+ views?: boolean;
471
485
  /**
472
486
  * Runs the script transform only
473
487
  * ---
@@ -478,7 +492,7 @@ export interface Commands {
478
492
  * $ syncify --script # executes build
479
493
  * $ syncify -w --script # executes in watch mode
480
494
  * $ syncify --script --prod # executes build with minify
481
- * $ syncify --script --minify # executes build with minify
495
+ * $ syncify --script --terse # executes build with minify
482
496
  * ```
483
497
  */
484
498
  script?: boolean;
@@ -492,7 +506,7 @@ export interface Commands {
492
506
  * $ syncify --style # executes build
493
507
  * $ syncify -w --style # executes in watch mode
494
508
  * $ syncify --style --prod # executes build with minify
495
- * $ syncify --style --minify # executes build with minify
509
+ * $ syncify --style --terse # executes build with minify
496
510
  * ```
497
511
  */
498
512
  style?: boolean;
@@ -506,7 +520,7 @@ export interface Commands {
506
520
  * $ syncify --svg # executes build
507
521
  * $ syncify -w --svg # executes in watch mode
508
522
  * $ syncify --svg --prod # executes build with minify
509
- * $ syncify --svg --minify # executes build with minify
523
+ * $ syncify --svg --terse # executes build with minify
510
524
  * ```
511
525
  */
512
526
  svg?: boolean;
@@ -520,7 +534,7 @@ export interface Commands {
520
534
  * $ syncify --image # executes build
521
535
  * $ syncify -w --image # executes in watch mode
522
536
  * $ syncify --image --prod # executes build with minify
523
- * $ syncify --image --minify # executes build with minify
537
+ * $ syncify --image --terse # executes build with minify
524
538
  * ```
525
539
  */
526
540
  image?: boolean;
@@ -2,7 +2,14 @@
2
2
  /* LIVE RELOADS */
3
3
  /* -------------------------------------------- */
4
4
 
5
+ import type { Server, WebSocket } from 'ws';
6
+ import type { IncomingMessage } from 'http';
7
+
5
8
  export interface WSS {
9
+ /**
10
+ * The `wss` instance
11
+ */
12
+ get http(): Server<typeof WebSocket, typeof IncomingMessage>
6
13
  /**
7
14
  * Hot Socket for `<script>` tags
8
15
  */
@@ -272,6 +272,10 @@ export interface Modes {
272
272
  * Invoke HOT reloads, `--hot`
273
273
  */
274
274
  hot: boolean;
275
+ /**
276
+ * Run the views transform, `--views`
277
+ */
278
+ views: boolean;
275
279
  /**
276
280
  * Run the style transform, `--style`
277
281
  */