@shopify/cli 0.5.1 → 0.10.0

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,18 +1,53 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @shopify/cli-kit@0.10.0
9
+
10
+ ## 0.8.0
11
+
12
+ ### Minor Changes
13
+
14
+ - b07c608: Rename @shopify/core to @shopify/cli-kit and finish up the create-app workflow
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [b07c608]
19
+ - @shopify/cli-kit@0.8.0
20
+
21
+ ## 0.6.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 7b69661: Remove the @shopify/support package
26
+
27
+ ## 0.5.2
28
+
29
+ ### Patch Changes
30
+
31
+ - Add @shopify/support and fix dependencies' setup
32
+ - Updated dependencies
33
+ - @shopify/app@0.5.2
34
+ - @shopify/cli-kit@0.5.2
35
+ - @shopify/support@0.5.2
36
+ - @shopify/theme@0.5.2
37
+
3
38
  ## 0.5.1
4
39
 
5
40
  ### Patch Changes
6
41
 
7
42
  - Updated dependencies
8
- - @shopify/cli-configs@0.6.0
43
+ - @shopify/configs@0.6.0
9
44
 
10
45
  ## 0.5.0
11
46
 
12
47
  ### Patch Changes
13
48
 
14
49
  - Updated dependencies
15
- - @shopify/cli-app@0.5.0
50
+ - @shopify/@0.5.0
16
51
 
17
52
  ## 0.4.0
18
53
 
@@ -29,9 +64,9 @@
29
64
  ### Patch Changes
30
65
 
31
66
  - Updated dependencies
32
- - @shopify/cli-theme@0.3.0
33
- - @shopify/cli-app@0.3.0
34
- - @shopify/cli-core@0.3.0
67
+ - @shopify/theme@0.3.0
68
+ - @shopify/@0.3.0
69
+ - @shopify/cli-kit@0.3.0
35
70
  - @shopify/cli-support@0.3.0
36
71
 
37
72
  ## 0.2.0
@@ -43,7 +78,7 @@
43
78
  ### Patch Changes
44
79
 
45
80
  - Updated dependencies
46
- - @shopify/cli-app@0.2.0
47
- - @shopify/cli-core@0.2.0
81
+ - @shopify/@0.2.0
82
+ - @shopify/cli-kit@0.2.0
48
83
  - @shopify/cli-support@0.2.0
49
- - @shopify/cli-theme@0.2.0
84
+ - @shopify/theme@0.2.0
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run, flush, Errors, settings } from '@oclif/core';
4
+ import { exec, execSync } from "child_process";
5
+ import path from 'path';
6
+ import { fileURLToPath } from 'url';
7
+
8
+ console.log("Bundling @shopify/cli-kit and @shopify/cli");
9
+ execSync("yarn build", {cwd: path.join(path.dirname(fileURLToPath(import.meta.url)), "../../cli-kit"), stdio: 'ignore'})
10
+ execSync("yarn build", {cwd: path.join(path.dirname(fileURLToPath(import.meta.url)), ".."), stdio: 'ignore'})
11
+
12
+ settings.debug = true;
13
+
14
+ // Start the CLI
15
+ run(void 0, import.meta.url).then(flush).catch(Errors.handle)
@@ -1,3 +1,3 @@
1
1
  @echo off
2
2
 
3
- node "%~dp0\shopify-run" %*
3
+ node "%~dp0\shopify-run.js" %*
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const oclif = require('@oclif/core')
4
- const Bugsnag = require('@bugsnag/js')
3
+ import { run, flush, Errors } from '@oclif/core';
4
+ import Bugsnag from "@bugsnag/js";
5
5
 
6
6
  // Set up error tracking
7
7
  Bugsnag.start({apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null})
8
8
 
9
9
  // Start the CLI
10
- oclif.run().then(require('@oclif/core/flush')).catch((error) => {
10
+ run(void 0, import.meta.url).then(flush).catch((error) => {
11
11
  return new Promise((resolve, reject) => {
12
12
  Bugsnag.notify(error, null, resolve);
13
- }).then(oclif.Errors.handle(error));
13
+ }).then(Errors.handle(error));
14
14
  })
