@swell/cli 0.1.1 → 1.0.0-alpha

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/bin/swell.js CHANGED
@@ -1,26 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- export { c as commands, b as commandsArgs, s as default } from './swell-2acb6c0f.js';
4
- import 'assert';
5
- import 'child_process';
6
- import 'async_hooks';
7
- import 'util';
8
- import 'process';
9
- import 'os';
10
- import 'tty';
11
- import 'path';
12
- import 'fs';
13
- import 'stream';
14
- import 'string_decoder';
15
- import 'buffer';
16
- import 'events';
17
- import 'url';
18
- import 'http';
19
- import 'https';
20
- import 'zlib';
21
- import 'stream/web';
22
- import 'net';
23
- import 'worker_threads';
24
- import 'readline';
25
- import 'constants';
26
- import 'crypto';
3
+ export { s as default } from './swell-cfd63c19.js';
4
+ import 'node:assert';
5
+ import 'node:child_process';
6
+ import 'node:async_hooks';
7
+ import 'node:util';
8
+ import 'node:process';
9
+ import 'node:os';
10
+ import 'node:tty';
11
+ import 'node:fs';
12
+ import 'node:path';
13
+ import 'node:stream';
14
+ import 'node:string_decoder';
15
+ import 'node:buffer';
16
+ import 'node:events';
17
+ import 'node:url';
18
+ import 'node:http';
19
+ import 'node:https';
20
+ import 'node:zlib';
21
+ import 'node:net';
22
+ import 'node:readline';
23
+ import 'node:constants';
24
+ import 'node:crypto';
package/dist/man/swell.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH "SWELL" "1" "December 2022" "0.1.1"
1
+ .TH "SWELL" "1" "May 2023" "1.0.0-alpha"
2
2
  .SH "NAME"
3
3
  \fBswell\fR \- CLI to the Swell platform
4
4
  .TS
@@ -12,7 +12,7 @@ T}
12
12
  .TE
13
13
  .SH SYNOPSIS
14
14
  .P
15
- \fBswell [namespace] [command] [options]\fP
15
+ \fBswell [command] [options]\fP
16
16
  .P
17
17
  \fBswell [\-\-version] [\-V]\fP
18
18
  .SH DESCRIPTION
@@ -20,7 +20,7 @@ T}
20
20
  A toolbelt for Swell app development\.
21
21
  .SH EXAMPLES
22
22
  .P
23
- See README\.md for more examples
23
+ See README\.md for more examples\.
24
24
  .RS 2
25
25
  .nf
26
26
  # Install the cli globally
@@ -32,23 +32,23 @@ swell login
32
32
  # Push a content model
33
33
  swell model push \-\-content \-\-f models/page\.json
34
34
 
35
- # Pull storefront settings, keeps our version of the file in case of conflicts (needs git)
36
- swell storefront settings pull settings \-f settings/store\.json \-\-strategy ours
35
+ # Pull storefront settings
36
+ swell storefronts pull \-\-id P5OzfzLD \-f settings/store\.json
37
37
  .fi
38
38
  .RE
39
39
  .SH OPTIONS
40
40
  .P
41
41
  \fB\-\-version\fP, \fB\-V\fP
42
42
  .br
43
- Display the version of the Swell CLI
43
+ Display the version of the Swell CLI\.
44
44
  .P
45
45
  \fB\-\-verbose\fP, \fB\-v\fP
46
46
  .br
47
- Enable verbose mode
47
+ Enable verbose mode\.
48
48
  .P
49
49
  \fB\-\-quiet\fP, \fB\-q\fP
50
50
  .br
51
- Quiets the progress indicator and output of intermediary commands
51
+ Quiets the progress indicator and output of intermediary commands\.
52
52
  .P
53
53
  \fB\-\-yes\fP, \fB\-y\fP
54
54
  .br
@@ -56,32 +56,20 @@ Answers all confirmation questions with \fByes\fR\|\.
56
56
  .P
57
57
  \fB\-\-dry\-run\fP
58
58
  .br
59
- Dry runs requests that delete data, but doesn't run them
60
- .P
61
- \fB\-\-secret\-key\fP
62
- .br
63
- Enables ephemeral secret\-key based authentication for commands
59
+ Dry runs requests that delete data, but doesn't run them\.
64
60
  .SH COMMANDS
65
61
  .P
66
62
  \fBlogin\fP,
