@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/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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,11 +18,12 @@
|
|
|
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",
|
|
19
25
|
"/dist",
|
|
26
|
+
"templates",
|
|
20
27
|
"/npm-shrinkwrap.json",
|
|
21
28
|
"/oclif.manifest.json"
|
|
22
29
|
],
|
|
@@ -27,13 +34,12 @@
|
|
|
27
34
|
"scripts": {
|
|
28
35
|
"clean": "shx rm -rf dist",
|
|
29
36
|
"build": "shx rm -rf dist && rollup -c",
|
|
30
|
-
"
|
|
31
|
-
"prepublishOnly": "yarn run build",
|
|
37
|
+
"prepublishOnly": "cross-env NODE_ENV=production yarn run build",
|
|
32
38
|
"lint": "prettier -c src/** && eslint src/**",
|
|
33
39
|
"lint:fix": "prettier src/** && eslint src/** --fix",
|
|
34
|
-
"test": "
|
|
35
|
-
"test:watch": "
|
|
36
|
-
"tsc": "tsc -b
|
|
40
|
+
"test": "shx rm -rf dist && vitest run",
|
|
41
|
+
"test:watch": "vitest watch",
|
|
42
|
+
"tsc": "tsc -b"
|
|
37
43
|
},
|
|
38
44
|
"eslintConfig": {
|
|
39
45
|
"extends": [
|
|
@@ -41,19 +47,12 @@
|
|
|
41
47
|
]
|
|
42
48
|
},
|
|
43
49
|
"dependencies": {
|
|
44
|
-
"@oclif/plugin-help": "^5",
|
|
45
|
-
"@oclif/core": "^1",
|
|
46
50
|
"@bugsnag/js": "^7.14.1",
|
|
47
|
-
"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@shopify/core": "0.5.2",
|
|
51
|
-
"@types/listr": "^0.14.4",
|
|
52
|
-
"listr": "^0.14.3"
|
|
51
|
+
"@oclif/core": "0.5.10"
|
|
53
52
|
},
|
|
54
53
|
"engine-strict": true,
|
|
55
54
|
"engines": {
|
|
56
|
-
"node": "
|
|
55
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
57
56
|
},
|
|
58
57
|
"os": [
|
|
59
58
|
"darwin",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello from {{name}}!');
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "{{description}}",
|
|
5
|
+
"main": "home/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "shopify app build",
|
|
8
|
+
"dev": "shopify app dev",
|
|
9
|
+
"test": "shopify app test",
|
|
10
|
+
"push": "shopify app push"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@shopify/cli": "{{shopify_cli_version}}"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {},
|
|
16
|
+
"author": "{{author}}"
|
|
17
|
+
}
|
package/bin/create-app-dev
DELETED
|
@@ -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)
|