@shopify/create-app 0.6.0 → 0.7.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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to create a new Shopify app.",
|
|
6
6
|
"keywords": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"/bin",
|
|
19
19
|
"/dist",
|
|
20
|
+
"templates",
|
|
20
21
|
"/npm-shrinkwrap.json",
|
|
21
22
|
"/oclif.manifest.json"
|
|
22
23
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("Hello from {{snakeCase name}}!");
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "{{description}}",
|
|
5
|
+
"main": "home/index.js",
|
|
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
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@shopify/cli": "{{shopify_cli_version}}"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {},
|
|
25
|
+
"author": "{{author}}"
|
|
26
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|