@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/cjs.js +95 -93
- package/dist/cli.js +3 -3
- package/package.json +1 -1
- package/types/cli.d.ts +18 -4
- package/types/internal/hot.d.ts +7 -0
- package/types/internal/index.d.ts +4 -0
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
|
6
|
+
var a = require('minimist');
|
7
7
|
|
8
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
9
9
|
|
10
|
-
var
|
10
|
+
var a__default = /*#__PURE__*/_interopDefault(a);
|
11
11
|
|
12
|
-
cjs_js.e(
|
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.
|
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 --
|
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 --
|
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 --
|
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 --
|
537
|
+
* $ syncify --image --terse # executes build with minify
|
524
538
|
* ```
|
525
539
|
*/
|
526
540
|
image?: boolean;
|
package/types/internal/hot.d.ts
CHANGED
@@ -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
|
*/
|