67
63
  .br
68
- Login to a store and stores the user session
64
+ Login as admin and store the session\.
69
65
  .P
70
66
  \fBmodel (push|pull)\fP
71
67
  .br
72
68
  Push or pull model definitions, including namespaced models (e\.g\. content models), abstract content models and content fields\.
73
69
  .P
74
- \fBsettings (push|pull)\fP
75
- .br
76
- Push or pull store settings (e\.g\. payments, shipping, etc\.\.\.)
77
- .P
78
- \fBstorefront settings (push|pull)\fP
79
- .br
80
- Push or pull storefront settings\. Scopes include \fBsettings\fP, \fBeditor\fP and \fBmenus\fP\|\.
81
- .P
82
- \fBstorefront ssh\-keys (list|add|delete)\fP
70
+ \fBstorefronts (push|pull)\fP
83
71
  .br
84
- Manage a user's SSH keys to a storefront\. Needs session authentication (\fBswell login\fP)\.
72
+ Push or pull storefront configuration data\. Types allowed are "editor", "menus" and "settings"
85
73
  .SH CONFIGURATION
86
74
  .P
87
75
  Your local configs will be saved at \fB~/\.swell\fP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "0.1.1",
3
+ "version": "1.0.0-alpha",
4
4
  "description": "Swell's command line interface/utility",
5
5
  "keywords": [
6
6
  "swell",
@@ -21,41 +21,43 @@
21
21
  "dist/man/swell.1"
22
22
  ],
23
23
  "watch": {
24
- "prepack": "{src,tests}/**/*.js"
24
+ "prepack": "src/**/*.js"
25
25
  },
26
26
  "scripts": {
27
27
  "watch": "npm-watch",
28
28
  "prepack": "rimraf \"./dist/bin/!(swell).js\" && rollup -c && npm run man",
29
29
  "man": "mkdir -p dist/man && marked-man MAN_PAGE.md > dist/man/swell.1",
30
- "test": "cross-env NODE_ENV=test uvu tests"
30
+ "test": "cross-env NODE_OPTIONS=--loader=testdouble NODE_ENV=test uvu tests"
31
31
  },
32
32
  "files": [
33
33
  "dist"
34
34
  ],
35
35
  "devDependencies": {
36
- "@rollup/plugin-commonjs": "19.0.0",
37
- "@rollup/plugin-inject": "4.0.2",
38
- "@rollup/plugin-json": "4.1.0",
39
- "@rollup/plugin-node-resolve": "13.0.0",
40
- "@rollup/plugin-replace": "2.4.2",
36
+ "@rollup/plugin-commonjs": "24.1.0",
37
+ "@rollup/plugin-inject": "5.0.3",
38
+ "@rollup/plugin-json": "6.0.0",
39
+ "@rollup/plugin-node-resolve": "15.0.2",
40
+ "@rollup/plugin-replace": "5.0.2",
41
41
  "arg": "5.0.2",
42
42
  "case-anything": "2.1.10",
43
- "chalk": "5.1.2",
43
+ "chalk": "^5.2.0",
44
44
  "configstore": "6.0.0",
45
45
  "cross-env": "7.0.3",
46
- "deepmerge": "4.2.2",
46
+ "deepmerge": "^4.3.1",
47
47
  "list-it": "1.3.10",
48
- "marked": "4.2.3",
49
- "marked-man": "1.3.0",
50
- "nock": "13.2.9",
48
+ "marked": "^4.3.0",
49
+ "marked-man": "^1.3.3",
50
+ "nock": "13.3.1",
51
51
  "npm-watch": "0.11.0",
52
- "ora": "6.1.2",
53
- "rimraf": "3.0.2",
54
- "rollup": "2.79.1",
55
- "rollup-plugin-node-externals": "4.1.1",
52
+ "ora": "6.3.0",
53
+ "rimraf": "^5.0.0",
54
+ "rollup": "^3.21.3",
55
+ "rollup-plugin-glob-import": "^0.5.0",
56
+ "rollup-plugin-node-externals": "5.1.2",
56
57
  "strip-ansi": "7.0.1",
58
+ "testdouble": "3.17.2",
57
59
  "uvu": "0.5.6",
58
- "zx": "7.1.1"
60
+ "zx": "^7.2.2"
59
61
  },
60
62
  "engines": {
61
63
  "node": ">= 16.18.1"