create-payload-app 0.3.14 → 0.3.15
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/cli.js +0 -0
- package/dist/index.js +14 -26
- package/dist/lib/create-project.js +220 -0
- package/dist/lib/create-project.test.js +137 -0
- package/dist/lib/generate-secret.js +48 -0
- package/dist/lib/get-db-connection.js +71 -0
- package/dist/lib/parse-language.js +79 -0
- package/dist/lib/parse-project-name.js +71 -0
- package/dist/lib/parse-template.js +85 -0
- package/dist/lib/templates.js +6 -2
- package/dist/lib/write-common-files.js +118 -0
- package/dist/lib/write-env-file.js +75 -0
- package/dist/main.js +40 -45
- package/dist/templates/README.template.md +7 -0
- package/dist/templates/js-blank/package.json +1 -1
- package/dist/templates/js-blog/package.json +1 -1
- package/dist/templates/js-todo/package.json +1 -1
- package/dist/templates/ts-blank/package.json +1 -1
- package/dist/templates/ts-blog/package.json +1 -1
- package/dist/templates/ts-todo/package.json +2 -3
- package/dist/utils/log.js +3 -3
- package/dist/utils/messages.js +1 -1
- package/package.json +21 -6
package/package.json
CHANGED
@@ -9,8 +9,11 @@
|
|
9
9
|
"copyfiles": "copyfiles -u 1 \"src/templates/**\" dist",
|
10
10
|
"typecheck": "tsc --noEmit",
|
11
11
|
"lint": "eslint \"src/**/*.ts\"",
|
12
|
+
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
13
|
+
"lint-staged": "lint-staged --quiet",
|
12
14
|
"test": "jest",
|
13
|
-
"prepublishOnly": "yarn test && yarn build"
|
15
|
+
"prepublishOnly": "yarn test && yarn build",
|
16
|
+
"prepare": "husky install"
|
14
17
|
},
|
15
18
|
"files": [
|
16
19
|
"package.json",
|
@@ -18,7 +21,6 @@
|
|
18
21
|
"bin"
|
19
22
|
],
|
20
23
|
"dependencies": {
|
21
|
-
"@sentry/node": "^6.18.2",
|
22
24
|
"@sindresorhus/slugify": "^1.1.0",
|
23
25
|
"arg": "^5.0.0",
|
24
26
|
"chalk": "^4.1.0",
|
@@ -27,11 +29,12 @@
|
|
27
29
|
"execa": "^5.0.0",
|
28
30
|
"figures": "^3.2.0",
|
29
31
|
"fs-extra": "^9.0.1",
|
32
|
+
"handlebars": "^4.7.7",
|
30
33
|
"ora": "^5.1.0",
|
31
34
|
"prompts": "^2.4.0",
|
32
35
|
"terminal-link": "^2.1.1"
|
33
36
|
},
|
34
|
-
"version": "0.3.
|
37
|
+
"version": "0.3.15",
|
35
38
|
"devDependencies": {
|
36
39
|
"@types/command-exists": "^1.2.0",
|
37
40
|
"@types/degit": "^2.8.3",
|
@@ -39,16 +42,28 @@
|
|
39
42
|
"@types/jest": "^27.0.3",
|
40
43
|
"@types/node": "^16.6.2",
|
41
44
|
"@types/prompts": "^2.4.0",
|
42
|
-
"@typescript-eslint/eslint-plugin": "^
|
43
|
-
"@typescript-eslint/parser": "^
|
45
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
46
|
+
"@typescript-eslint/parser": "^5.41.0",
|
44
47
|
"copyfiles": "^2.4.1",
|
45
48
|
"eslint": "^7.32.0",
|
46
49
|
"eslint-config-airbnb-base": "^14.2.1",
|
47
50
|
"eslint-config-prettier": "^8.3.0",
|
48
51
|
"eslint-plugin-prettier": "^3.4.0",
|
52
|
+
"husky": "^8.0.1",
|
49
53
|
"jest": "^27.4.5",
|
54
|
+
"lint-staged": "^13.0.3",
|
50
55
|
"prettier": "^2.3.2",
|
51
56
|
"ts-jest": "^27.1.1",
|
52
|
-
"typescript": "^4.
|
57
|
+
"typescript": "^4.8.4"
|
58
|
+
},
|
59
|
+
"husky": {
|
60
|
+
"hooks": {
|
61
|
+
"pre-commit": "lint-staged"
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"lint-staged": {
|
65
|
+
"*.{ts,tsx}": [
|
66
|
+
"eslint \"src/**/*.ts\" --cache --fix"
|
67
|
+
]
|
53
68
|
}
|
54
69
|
}
|