@shopify/create-app 0.6.0 → 0.10.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 +24 -0
- package/bin/create-app-dev.cmd +1 -1
- package/bin/create-app-dev.js +18 -0
- package/bin/create-app-run.cmd +1 -1
- package/bin/{create-app-run → create-app-run.js} +4 -4
- package/dist/commands/init.js +96 -560
- package/package.json +15 -16
- package/templates/app/.shopify.app.toml +3 -0
- package/templates/app/README.md +9 -0
- package/templates/app/db/schema.sql +2 -0
- package/templates/app/home/index.js +1 -0
- package/templates/app/package.json +17 -0
- package/bin/create-app-dev +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @shopify/create-app
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Fix prompts not working when bundling the code
|
|
8
|
+
|
|
9
|
+
## 0.9.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Fix missing readable-stream dependency
|
|
14
|
+
|
|
15
|
+
## 0.8.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- b07c608: Rename @shopify/core to @shopify/cli-kit and finish up the create-app workflow
|
|
20
|
+
|
|
21
|
+
## 0.7.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- Add missing template to "files"
|
|
26
|
+
|
|
3
27
|
## 0.6.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/bin/create-app-dev.cmd
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { run, flush, Errors, settings } from '@oclif/core';
|
|
4
|
+
import { exec, execSync } from "child_process";
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
|
+
|
|
8
|
+
if (!process.argv.includes("init")) {
|
|
9
|
+
process.argv.push('init');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
console.log("Bundling @shopify/create-app");
|
|
13
|
+
execSync("yarn build", {cwd: path.join(path.dirname(fileURLToPath(import.meta.url)), ".."), stdio: 'ignore'})
|
|
14
|
+
|
|
15
|
+
settings.debug = true;
|
|
16
|
+
|
|
17
|
+
// Start the CLI
|
|
18
|
+
run(void 0, import.meta.url).then(flush).catch(Errors.handle)
|
package/bin/create-app-run.cmd
CHANGED
|
@@ -4,15 +4,15 @@ if (!process.argv.includes("init")) {
|
|
|
4
4
|
process.argv.push('init');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { run, flush, Errors } from '@oclif/core';
|
|
8
|
+
import Bugsnag from "@bugsnag/js";
|
|
9
9
|
|
|
10
10
|
// Set up error tracking
|
|
11
11
|
Bugsnag.start({apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null})
|
|
12
12
|
|
|
13
13
|
// Start the CLI
|
|
14
|
-
|
|
14
|
+
run(void 0, import.meta.url).then(flush).catch((error) => {
|
|
15
15
|
return new Promise((resolve, reject) => {
|
|
16
16
|
Bugsnag.notify(error, null, resolve);
|
|
17
|
-
}).then(
|
|
17
|
+
}).then(Errors.handle(error));
|
|
18
18
|
})
|