15
+
@@ -0,0 +1 @@
1
+ import{Command as o}from"@oclif/core";class a extends o{async run(){}}a.description="Build a block or an app";export{a as default};
@@ -0,0 +1 @@
1
+ import{Command as o}from"@oclif/core";class n extends o{async run(){}}n.description="Connect the local app to an app on Shopify";export{n as default};
@@ -0,0 +1 @@
1
+ import{Command as e}from"@oclif/core";class a extends e{async run(){}}a.description="Develop a block or an app";export{a as default};
@@ -0,0 +1 @@
1
+ import{Command as a}from"@oclif/core";class s extends a{async run(){}}s.description="Push an app to Shopify";export{s as default};
@@ -0,0 +1 @@
1
+ import{Command as s}from"@oclif/core";class e extends s{async run(){}}e.description="Run the tests for a given block or app";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as t}from"@oclif/core";class e extends t{async run(){}}e.description="Validate the theme";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as t}from"@oclif/core";class e extends t{async run(){}}e.description="Delete a remote theme";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as t}from"@oclif/core";class e extends t{async run(){}}e.description="Create a new theme";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as r}from"@oclif/core";class e extends r{async run(){}}e.description="Start a Language Server Protocol server.";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as e}from"@oclif/core";class a extends e{async run(){}}a.description="Package a theme to manually upload it to the Online Store.";export{a as default};
@@ -0,0 +1 @@
1
+ import{Command as t}from"@oclif/core";class e extends t{async run(){}}e.description="Set a remote theme as the live theme.";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as o}from"@oclif/core";class e extends o{async run(){}}e.description="Download your remote theme files locally.";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as o}from"@oclif/core";class e extends o{async run(){}}e.description="Uploads your local theme files to the connected store, overwriting the remote version if specified.";export{e as default};
@@ -0,0 +1 @@
1
+ import{Command as t}from"@oclif/core";class e extends t{async run(){}}e.description="Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time.";export{e as default};
package/dist/index.js CHANGED
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.run = void 0;
4
- // CLI
5
- var core_1 = require("@oclif/core");
6
- Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBTTtBQUNOLG9DQUFnQztBQUF4QiwyRkFBQSxHQUFHLE9BQUEifQ==
1
+ import{run as e}from"@oclif/core";export{e as run};
package/package.json CHANGED
@@ -1,17 +1,22 @@
1
1
  {
2
2
  "name": "@shopify/cli",
3
- "version": "0.5.1",
3
+ "version": "0.10.0",
4
4
  "private": false,
5
5
  "description": "A CLI tool to build for the Shopify platform",
6
+ "type": "module",
7
+ "main": "src/index.js",
8
+ "module": "src/index.js",
9
+ "exports": {
10
+ ".": "./src/index.js"
11
+ },
6
12
  "keywords": [
7
13
  "shopify",
8
14
  "shopify-cli",
9
15
  "shopify-partners"
10
16
  ],
11
17
  "license": "MIT",
12
- "types": "dist/index.d.ts",
13
18
  "bin": {
14
- "shopify": "./bin/shopify-run"
19
+ "shopify": "./bin/shopify-run.js"
15
20
  },
16
21
  "files": [
17
22
  "/bin",
@@ -24,14 +29,14 @@
24
29
  "@shopify:registry": "https://registry.npmjs.org"
25
30
  },
26
31
  "scripts": {
27
- "build": "shx rm -rf dist && tsc -b",
28
- "build:watch": "tsc -b --watch",
29
- "prepublishOnly": "yarn run build",
32
+ "clean": "shx rm -rf dist",
33
+ "build": "shx rm -rf dist && rollup -c",
34
+ "prepublishOnly": "cross-env NODE_ENV=production yarn run build",
30
35
  "lint": "prettier -c src/** && eslint src/**",
31
36
  "lint:fix": "prettier src/** && eslint src/** --fix",
32
- "test": "jest",
33
- "test:watch": "jest --watch",
34
- "tsc": "tsc -b --incremental"
37
+ "test": "shx rm -rf dist && vitest run",
38
+ "test:watch": "vitest watch",
39
+ "tsc": "tsc -b"
35
40
  },
36
41
  "eslintConfig": {
37
42
  "extends": [
@@ -40,17 +45,12 @@
40
45
  },
41
46
  "dependencies": {
42
47
  "@bugsnag/js": "^7.14.1",
43
- "@oclif/core": "^1",
44
- "@oclif/plugin-help": "^5",
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"
48
+ "@oclif/core": "0.5.10",
49
+ "@shopify/cli-kit": "0.10.0"
49
50
  },
50
- "devDependencies": {},
51
51
  "engine-strict": true,
52
52
  "engines": {
53
- "node": ">=12.0.0"
53
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
54
54
  },
55
55
  "os": [
56
56
  "darwin",
@@ -59,20 +59,7 @@
59
59
  ],
60
60
  "oclif": {
61
61
  "bin": "shopify",
62
- "helpClass": "./src/help",
63
- "plugins": [
64
- "@oclif/plugin-help",
65
- "@shopify/cli-theme",
66
- "@shopify/cli-app"
67
- ],
68
- "topicSeparator": " ",
69
- "topics": {
70
- "theme": {
71
- "description": "Commands for creating, building, and publishing themes"
72
- },
73
- "app": {
74
- "description": "Commands for creating, building, and publishing app"
75
- }
76
- }
62
+ "commands": "dist/commands",
63
+ "plugins": []
77
64
  }
78
65
  }
package/bin/shopify-dev DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const oclif = require('@oclif/core')
4
-
5
- const path = require('path')
6
- const project = path.join(__dirname, '..', 'tsconfig.json')
7
-
8
- // In dev mode -> use ts-node and dev plugins
9
- process.env.NODE_ENV = 'development'
10
-
11
- require('ts-node').register({project})
12
-
13
- // In dev mode, always show stack traces
14
- oclif.settings.debug = true;
15
-
16
- // Start the CLI
17
- oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/dist/help.d.ts DELETED
@@ -1,5 +0,0 @@
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 DELETED
@@ -1,13 +0,0 @@
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.d.ts DELETED
@@ -1 +0,0 @@
1
- export { run } from '@oclif/core';