@shopify/create-app 0.11.0 → 0.15.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/package.json CHANGED
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "0.11.0",
3
+ "version": "0.15.0",
4
4
  "private": false,
5
5
  "description": "A CLI tool to create a new Shopify app.",
6
6
  "type": "module",
7
7
  "main": "src/index.js",
8
8
  "module": "src/index.js",
9
- "exports": {
10
- ".": "./src/index.js"
11
- },
12
9
  "keywords": [
13
10
  "shopify",
14
11
  "shopify-cli",
@@ -18,13 +15,13 @@
18
15
  "license": "MIT",
19
16
  "types": "dist/index.d.ts",
20
17
  "bin": {
21
- "create-app": "./bin/create-app-run.js"
18
+ "create-app": "./bin/run.js"
22
19
  },
23
20
  "files": [
24
- "/bin",
21
+ "/bin/run.js",
22
+ "/bin/run.cmd",
25
23
  "/dist",
26
24
  "templates",
27
- "/npm-shrinkwrap.json",
28
25
  "/oclif.manifest.json"
29
26
  ],
30
27
  "publishConfig": {
@@ -33,13 +30,13 @@
33
30
  },
34
31
  "scripts": {
35
32
  "clean": "shx rm -rf dist",
36
- "build": "shx rm -rf dist && rollup -c",
37
- "prepublishOnly": "cross-env NODE_ENV=production yarn run build",
38
- "lint": "prettier -c src/** && eslint src/**",
39
- "lint:fix": "prettier src/** && eslint src/** --fix",
40
- "test": "shx rm -rf dist && vitest run",
33
+ "build": "rollup -c",
34
+ "prepack": "cross-env NODE_ENV=production yarn run build",
35
+ "lint": "prettier -c src/** && eslint src/**/*.ts",
36
+ "lint:fix": "prettier -w src/** && eslint src/**/*.ts --fix",
37
+ "test": "vitest run",
41
38
  "test:watch": "vitest watch",
42
- "tsc": "tsc -b"
39
+ "tsc": "tsc --noEmit"
43
40
  },
44
41
  "eslintConfig": {
45
42
  "extends": [
@@ -48,11 +45,12 @@
48
45
  },
49
46
  "dependencies": {
50
47
  "@bugsnag/js": "^7.14.1",
51
- "@oclif/core": "0.5.10"
48
+ "@oclif/core": "1.3.3",
49
+ "@oclif/plugin-help": "^5.1.11"
52
50
  },
53
51
  "engine-strict": true,
54
52
  "engines": {
55
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
53
+ "node": "^14.13.1 || ^16.0.0 || ^17.0.0"
56
54
  },
57
55
  "os": [
58
56
  "darwin",
@@ -1,9 +1,7 @@
1
1
  # {{ name }}
2
2
 
3
- {{description}}
4
-
5
3
  ## Set up
6
4
 
7
5
  1. Clone the repository.
8
- 2. Install dependencies: `yarn/npm/pnpm install`.
9
- 3. Build with `yarn/npm/pnpm build`
6
+ 2. Install dependencies: `{{dependencyManager}} install`.
7
+ 3. Build with `{{dependencyManager}} build`
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "{{name}}",
3
3
  "version": "0.1.0",
4
- "description": "{{description}}",
5
4
  "main": "home/index.js",
6
5
  "scripts": {
6
+ "shopify": "shopify",
7
7
  "build": "shopify app build",
8
8
  "dev": "shopify app dev",
9
9
  "test": "shopify app test",
10
10
  "push": "shopify app push"
11
11
  },
12
12
  "dependencies": {
13
- "@shopify/cli": "{{shopify_cli_version}}"
13
+ "@shopify/cli": "{{shopify_cli_version}}",
14
+ "@shopify/app": "{{shopify_app_version}}",
15
+ "react": "17.0.2"
14
16
  },
15
- "devDependencies": {},
16
17
  "author": "{{author}}"
17
18
  }
@@ -1,3 +0,0 @@
1
- @echo off
2
-
3
- node "%~dp0\create-app-dev.js" %*
@@ -1,18 +0,0 @@
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)
@@ -1,3 +0,0 @@
1
- @echo off
2
-
3
- node "%~dp0\create-app-run.js" %*
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- if (!process.argv.includes("init")) {
4
- process.argv.push('init');
5
- }
6
-
7
- import { run, flush, Errors } from '@oclif/core';
8
- import Bugsnag from "@bugsnag/js";
9
-
10
- // Set up error tracking
11
- Bugsnag.start({apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null})
12
-
13
- // Start the CLI
14
- run(void 0, import.meta.url).then(flush).catch((error) => {
15
- return new Promise((resolve, reject) => {
16
- Bugsnag.notify(error, null, resolve);
17
- }).then(Errors.handle(error));
18
- })