@shopify/cli 0.2.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,41 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @shopify/cli-configs@0.6.0
9
+
10
+ ## 0.5.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @shopify/cli-app@0.5.0
16
+
17
+ ## 0.4.0
18
+
19
+ ### Minor Changes
20
+
21
+ - ac955a9: Remove the Bugsnag setup from the CLI used for development purposes
22
+
23
+ ## 0.3.0
24
+
25
+ ### Minor Changes
26
+
27
+ - Draft the CLI interface
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+ - @shopify/cli-theme@0.3.0
33
+ - @shopify/cli-app@0.3.0
34
+ - @shopify/cli-core@0.3.0
35
+ - @shopify/cli-support@0.3.0
36
+
3
37
  ## 0.2.0
38
+
4
39
  ### Minor Changes
5
40
 
6
41
  - Move from Lerna to changeset
package/bin/shopify-dev CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const oclif = require('@oclif/core')
4
- const Bugsnag = require('@bugsnag/js')
5
4
 
6
5
  const path = require('path')
7
6
  const project = path.join(__dirname, '..', 'tsconfig.json')
@@ -15,8 +14,4 @@ require('ts-node').register({project})
15
14
  oclif.settings.debug = true;
16
15
 
17
16
  // Start the CLI
18
- oclif.run().then(oclif.flush).catch((error) => {
19
- return new Promise((resolve, reject) => {
20
- Bugsnag.notify(error, null, resolve);
21
- }).then(oclif.Errors.handle(error));
22
- })
17
+ oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/dist/help.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { Interfaces, HelpBase } from '@oclif/core';
2
+ export default class CustomHelp extends HelpBase {
3
+ showHelp(argv: string[]): Promise<void>;
4
+ showCommandHelp(command: Interfaces.Command, topics: Interfaces.Topic[]): Promise<void>;
5
+ }
package/dist/help.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@oclif/core");
4
+ class CustomHelp extends core_1.HelpBase {
5
+ async showHelp(argv) {
6
+ console.log(`This will be displayed in multi-command CLIs: ${argv}`);
7
+ }
8
+ async showCommandHelp(command, topics) {
9
+ console.log(`This will be displayed in single-command CLIs: ${command} ${topics}`);
10
+ }
11
+ }
12
+ exports.default = CustomHelp;
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9oZWxwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsc0NBQWlEO0FBRWpELE1BQXFCLFVBQVcsU0FBUSxlQUFRO0lBQzlDLEtBQUssQ0FBQyxRQUFRLENBQUMsSUFBYztRQUMzQixPQUFPLENBQUMsR0FBRyxDQUFDLGlEQUFpRCxJQUFJLEVBQUUsQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7SUFFRCxLQUFLLENBQUMsZUFBZSxDQUNuQixPQUEyQixFQUMzQixNQUEwQjtRQUUxQixPQUFPLENBQUMsR0FBRyxDQUNULGtEQUFrRCxPQUFPLElBQUksTUFBTSxFQUFFLENBQ3RFLENBQUM7SUFDSixDQUFDO0NBQ0Y7QUFiRCw2QkFhQyJ9
package/dist/index.js CHANGED
@@ -4,4 +4,4 @@ exports.run = void 0;
4
4
  // CLI
5
5
  var core_1 = require("@oclif/core");
6
6
  Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
7
- //# sourceMappingURL=index.js.map
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBTTtBQUNOLG9DQUFnQztBQUF4QiwyRkFBQSxHQUFHLE9BQUEifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/cli",
3
- "version": "0.2.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "A CLI tool to build for the Shopify platform",
6
6
  "keywords": [
@@ -11,7 +11,7 @@
11
11
  "license": "MIT",
12
12
  "types": "dist/index.d.ts",
13
13
  "bin": {
14
- "shopify": "./bin/run"
14
+ "shopify": "./bin/shopify-run"
15
15
  },
16
16
  "files": [
17
17
  "/bin",
@@ -42,18 +42,15 @@
42
42
  "@bugsnag/js": "^7.14.1",
43
43
  "@oclif/core": "^1",
44
44
  "@oclif/plugin-help": "^5",
45
- "@oclif/plugin-plugins": "^2.0.1",
46
- "@shopify/cli-app": "^0.2.0",
47
- "@shopify/cli-core": "^0.2.0",
48
- "@shopify/cli-support": "^0.2.0",
49
- "@shopify/cli-theme": "^0.2.0"
50
- },
51
- "devDependencies": {
52
- "@oclif/test": "^2"
45
+ "@shopify/cli-app": "0.5.0",
46
+ "@shopify/cli-configs": "0.6.0",
47
+ "@shopify/cli-core": "0.3.0",
48
+ "@shopify/cli-theme": "0.3.0"
53
49
  },
50
+ "devDependencies": {},
54
51
  "engine-strict": true,
55
52
  "engines": {
56
- "node": "^12 || ^14 || ^16"
53
+ "node": ">=12.0.0"
57
54
  },
58
55
  "os": [
59
56
  "darwin",
@@ -62,15 +59,19 @@
62
59
  ],
63
60
  "oclif": {
64
61
  "bin": "shopify",
65
- "commands": "./dist/commands",
62
+ "helpClass": "./src/help",
66
63
  "plugins": [
67
64
  "@oclif/plugin-help",
68
- "@oclif/plugin-plugins"
65
+ "@shopify/cli-theme",
66
+ "@shopify/cli-app"
69
67
  ],
70
68
  "topicSeparator": " ",
71
69
  "topics": {
72
- "hello": {
73
- "description": "Say hello to the world and others"
70
+ "theme": {
71
+ "description": "Commands for creating, building, and publishing themes"
72
+ },
73
+ "app": {
74
+ "description": "Commands for creating, building, and publishing app"
74
75
  }
75
76
  }
76
77
  }
@@ -1,5 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class Hello extends Command {
3
- static description: string;
4
- run(): Promise<void>;
5
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- class Hello extends core_1.Command {
5
- async run() {
6
- throw new Error('command error');
7
- }
8
- }
9
- exports.default = Hello;
10
- Hello.description = 'Say hello';
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/hello/index.ts"],"names":[],"mappings":";;AAAA,sCAAoC;AAEpC,MAAqB,KAAM,SAAQ,cAAO;IAGxC,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IACnC,CAAC;;AALH,wBAMC;AALQ,iBAAW,GAAG,WAAW,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class World extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static flags: {};
6
- static args: never[];
7
- run(): Promise<void>;
8
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- class World extends core_1.Command {
5
- async run() {
6
- this.log('hello world! (./src/commands/hello/world.ts)');
7
- }
8
- }
9
- exports.default = World;
10
- World.description = 'Say hello world';
11
- World.examples = [
12
- `$ oex hello world
13
- hello world! (./src/commands/hello/world.ts)
14
- `,
15
- ];
16
- World.flags = {};
17
- World.args = [];
18
- //# sourceMappingURL=world.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"world.js","sourceRoot":"","sources":["../../../src/commands/hello/world.ts"],"names":[],"mappings":";;AAAA,sCAAoC;AAEpC,MAAqB,KAAM,SAAQ,cAAO;IAaxC,KAAK,CAAC,GAAG;QACP,IAAI,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAC3D,CAAC;;AAfH,wBAgBC;AAfQ,iBAAW,GAAG,iBAAiB,CAAC;AAEhC,cAAQ,GAAG;IAChB;;CAEH;CACE,CAAC;AAEK,WAAK,GAAG,EAAE,CAAC;AAEX,UAAI,GAAG,EAAE,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,MAAM;AACN,oCAAgC;AAAxB,2FAAA,GAAG,OAAA"}