@shopify/create-app 0.7.0 → 0.11.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,8 +1,14 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "0.7.0",
3
+ "version": "0.11.0",
4
4
  "private": false,
5
5
  "description": "A CLI tool to create a new Shopify app.",
6
+ "type": "module",
7
+ "main": "src/index.js",
8
+ "module": "src/index.js",
9
+ "exports": {
10
+ ".": "./src/index.js"
11
+ },
6
12
  "keywords": [
7
13
  "shopify",
8
14
  "shopify-cli",
@@ -12,7 +18,7 @@
12
18
  "license": "MIT",
13
19
  "types": "dist/index.d.ts",
14
20
  "bin": {
15
- "create-app": "./bin/create-app-run"
21
+ "create-app": "./bin/create-app-run.js"
16
22
  },
17
23
  "files": [
18
24
  "/bin",
@@ -28,13 +34,12 @@
28
34
  "scripts": {
29
35
  "clean": "shx rm -rf dist",
30
36
  "build": "shx rm -rf dist && rollup -c",
31
- "build:watch": "tsc -b tsconfig.dist.json --watch",
32
- "prepublishOnly": "yarn run build",
37
+ "prepublishOnly": "cross-env NODE_ENV=production yarn run build",
33
38
  "lint": "prettier -c src/** && eslint src/**",
34
39
  "lint:fix": "prettier src/** && eslint src/** --fix",
35
- "test": "jest",
36
- "test:watch": "jest --watch",
37
- "tsc": "tsc -b --incremental"
40
+ "test": "shx rm -rf dist && vitest run",
41
+ "test:watch": "vitest watch",
42
+ "tsc": "tsc -b"
38
43
  },
39
44
  "eslintConfig": {
40
45
  "extends": [
@@ -42,19 +47,12 @@
42
47
  ]
43
48
  },
44
49
  "dependencies": {
45
- "@oclif/plugin-help": "^5",
46
- "@oclif/core": "^1",
47
50
  "@bugsnag/js": "^7.14.1",
48
- "plop": "^2.7.6"
49
- },
50
- "devDependencies": {
51
- "@shopify/core": "0.5.2",
52
- "@types/listr": "^0.14.4",
53
- "listr": "^0.14.3"
51
+ "@oclif/core": "0.5.10"
54
52
  },
55
53
  "engine-strict": true,
56
54
  "engines": {
57
- "node": ">=12.0.0"
55
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
58
56
  },
59
57
  "os": [
60
58
  "darwin",
@@ -0,0 +1,9 @@
1
+ # {{ name }}
2
+
3
+ {{description}}
4
+
5
+ ## Set up
6
+
7
+ 1. Clone the repository.
8
+ 2. Install dependencies: `yarn/npm/pnpm install`.
9
+ 3. Build with `yarn/npm/pnpm build`
@@ -1 +1 @@
1
- console.log("Hello from {{snakeCase name}}!");
1
+ console.log('Hello from {{name}}!');
@@ -1,22 +1,13 @@
1
1
  {
2
2
  "name": "{{name}}",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "{{description}}",
5
5
  "main": "home/index.js",
6
6
  "scripts": {
7
- "build": "shx rm -rf dist && tsc -b",
8
- "build:watch": "tsc -b --watch",
9
- "lint": "prettier -c src/** && eslint src/**",
10
- "lint:fix": "prettier src/** && eslint src/** --fix",
11
- "test": "jest",
12
- "test:watch": "jest --watch",
13
- "tsc": "tsc -b --incremental"
14
- },
15
- "eslintConfig": {
16
- "parser": "@typescript-eslint/parser",
17
- "extends": [
18
- "plugin:@shopify/cli"
19
- ]
7
+ "build": "shopify app build",
8
+ "dev": "shopify app dev",
9
+ "test": "shopify app test",
10
+ "push": "shopify app push"
20
11
  },
21
12
  "dependencies": {
22
13
  "@shopify/cli": "{{shopify_cli_version}}"
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- if (!process.argv.includes("init")) {
4
- process.argv.splice(2, 0, 'init');
5
- }
6
-
7
- const oclif = require('@oclif/core')
8
-
9
- const path = require('path')
10
- const project = path.join(__dirname, '..', 'tsconfig.dist.json')
11
-
12
- // In dev mode -> use ts-node and dev plugins
13
- process.env.NODE_ENV = 'development'
14
-
15
- require('ts-node').register({project})
16
-
17
- // In dev mode, always show stack traces
18
- oclif.settings.debug = true;
19
-
20
- // Start the CLI
21
- oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
@@ -1,40 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = function (plop) {
4
- plop.setGenerator('app', {
5
- description: 'Shopify app',
6
- prompts: [
7
- {
8
- type: 'input',
9
- name: 'silent',
10
- message: 'swallows init from argv'
11
- },
12
- {
13
- type: 'input',
14
- name: 'name',
15
- message: 'What is the name of your app?'
16
- },
17
- {
18
- type: 'input',
19
- name: 'description',
20
- message: 'Enter a short description of your app.'
21
- },
22
- {
23
- type: 'input',
24
- name: 'author',
25
- message: 'Who is the app author?'
26
- }
27
- ],
28
- actions: [
29
- {
30
- type: 'addMany',
31
- base: path.join(__dirname, 'app'),
32
- destination: path.join(process.cwd(), '{{dashCase name}}'),
33
- templateFiles: path.join(__dirname, 'app/(**/*|*)'),
34
- data: {
35
- shopify_cli_version: "^0.0.0"
36
- }
37
- }
38
- ]
39
- });
40
- };