@shopify/cli 0.1.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/LICENSE +10 -0
- package/bin/shopify-dev +17 -0
- package/bin/shopify-dev.cmd +3 -0
- package/bin/shopify-run +5 -0
- package/bin/shopify-run.cmd +3 -0
- package/dist/commands/hello/index.d.ts +14 -0
- package/dist/commands/hello/index.js +27 -0
- package/dist/commands/hello/world.d.ts +8 -0
- package/dist/commands/hello/world.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Copyright 2019-present, Shopify Inc.
|
|
2
|
+
|
|
3
|
+
Contains code from rack, Copyright (C) 2007-2019 Leah Neukirchen <http://leahneukirchen.org/infopage.html>
|
|
4
|
+
Contains code from rack-proxy, Copyright (c) 2013 Jacek Becela jacek.becela@gmail.com
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
|
+
|
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/bin/shopify-dev
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
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-run
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Hello extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
from: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
7
|
+
};
|
|
8
|
+
static args: {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
const { args, flags } = await this.parse(Hello);
|
|
7
|
+
this.log(`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = Hello;
|
|
11
|
+
Hello.description = 'Say hello';
|
|
12
|
+
Hello.examples = [
|
|
13
|
+
`$ oex hello friend --from oclif
|
|
14
|
+
hello friend from oclif! (./src/commands/hello/index.ts)
|
|
15
|
+
`,
|
|
16
|
+
];
|
|
17
|
+
Hello.flags = {
|
|
18
|
+
from: core_1.Flags.string({
|
|
19
|
+
char: 'f',
|
|
20
|
+
description: 'Whom is saying hello',
|
|
21
|
+
required: true,
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
24
|
+
Hello.args = [
|
|
25
|
+
{ name: 'person', description: 'Person to say hello to', required: true },
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbWFuZHMvaGVsbG8vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBMkM7QUFFM0MsTUFBcUIsS0FBTSxTQUFRLGNBQU87SUFxQnhDLEtBQUssQ0FBQyxHQUFHO1FBQ1AsTUFBTSxFQUFDLElBQUksRUFBRSxLQUFLLEVBQUMsR0FBRyxNQUFNLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUM7UUFFOUMsSUFBSSxDQUFDLEdBQUcsQ0FDTixTQUFTLElBQUksQ0FBQyxNQUFNLFNBQVMsS0FBSyxDQUFDLElBQUksbUNBQW1DLENBQzNFLENBQUM7SUFDSixDQUFDOztBQTNCSCx3QkE0QkM7QUEzQlEsaUJBQVcsR0FBRyxXQUFXLENBQUM7QUFFMUIsY0FBUSxHQUFHO0lBQ2hCOztDQUVIO0NBQ0UsQ0FBQztBQUVLLFdBQUssR0FBRztJQUNiLElBQUksRUFBRSxZQUFLLENBQUMsTUFBTSxDQUFDO1FBQ2pCLElBQUksRUFBRSxHQUFHO1FBQ1QsV0FBVyxFQUFFLHNCQUFzQjtRQUNuQyxRQUFRLEVBQUUsSUFBSTtLQUNmLENBQUM7Q0FDSCxDQUFDO0FBRUssVUFBSSxHQUFHO0lBQ1osRUFBQyxJQUFJLEVBQUUsUUFBUSxFQUFFLFdBQVcsRUFBRSx3QkFBd0IsRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFDO0NBQ3hFLENBQUMifQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
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=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ybGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbWFuZHMvaGVsbG8vd29ybGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBb0M7QUFFcEMsTUFBcUIsS0FBTSxTQUFRLGNBQU87SUFheEMsS0FBSyxDQUFDLEdBQUc7UUFDUCxJQUFJLENBQUMsR0FBRyxDQUFDLDhDQUE4QyxDQUFDLENBQUM7SUFDM0QsQ0FBQzs7QUFmSCx3QkFnQkM7QUFmUSxpQkFBVyxHQUFHLGlCQUFpQixDQUFDO0FBRWhDLGNBQVEsR0FBRztJQUNoQjs7Q0FFSDtDQUNFLENBQUM7QUFFSyxXQUFLLEdBQUcsRUFBRSxDQUFDO0FBRVgsVUFBSSxHQUFHLEVBQUUsQ0FBQyJ9
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = void 0;
|
|
4
|
+
var core_1 = require("@oclif/core");
|
|
5
|
+
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsb0NBQWdDO0FBQXhCLDJGQUFBLEdBQUcsT0FBQSJ9
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shopify/cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A CLI tool to build for the Shopify platform",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"shopify",
|
|
8
|
+
"shopify-cli",
|
|
9
|
+
"shopify-partners"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"bin": {
|
|
14
|
+
"shopify": "./bin/run"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"/bin",
|
|
18
|
+
"/dist",
|
|
19
|
+
"/npm-shrinkwrap.json",
|
|
20
|
+
"/oclif.manifest.json"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public",
|
|
24
|
+
"@shopify:registry": "https://registry.npmjs.org"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "shx rm -rf dist && tsc",
|
|
28
|
+
"build:watch": "tsc --watch",
|
|
29
|
+
"lint": "prettier -c src/** && eslint src/**",
|
|
30
|
+
"lint:fix": "prettier src/** && eslint src/** --fix",
|
|
31
|
+
"test": "jest",
|
|
32
|
+
"test:watch": "jest --watch",
|
|
33
|
+
"tsc": "tsc --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"eslintConfig": {
|
|
36
|
+
"extends": [
|
|
37
|
+
"../../package.json"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@oclif/core": "^1",
|
|
42
|
+
"@oclif/plugin-help": "^5",
|
|
43
|
+
"@oclif/plugin-plugins": "^2.0.1",
|
|
44
|
+
"@shopify/cli-app": "^0.1.1",
|
|
45
|
+
"@shopify/cli-core": "^0.1.1",
|
|
46
|
+
"@shopify/cli-support": "^0.1.1",
|
|
47
|
+
"@shopify/cli-theme": "^0.1.1"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@oclif/test": "^2"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=12.0.0"
|
|
54
|
+
},
|
|
55
|
+
"oclif": {
|
|
56
|
+
"bin": "shopify",
|
|
57
|
+
"commands": "./dist/commands",
|
|
58
|
+
"plugins": [
|
|
59
|
+
"@oclif/plugin-help",
|
|
60
|
+
"@oclif/plugin-plugins"
|
|
61
|
+
],
|
|
62
|
+
"topicSeparator": " ",
|
|
63
|
+
"topics": {
|
|
64
|
+
"hello": {
|
|
65
|
+
"description": "Say hello to the world and others"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"gitHead": "a99b697989e587cede6c7fdcb0bc937b17f96733"
|
|
70
|
+
}
|