@shopify/create-app 3.35.0 → 3.36.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/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +6 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/prompts/init.js +5 -2
- package/dist/prompts/init.js.map +1 -1
- package/dist/services/init.js +58 -92
- package/dist/services/init.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/template/cleanup.js +9 -9
- package/dist/utils/template/cleanup.js.map +1 -1
- package/dist/utils/template/npm.d.ts +6 -7
- package/dist/utils/template/npm.js +20 -32
- package/dist/utils/template/npm.js.map +1 -1
- package/dist/utils/versions.js +7 -6
- package/dist/utils/versions.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { rmdir, glob } from '@shopify/cli-kit/node/fs';
|
|
2
|
+
import { joinPath } from '@shopify/cli-kit/node/path';
|
|
3
3
|
export default async function cleanup(webOutputDirectory) {
|
|
4
|
-
const gitPaths = await
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const gitPaths = await glob([
|
|
5
|
+
joinPath(webOutputDirectory, '**', '.git'),
|
|
6
|
+
joinPath(webOutputDirectory, '**', '.github'),
|
|
7
|
+
joinPath(webOutputDirectory, '**', '.gitmodules'),
|
|
8
|
+
joinPath(webOutputDirectory, 'LICENSE*'),
|
|
9
|
+
joinPath(webOutputDirectory, '**', 'frontend/LICENSE*'),
|
|
10
|
+
joinPath(webOutputDirectory, 'package.json.cli2'),
|
|
11
11
|
], {
|
|
12
12
|
dot: true,
|
|
13
13
|
onlyFiles: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../src/utils/template/cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../src/utils/template/cleanup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAA;AAEnD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,OAAO,CAAC,kBAA0B;IAC9D,MAAM,QAAQ,GAAG,MAAM,IAAI,CACzB;QACE,QAAQ,CAAC,kBAAkB,EAAE,IAAI,EAAE,MAAM,CAAC;QAC1C,QAAQ,CAAC,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC;QAC7C,QAAQ,CAAC,kBAAkB,EAAE,IAAI,EAAE,aAAa,CAAC;QACjD,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAC;QACxC,QAAQ,CAAC,kBAAkB,EAAE,IAAI,EAAE,mBAAmB,CAAC;QACvD,QAAQ,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;KAClD,EACD;QACE,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;QACtB,MAAM,EAAE,CAAC,oBAAoB,CAAC;KAC/B,CACF,CAAA;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;AACvF,CAAC","sourcesContent":["import {rmdir, glob} from '@shopify/cli-kit/node/fs'\nimport {joinPath} from '@shopify/cli-kit/node/path'\n\nexport default async function cleanup(webOutputDirectory: string) {\n const gitPaths = await glob(\n [\n joinPath(webOutputDirectory, '**', '.git'),\n joinPath(webOutputDirectory, '**', '.github'),\n joinPath(webOutputDirectory, '**', '.gitmodules'),\n joinPath(webOutputDirectory, 'LICENSE*'),\n joinPath(webOutputDirectory, '**', 'frontend/LICENSE*'),\n joinPath(webOutputDirectory, 'package.json.cli2'),\n ],\n {\n dot: true,\n onlyFiles: false,\n onlyDirectories: false,\n ignore: ['**/node_modules/**'],\n },\n )\n\n return Promise.all(gitPaths.map((path) => rmdir(path, {force: true}))).then(() => {})\n}\n"]}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PackageManager, PackageJson } from '@shopify/cli-kit/node/node-package-manager';
|
|
2
|
+
import { Task } from '@shopify/cli-kit/src/private/node/ui/components/Tasks.js';
|
|
3
3
|
interface UpdateCLIDependenciesOptions {
|
|
4
4
|
directory: string;
|
|
5
|
-
packageJSON:
|
|
5
|
+
packageJSON: PackageJson;
|
|
6
6
|
local: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function updateCLIDependencies({ packageJSON, local
|
|
9
|
-
export declare function getDeepInstallNPMTasks({ from, packageManager,
|
|
8
|
+
export declare function updateCLIDependencies({ packageJSON, local }: UpdateCLIDependenciesOptions): Promise<PackageJson>;
|
|
9
|
+
export declare function getDeepInstallNPMTasks({ from, packageManager, }: {
|
|
10
10
|
from: string;
|
|
11
11
|
packageManager: PackageManager;
|
|
12
|
-
|
|
13
|
-
}): Promise<ui.ListrTask[]>;
|
|
12
|
+
}): Promise<Task[]>;
|
|
14
13
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { path } from '@shopify/cli-kit';
|
|
2
1
|
import { installNodeModules } from '@shopify/cli-kit/node/node-package-manager';
|
|
3
2
|
import { CLI_KIT_VERSION } from '@shopify/cli-kit/common/version';
|
|
4
|
-
import {
|
|
3
|
+
import { joinPath, moduleDirectory, normalizePath } from '@shopify/cli-kit/node/path';
|
|
4
|
+
import { glob, findPathUp } from '@shopify/cli-kit/node/fs';
|
|
5
5
|
import { platform } from 'os';
|
|
6
|
-
export async function updateCLIDependencies({ packageJSON, local
|
|
6
|
+
export async function updateCLIDependencies({ packageJSON, local }) {
|
|
7
7
|
packageJSON.dependencies = packageJSON.dependencies || {};
|
|
8
8
|
packageJSON.dependencies['@shopify/cli'] = CLI_KIT_VERSION;
|
|
9
9
|
packageJSON.dependencies['@shopify/app'] = CLI_KIT_VERSION;
|
|
@@ -32,44 +32,32 @@ export async function updateCLIDependencies({ packageJSON, local, }) {
|
|
|
32
32
|
return packageJSON;
|
|
33
33
|
}
|
|
34
34
|
async function packagePath(packageName) {
|
|
35
|
-
const packageAbsolutePath = (await
|
|
35
|
+
const packageAbsolutePath = (await findPathUp(`packages/${packageName}`, {
|
|
36
36
|
type: 'directory',
|
|
37
|
-
cwd:
|
|
37
|
+
cwd: moduleDirectory(import.meta.url),
|
|
38
38
|
}));
|
|
39
39
|
return `file:${packageAbsolutePath}`;
|
|
40
40
|
}
|
|
41
|
-
export async function getDeepInstallNPMTasks({ from, packageManager,
|
|
42
|
-
const root =
|
|
43
|
-
const packageJSONFiles = await
|
|
44
|
-
let foldersInstalled = 0;
|
|
41
|
+
export async function getDeepInstallNPMTasks({ from, packageManager, }) {
|
|
42
|
+
const root = normalizePath(from);
|
|
43
|
+
const packageJSONFiles = await glob([joinPath(root, '**/package.json')]);
|
|
45
44
|
return packageJSONFiles.map((filePath) => {
|
|
46
45
|
const folderPath = filePath.replace('package.json', '');
|
|
47
46
|
const titlePath = folderPath.replace(root, '');
|
|
47
|
+
/**
|
|
48
|
+
* Installation of dependencies using Yarn on Windows might lead
|
|
49
|
+
* to "EPERM: operation not permitted, unlink" errors when Yarn tries
|
|
50
|
+
* to access the cache. By limiting the network concurrency we mitigate the
|
|
51
|
+
* error:
|
|
52
|
+
*
|
|
53
|
+
* Failing scenario: https://github.com/Shopify/cli/runs/7913938724
|
|
54
|
+
* Reported issue: https://github.com/yarnpkg/yarn/issues/7212
|
|
55
|
+
*/
|
|
56
|
+
const args = platform() === 'win32' && packageManager === 'yarn' ? ['--network-concurrency', '1'] : [];
|
|
48
57
|
return {
|
|
49
58
|
title: `Installing dependencies in ${titlePath}`,
|
|
50
|
-
task: async (
|
|
51
|
-
|
|
52
|
-
write(chunk, _, next) {
|
|
53
|
-
task.output = chunk.toString();
|
|
54
|
-
next();
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* Installation of dependencies using Yarn on Windows might lead
|
|
59
|
-
* to "EPERM: operation not permitted, unlink" errors when Yarn tries
|
|
60
|
-
* to access the cache. By limiting the network concurrency we mitigate the
|
|
61
|
-
* error:
|
|
62
|
-
*
|
|
63
|
-
* Failing scenario: https://github.com/Shopify/cli/runs/7913938724
|
|
64
|
-
* Reported issue: https://github.com/yarnpkg/yarn/issues/7212
|
|
65
|
-
*/
|
|
66
|
-
const args = platform() === 'win32' && packageManager === 'yarn' ? ['--network-concurrency', '1'] : [];
|
|
67
|
-
await installNodeModules({ directory: folderPath, packageManager, stdout: output, stderr: output, args });
|
|
68
|
-
task.title = `Installed dependencies in ${titlePath}`;
|
|
69
|
-
foldersInstalled++;
|
|
70
|
-
if (foldersInstalled === packageJSONFiles.length) {
|
|
71
|
-
didInstallEverything();
|
|
72
|
-
}
|
|
59
|
+
task: async () => {
|
|
60
|
+
await installNodeModules({ directory: folderPath, packageManager, args });
|
|
73
61
|
},
|
|
74
62
|
};
|
|
75
63
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm.js","sourceRoot":"","sources":["../../../src/utils/template/npm.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"npm.js","sourceRoot":"","sources":["../../../src/utils/template/npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,kBAAkB,EAAc,MAAM,4CAA4C,CAAA;AAC1G,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAE,aAAa,EA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Content":["import {PackageManager, installNodeModules, PackageJson} from '@shopify/cli-kit/node/node-package-manager'\nimport {CLI_KIT_VERSION} from '@shopify/cli-kit/common/version'\nimport {Task} from '@shopify/cli-kit/src/private/node/ui/components/Tasks.js'\nimport {joinPath, moduleDirectory, normalizePath} from '@shopify/cli-kit/node/path'\nimport {glob, findPathUp} from '@shopify/cli-kit/node/fs'\nimport {platform} from 'os'\n\ninterface UpdateCLIDependenciesOptions {\n directory: string\n packageJSON: PackageJson\n local: boolean\n}\n\nexport async function updateCLIDependencies({packageJSON, local}: UpdateCLIDependenciesOptions): Promise<PackageJson> {\n packageJSON.dependencies = packageJSON.dependencies || {}\n packageJSON.dependencies['@shopify/cli'] = CLI_KIT_VERSION\n packageJSON.dependencies['@shopify/app'] = CLI_KIT_VERSION\n\n if (local) {\n const cliPath = await packagePath('cli')\n const appPath = await packagePath('app')\n const cliKitPath = await packagePath('cli-kit')\n const pluginNgrokPath = await packagePath('plugin-ngrok')\n\n // eslint-disable-next-line require-atomic-updates\n packageJSON.dependencies['@shopify/cli'] = cliPath\n // eslint-disable-next-line require-atomic-updates\n packageJSON.dependencies['@shopify/app'] = appPath\n\n const dependencyOverrides = {\n '@shopify/cli': cliPath,\n '@shopify/app': appPath,\n '@shopify/cli-kit': cliKitPath,\n '@shopify/plugin-ngrok': pluginNgrokPath,\n }\n\n packageJSON.overrides = packageJSON.overrides\n ? {...packageJSON.overrides, ...dependencyOverrides}\n : dependencyOverrides\n\n packageJSON.resolutions = packageJSON.resolutions\n ? {...packageJSON.resolutions, ...dependencyOverrides}\n : dependencyOverrides\n }\n\n return packageJSON\n}\n\nasync function packagePath(packageName: string): Promise<string> {\n const packageAbsolutePath = (await findPathUp(`packages/${packageName}`, {\n type: 'directory',\n cwd: moduleDirectory(import.meta.url),\n })) as string\n return `file:${packageAbsolutePath}`\n}\n\nexport async function getDeepInstallNPMTasks({\n from,\n packageManager,\n}: {\n from: string\n packageManager: PackageManager\n}): Promise<Task[]> {\n const root = normalizePath(from)\n const packageJSONFiles = await glob([joinPath(root, '**/package.json')])\n\n return packageJSONFiles.map((filePath) => {\n const folderPath = filePath.replace('package.json', '')\n const titlePath = folderPath.replace(root, '')\n\n /**\n * Installation of dependencies using Yarn on Windows might lead\n * to \"EPERM: operation not permitted, unlink\" errors when Yarn tries\n * to access the cache. By limiting the network concurrency we mitigate the\n * error:\n *\n * Failing scenario: https://github.com/Shopify/cli/runs/7913938724\n * Reported issue: https://github.com/yarnpkg/yarn/issues/7212\n */\n const args = platform() === 'win32' && packageManager === 'yarn' ? ['--network-concurrency', '1'] : []\n return {\n title: `Installing dependencies in ${titlePath}`,\n task: async () => {\n await installNodeModules({directory: folderPath, packageManager, args})\n },\n }\n })\n}\n"]}
|
package/dist/utils/versions.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { readFile } from '@shopify/cli-kit/node/fs';
|
|
1
|
+
import { error } from '@shopify/cli-kit';
|
|
2
|
+
import { readFile, findPathUp } from '@shopify/cli-kit/node/fs';
|
|
3
|
+
import { dirname } from '@shopify/cli-kit/node/path';
|
|
3
4
|
import { fileURLToPath } from 'url';
|
|
4
5
|
export async function cliVersion() {
|
|
5
|
-
const cliPackageJsonpath = (await
|
|
6
|
-
cwd:
|
|
6
|
+
const cliPackageJsonpath = (await findPathUp('@shopify/cli/package.json', {
|
|
7
|
+
cwd: dirname(fileURLToPath(import.meta.url)),
|
|
7
8
|
type: 'file',
|
|
8
9
|
allowSymlinks: true,
|
|
9
10
|
})) ??
|
|
10
|
-
(await
|
|
11
|
-
cwd:
|
|
11
|
+
(await findPathUp('packages/cli/package.json', {
|
|
12
|
+
cwd: dirname(fileURLToPath(import.meta.url)),
|
|
12
13
|
type: 'file',
|
|
13
14
|
}));
|
|
14
15
|
if (!cliPackageJsonpath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../src/utils/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../src/utils/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAC,aAAa,EAAC,MAAM,KAAK,CAAA;AAEjC,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,MAAM,kBAAkB,GACtB,CAAC,MAAM,UAAU,CAAC,2BAA2B,EAAE;QAC7C,GAAG,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;QACH,CAAC,MAAM,UAAU,CAAC,2BAA2B,EAAE;YAC7C,GAAG,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC,CAAA;IACL,IAAI,CAAC,kBAAkB,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAA;KACjE;IACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAA;IAClE,OAAO,WAAW,CAAC,OAAO,CAAA;AAC5B,CAAC","sourcesContent":["import {error} from '@shopify/cli-kit'\nimport {readFile, findPathUp} from '@shopify/cli-kit/node/fs'\nimport {dirname} from '@shopify/cli-kit/node/path'\nimport {fileURLToPath} from 'url'\n\nexport async function cliVersion(): Promise<string> {\n const cliPackageJsonpath =\n (await findPathUp('@shopify/cli/package.json', {\n cwd: dirname(fileURLToPath(import.meta.url)),\n type: 'file',\n allowSymlinks: true,\n })) ??\n (await findPathUp('packages/cli/package.json', {\n cwd: dirname(fileURLToPath(import.meta.url)),\n type: 'file',\n }))\n if (!cliPackageJsonpath) {\n throw new error.Bug(\"Couldn't determine the version of the CLI\")\n }\n const packageJson = JSON.parse(await readFile(cliPackageJsonpath))\n return packageJson.version\n}\n"]}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"3.
|
|
1
|
+
{"version":"3.36.0","commands":{"init":{"id":"init","strict":true,"pluginName":"@shopify/create-app","pluginAlias":"@shopify/create-app","pluginType":"core","aliases":["create-app"],"flags":{"preset":{"name":"preset","type":"option","description":"The preset to apply to the current command.","hidden":true,"multiple":false},"verbose":{"name":"verbose","type":"boolean","description":"Increase the verbosity of the logs.","hidden":false,"allowNo":false},"name":{"name":"name","type":"option","char":"n","hidden":false,"multiple":false},"path":{"name":"path","type":"option","char":"p","hidden":false,"multiple":false},"template":{"name":"template","type":"option","description":"The app template. Accepts one of the following:\n - <node|php|ruby>\n - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]","multiple":false},"package-manager":{"name":"package-manager","type":"option","char":"d","hidden":false,"multiple":false,"options":["npm","yarn","pnpm"]},"local":{"name":"local","type":"boolean","char":"l","hidden":true,"allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.36.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to create a new Shopify app.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@oclif/core": "1.21.0",
|
|
43
|
-
"@shopify/cli-kit": "3.
|
|
43
|
+
"@shopify/cli-kit": "3.36.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "14.17.0",
|