@shopify/create-app 0.1.3

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 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/dev ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+
3
+ if (!process.argv.includes("init")) {
4
+ process.argv.push('init');
5
+ }
6
+
7
+ const oclif = require('@oclif/core')
8
+
9
+ const path = require('path')
10
+ const project = path.join(__dirname, '..', 'tsconfig.json')
11
+
12
+ // In dev mode -> use ts-node and dev plugins
13
+ process.env.NODE_ENV = 'development'
14
+
15
+ require('ts-node').register({project})
16
+
17
+ // In dev mode, always show stack traces
18
+ oclif.settings.debug = true;
19
+
20
+ // Start the CLI
21
+ oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\dev" %*
package/bin/run ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ if (!process.argv.includes("init")) {
4
+ process.argv.push('init');
5
+ }
6
+
7
+ const oclif = require('@oclif/core')
8
+
9
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
package/bin/run.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
@@ -0,0 +1,5 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Init extends Command {
3
+ static description: string;
4
+ run(): Promise<void>;
5
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const listr_1 = __importDefault(require("listr"));
7
+ const core_1 = require("@oclif/core");
8
+ class Init extends core_1.Command {
9
+ async run() {
10
+ const tasks = new listr_1.default([
11
+ {
12
+ title: 'Git',
13
+ task: () => {
14
+ return new listr_1.default([
15
+ {
16
+ title: 'Cloning the template',
17
+ task: () => new Promise((resolve) => setTimeout(resolve, 3000)),
18
+ },
19
+ ], { concurrent: true });
20
+ },
21
+ },
22
+ {
23
+ title: 'Initializing the content',
24
+ task: () => new Promise((resolve) => setTimeout(resolve, 3000)),
25
+ },
26
+ {
27
+ title: 'Installing dependencies',
28
+ task: () => new Promise((resolve) => setTimeout(resolve, 3000)),
29
+ },
30
+ ]);
31
+ tasks
32
+ .run()
33
+ .then(() => {
34
+ console.log('The app has been successfully created');
35
+ })
36
+ .catch((err) => {
37
+ console.error(err);
38
+ });
39
+ }
40
+ }
41
+ exports.default = Init;
42
+ Init.description = 'Create a new Shopify app';
43
+ //# sourceMappingURL=data:application/json;base64,eyJ2Z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FDO2FBQ2hFO1NBQ0YsQ0FBQyxDQUFDO1FBRUgsS0FBSzthQUNGLEdBQUcsRUFBRTthQUNMLElBQUksQ0FBQyxHQUFHLEVBQUU7WUFDVCxPQUFPLENBQUMsR0FBRyxDQUFDLHVDQUF1QyxDQUFDLENBQUM7UUFDdkQsQ0FBQyxDQUFDO2FBQ0QsS0FBSyxDQUFDLENBQUMsR0FBRyxFQUFFLEVBQUU7WUFDYixPQUFPLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ3JCLENBQUMsQ0FBQyxDQUFDO0lBQ1AsQ0FBQzs7QUFyQ0gsdUJBc0NDO0FBckNRLGdCQUFXLEdBQUcsMEJBQTBCLENBQUMifQ==
@@ -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,63 @@
1
+ {
2
+ "name": "@shopify/create-app",
3
+ "version": "0.1.3",
4
+ "private": false,
5
+ "description": "A CLI tool to create a new Shopify app.",
6
+ "keywords": [
7
+ "shopify",
8
+ "shopify-cli",
9
+ "shopify-partners",
10
+ "shopify-apps"
11
+ ],
12
+ "license": "MIT",
13
+ "types": "dist/index.d.ts",
14
+ "bin": {
15
+ "create-app": "./bin/run"
16
+ },
17
+ "files": [
18
+ "/bin",
19
+ "/dist",
20
+ "/npm-shrinkwrap.json",
21
+ "/oclif.manifest.json"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public",
25
+ "@shopify:registry": "https://registry.npmjs.org"
26
+ },
27
+ "scripts": {
28
+ "build": "shx rm -rf dist && tsc",
29
+ "build:watch": "tsc --watch",
30
+ "lint": "prettier -c src/** && eslint src/**",
31
+ "lint:fix": "prettier src/** && eslint src/** --fix",
32
+ "test": "jest",
33
+ "test:watch": "jest --watch",
34
+ "tsc": "tsc --noEmit"
35
+ },
36
+ "eslintConfig": {
37
+ "extends": [
38
+ "../../package.json"
39
+ ]
40
+ },
41
+ "dependencies": {
42
+ "@oclif/command": "^1",
43
+ "@oclif/core": "^1",
44
+ "@oclif/plugin-help": "^5",
45
+ "@oclif/plugin-plugins": "^2.0.1",
46
+ "@shopify/cli-support": "^0.1.1",
47
+ "@types/listr": "^0.14.4",
48
+ "listr": "^0.14.3"
49
+ },
50
+ "devDependencies": {
51
+ "@oclif/test": "^2"
52
+ },
53
+ "engines": {
54
+ "node": ">=12.0.0"
55
+ },
56
+ "oclif": {
57
+ "bin": "create-app",
58
+ "commands": "./dist/commands",
59
+ "plugins": [],
60
+ "topicSeparator": " "
61
+ },
62
+ "gitHead": "87868d03b70e180ef79d3739b6049d1317ac7d86"
63
+ }