@shopify/cli 0.5.2 → 0.12.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 +36 -3
- package/bin/dev +10 -0
- package/bin/shopify-run.cmd +1 -1
- package/bin/shopify-run.js +5 -0
- package/dist/commands/app/build.js +1 -0
- package/dist/commands/app/connect.js +1 -0
- package/dist/commands/app/dev.js +1 -0
- package/dist/commands/app/push.js +1 -0
- package/dist/commands/app/test.js +1 -0
- package/dist/commands/theme/check.js +1 -0
- package/dist/commands/theme/delete.js +1 -0
- package/dist/commands/theme/init.js +1 -0
- package/dist/commands/theme/language-server.js +1 -0
- package/dist/commands/theme/package.js +1 -0
- package/dist/commands/theme/publish.js +1 -0
- package/dist/commands/theme/pull.js +1 -0
- package/dist/commands/theme/push.js +1 -0
- package/dist/commands/theme/serve.js +1 -0
- package/dist/index.js +1 -7
- package/package.json +20 -33
- package/bin/shopify-dev +0 -17
- package/bin/shopify-dev.cmd +0 -3
- package/bin/shopify-run +0 -14
- package/dist/help.d.ts +0 -5
- package/dist/help.js +0 -13
- package/dist/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @shopify/cli
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [cb12e51]
|
|
8
|
+
- Updated dependencies [a999af0]
|
|
9
|
+
- Updated dependencies [bed0951]
|
|
10
|
+
- @shopify/cli-kit@0.12.0
|
|
11
|
+
|
|
12
|
+
## 0.10.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @shopify/cli-kit@0.10.0
|
|
18
|
+
|
|
19
|
+
## 0.8.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- b07c608: Rename @shopify/core to @shopify/cli-kit and finish up the create-app workflow
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [b07c608]
|
|
28
|
+
- @shopify/cli-kit@0.8.0
|
|
29
|
+
|
|
30
|
+
## 0.6.0
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- 7b69661: Remove the @shopify/support package
|
|
35
|
+
|
|
3
36
|
## 0.5.2
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -7,7 +40,7 @@
|
|
|
7
40
|
- Add @shopify/support and fix dependencies' setup
|
|
8
41
|
- Updated dependencies
|
|
9
42
|
- @shopify/app@0.5.2
|
|
10
|
-
- @shopify/
|
|
43
|
+
- @shopify/cli-kit@0.5.2
|
|
11
44
|
- @shopify/support@0.5.2
|
|
12
45
|
- @shopify/theme@0.5.2
|
|
13
46
|
|
|
@@ -42,7 +75,7 @@
|
|
|
42
75
|
- Updated dependencies
|
|
43
76
|
- @shopify/theme@0.3.0
|
|
44
77
|
- @shopify/@0.3.0
|
|
45
|
-
- @shopify/
|
|
78
|
+
- @shopify/cli-kit@0.3.0
|
|
46
79
|
- @shopify/cli-support@0.3.0
|
|
47
80
|
|
|
48
81
|
## 0.2.0
|
|
@@ -55,6 +88,6 @@
|
|
|
55
88
|
|
|
56
89
|
- Updated dependencies
|
|
57
90
|
- @shopify/@0.2.0
|
|
58
|
-
- @shopify/
|
|
91
|
+
- @shopify/cli-kit@0.2.0
|
|
59
92
|
- @shopify/cli-support@0.2.0
|
|
60
93
|
- @shopify/theme@0.2.0
|
package/bin/dev
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
DIRECTORY=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
5
|
+
|
|
6
|
+
echo "Building..."
|
|
7
|
+
yarn --cwd $DIRECTORY/../cli-kit build &> /dev/null
|
|
8
|
+
yarn --cwd $DIRECTORY/.. build &> /dev/null
|
|
9
|
+
|
|
10
|
+
$DIRECTORY/shopify-run.js $@
|
package/bin/shopify-run.cmd
CHANGED
|
@@ -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
|
-
"
|
|
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{settings as a,run as s,flush as u,Errors as l}from"@oclif/core";import t from"@bugsnag/js";import{environment as d,error as f}from"@shopify/cli-kit";function m(){d.isDebug()?a.debug=!0:t.start({apiKey:"9e1e6889176fd0c795d5c659225e0fae",logger:null}),s(void 0,import.meta.url).then(u).catch(e=>{const r=new Promise(n=>{t.notify(e,void 0,n),n(e)}),o=l.handle,i=f.handler;return r.then(i).then(o)})}export{m as default};
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.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
|
-
"
|
|
28
|
-
"build
|
|
29
|
-
"
|
|
32
|
+
"clean": "shx rm -rf dist",
|
|
33
|
+
"build": "shx rm -rf dist && rollup -c",
|
|
34
|
+
"prepack": "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": "
|
|
33
|
-
"test:watch": "
|
|
34
|
-
"tsc": "tsc -b
|
|
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,39 +45,21 @@
|
|
|
40
45
|
},
|
|
41
46
|
"dependencies": {
|
|
42
47
|
"@bugsnag/js": "^7.14.1",
|
|
43
|
-
"@oclif/core": "
|
|
44
|
-
"@
|
|
45
|
-
"@shopify/app": "0.5.2",
|
|
46
|
-
"@shopify/core": "0.5.2",
|
|
47
|
-
"@shopify/theme": "0.5.2",
|
|
48
|
-
"@shopify/support": "0.5.2"
|
|
48
|
+
"@oclif/core": "0.5.10",
|
|
49
|
+
"@shopify/cli-kit": "0.12.0"
|
|
49
50
|
},
|
|
50
|
-
"devDependencies": {},
|
|
51
51
|
"engine-strict": true,
|
|
52
52
|
"engines": {
|
|
53
|
-
"node": "
|
|
53
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
54
54
|
},
|
|
55
55
|
"os": [
|
|
56
56
|
"darwin",
|
|
57
57
|
"linux",
|
|
58
58
|
"win32"
|
|
59
59
|
],
|
|
60
|
-
"
|
|
60
|
+
"oclif": {
|
|
61
61
|
"bin": "shopify",
|
|
62
|
-
"
|
|
63
|
-
"plugins": [
|
|
64
|
-
"@oclif/plugin-help",
|
|
65
|
-
"@shopify/theme",
|
|
66
|
-
"@shopify/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/bin/shopify-dev.cmd
DELETED
package/bin/shopify-run
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const oclif = require('@oclif/core')
|
|
4
|
-
const Bugsnag = require('@bugsnag/js')
|
|
5
|
-
|
|
6
|
-
// Set up error tracking
|
|
7
|
-
Bugsnag.start({apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null})
|
|
8
|
-
|
|
9
|
-
// Start the CLI
|
|
10
|
-
oclif.run().then(require('@oclif/core/flush')).catch((error) => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
Bugsnag.notify(error, null, resolve);
|
|
13
|
-
}).then(oclif.Errors.handle(error));
|
|
14
|
-
})
|
package/dist/help.d.ts
DELETED
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';
|