@shopify/cli 0.5.0 → 0.8.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,11 +1,46 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b07c608: Rename @shopify/core to @shopify/cli-kit and finish up the create-app workflow
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b07c608]
12
+ - @shopify/cli-kit@0.8.0
13
+
14
+ ## 0.6.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 7b69661: Remove the @shopify/support package
19
+
20
+ ## 0.5.2
21
+
22
+ ### Patch Changes
23
+
24
+ - Add @shopify/support and fix dependencies' setup
25
+ - Updated dependencies
26
+ - @shopify/app@0.5.2
27
+ - @shopify/cli-kit@0.5.2
28
+ - @shopify/support@0.5.2
29
+ - @shopify/theme@0.5.2
30
+
31
+ ## 0.5.1
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies
36
+ - @shopify/configs@0.6.0
37
+
3
38
  ## 0.5.0
4
39
 
5
40
  ### Patch Changes
6
41
 
7
42
  - Updated dependencies
8
- - @shopify/cli-app@0.5.0
43
+ - @shopify/@0.5.0
9
44
 
10
45
  ## 0.4.0
11
46
 
@@ -22,9 +57,9 @@
22
57
  ### Patch Changes
23
58
 
24
59
  - Updated dependencies
25
- - @shopify/cli-theme@0.3.0
26
- - @shopify/cli-app@0.3.0
27
- - @shopify/cli-core@0.3.0
60
+ - @shopify/theme@0.3.0
61
+ - @shopify/@0.3.0
62
+ - @shopify/cli-kit@0.3.0
28
63
  - @shopify/cli-support@0.3.0
29
64
 
30
65
  ## 0.2.0
@@ -36,7 +71,7 @@
36
71
  ### Patch Changes
37
72
 
38
73
  - Updated dependencies
39
- - @shopify/cli-app@0.2.0
40
- - @shopify/cli-core@0.2.0
74
+ - @shopify/@0.2.0
75
+ - @shopify/cli-kit@0.2.0
41
76
  - @shopify/cli-support@0.2.0
42
- - @shopify/cli-theme@0.2.0
77
+ - @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.0",
3
+ "version": "0.8.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-core": "^0.3.0",
47
- "@shopify/cli-support": "^0.3.0",
48
- "@shopify/cli-theme": "^0.3.0"
48
+ "@oclif/core": "0.5.10",
49
+ "@shopify/cli-kit": "0.8.0"
49
50
  },
50
- "devDependencies": {},
51
51
  "engine-strict": true,
52
52
  "engines": {
53
- "node": "^12 || ^14 || ^16"
53
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
54
54
  },
55
55
  "os": [
56
56
  "darwin",
@@ -59,19 +59,7 @@
59
59
  ],
60
60
  "oclif": {
61
61
  "bin": "shopify",
62
- "plugins": [
63
- "@oclif/plugin-help",
64
- "@shopify/cli-theme",
65
- "@shopify/cli-app"
66
- ],
67
- "topicSeparator": " ",
68
- "topics": {
69
- "theme": {
70
- "description": "Commands for creating, building, and publishing themes"
71
- },
72
- "app": {
73
- "description": "Commands for creating, building, and publishing app"
74
- }
75
- }
62
+ "commands": "dist/commands",
63
+ "plugins": []
76
64
  }
77
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/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { run } from '@oclif/core';