@shopify/create-app 1.0.0 → 1.0.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/CHANGELOG.md +6 -0
- package/dist/commands/init.js +18 -19
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/templates/backend/node/build.js +0 -1
- package/templates/backend/node/server.js +0 -6
- package/templates/backend/node/shopify.home.toml +0 -3
- package/templates/frontend/react/bin/build +0 -4
- package/templates/frontend/react/bin/dev +0 -4
- package/templates/frontend/react/hooks/post/1_install_dependencies.sh.liquid +0 -9
- package/templates/frontend/react/hooks/post/2_other.sh +0 -5
- package/templates/frontend/react/hooks/pre/1_hello.sh +0 -5
- package/templates/frontend/react/hooks/pre/2_bye.sh +0 -6
- package/templates/frontend/react/index.html.liquid +0 -13
- package/templates/frontend/react/package.json.liquid +0 -16
- package/templates/frontend/react/shopify.home.template.toml +0 -10
- package/templates/frontend/react/shopify.home.toml +0 -3
- package/templates/frontend/react/src/App.jsx +0 -7
- package/templates/frontend/react/src/main.jsx +0 -10
- package/templates/frontend/react/src/vite-env.d.ts +0 -1
- package/templates/frontend/react/vite.config.js +0 -20
package/CHANGELOG.md
CHANGED
package/dist/commands/init.js
CHANGED
|
@@ -24548,6 +24548,14 @@ async function isDirectory(path) {
|
|
|
24548
24548
|
async function move(src, dest, options = {}) {
|
|
24549
24549
|
await lib$2.move(src, dest, options);
|
|
24550
24550
|
}
|
|
24551
|
+
async function exists$1(path) {
|
|
24552
|
+
try {
|
|
24553
|
+
await lib$2.promises.access(path);
|
|
24554
|
+
return true;
|
|
24555
|
+
} catch {
|
|
24556
|
+
return false;
|
|
24557
|
+
}
|
|
24558
|
+
}
|
|
24551
24559
|
|
|
24552
24560
|
/*
|
|
24553
24561
|
* liquidjs@9.35.1, https://github.com/harttle/liquidjs
|
|
@@ -45129,7 +45137,7 @@ const username = async (platform = platform$1) => {
|
|
|
45129
45137
|
};
|
|
45130
45138
|
|
|
45131
45139
|
var name = "@shopify/cli-kit";
|
|
45132
|
-
var version$2 = "1.0.
|
|
45140
|
+
var version$2 = "1.0.1";
|
|
45133
45141
|
var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
|
|
45134
45142
|
var keywords = [
|
|
45135
45143
|
"shopify",
|
|
@@ -45229,9 +45237,9 @@ var cliKitPackageJson = {
|
|
|
45229
45237
|
devDependencies: devDependencies
|
|
45230
45238
|
};
|
|
45231
45239
|
|
|
45232
|
-
var version$1 = "1.0.
|
|
45240
|
+
var version$1 = "1.0.1";
|
|
45233
45241
|
|
|
45234
|
-
var version = "1.0.
|
|
45242
|
+
var version = "1.0.1";
|
|
45235
45243
|
|
|
45236
45244
|
const constants = {
|
|
45237
45245
|
environmentVariables: {
|
|
@@ -151982,22 +151990,13 @@ const homeTemplateSchema = external.object({
|
|
|
151982
151990
|
});
|
|
151983
151991
|
|
|
151984
151992
|
async function askPrompts(directory) {
|
|
151985
|
-
const
|
|
151986
|
-
|
|
151987
|
-
|
|
151988
|
-
|
|
151989
|
-
|
|
151990
|
-
|
|
151991
|
-
|
|
151992
|
-
const results = [];
|
|
151993
|
-
for (const configFilePath of configFilePaths) {
|
|
151994
|
-
results.push(parseConfiguration(configFilePath));
|
|
151995
|
-
}
|
|
151996
|
-
return Promise.all(results);
|
|
151997
|
-
}
|
|
151998
|
-
async function parseConfiguration(tomlPath) {
|
|
151999
|
-
const rawToml = await read(tomlPath);
|
|
152000
|
-
return homeTemplateSchema.parse(await decode(rawToml));
|
|
151993
|
+
const templatePath = join$3(directory, configurationFileNames.homeTemplate);
|
|
151994
|
+
if (await exists$1(templatePath)) {
|
|
151995
|
+
const rawToml = await read(templatePath);
|
|
151996
|
+
return homeTemplateSchema.parse(await decode(rawToml));
|
|
151997
|
+
} else {
|
|
151998
|
+
return [];
|
|
151999
|
+
}
|
|
152001
152000
|
}
|
|
152002
152001
|
|
|
152003
152002
|
async function downloadTemplate({ templateUrl, into }) {
|