@shopify/create-app 0.7.0 → 0.8.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 +6 -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 +110 -560
- package/package.json +16 -15
- package/templates/app/README.md +9 -0
- package/templates/app/home/index.js +1 -1
- package/templates/app/package.json +5 -14
- package/bin/create-app-dev +0 -21
- package/templates/app-plopfile.js +0 -40
package/CHANGELOG.md
CHANGED
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
|
})
|