@qavajs/create 0.4.0 → 0.4.1
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 +3 -0
- package/lib/install.js +2 -2
- package/package.json +6 -6
- package/src/install.ts +2 -2
- package/templates/gitignore +1 -0
package/CHANGELOG.MD
CHANGED
|
@@ -8,6 +8,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
|
|
|
8
8
|
:beetle: - bugfix
|
|
9
9
|
:x: - deprecation
|
|
10
10
|
|
|
11
|
+
## [0.4.1]
|
|
12
|
+
- :beetle: fixed issue with gitignore template
|
|
13
|
+
|
|
11
14
|
## [0.4.0]
|
|
12
15
|
- :rocket: updated formatters to modern syntax
|
|
13
16
|
- :rocket: added .gitignore template
|
package/lib/install.js
CHANGED
|
@@ -97,8 +97,8 @@ function install() {
|
|
|
97
97
|
}
|
|
98
98
|
const isPOIncluded = isWdioIncluded || isPlaywrightIncluded;
|
|
99
99
|
const isTemplateIncluded = answers.modules.includes('template');
|
|
100
|
-
// add
|
|
101
|
-
const gitignoreTemplate = yield (0, promises_1.readFile)((0, path_1.resolve)(__dirname, '../templates
|
|
100
|
+
// add gitignore
|
|
101
|
+
const gitignoreTemplate = yield (0, promises_1.readFile)((0, path_1.resolve)(__dirname, '../templates/gitignore'), 'utf-8');
|
|
102
102
|
yield (0, promises_1.writeFile)(`./.gitignore`, gitignoreTemplate, 'utf-8');
|
|
103
103
|
// add package.json
|
|
104
104
|
const packageJsonTemplate = yield (0, promises_1.readFile)((0, path_1.resolve)(__dirname, '../templates/package.json'), 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qavajs/create",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "initializer of @qavajs project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"author": "Alexandr Galichenko",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@inquirer/prompts": "^5.
|
|
23
|
+
"@inquirer/prompts": "^5.5.0",
|
|
24
24
|
"ejs": "^3.1.10",
|
|
25
25
|
"fs-extra": "^11.2.0",
|
|
26
|
-
"typescript": "^5.
|
|
26
|
+
"typescript": "^5.6.2",
|
|
27
27
|
"yarn-install": "^1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/ejs": "^3.1.5",
|
|
31
31
|
"@types/fs-extra": "^11.0.4",
|
|
32
|
-
"@types/node": "^20.
|
|
33
|
-
"@vitest/coverage-v8": "^2.0.
|
|
34
|
-
"vitest": "^2.0.
|
|
32
|
+
"@types/node": "^20.16.5",
|
|
33
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
34
|
+
"vitest": "^2.0.5"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/install.ts
CHANGED
|
@@ -64,9 +64,9 @@ export default async function install(): Promise<void> {
|
|
|
64
64
|
const isPOIncluded: boolean = isWdioIncluded || isPlaywrightIncluded;
|
|
65
65
|
const isTemplateIncluded: boolean = answers.modules.includes('template');
|
|
66
66
|
|
|
67
|
-
// add
|
|
67
|
+
// add gitignore
|
|
68
68
|
const gitignoreTemplate = await readFile(
|
|
69
|
-
resolve(__dirname, '../templates
|
|
69
|
+
resolve(__dirname, '../templates/gitignore'),
|
|
70
70
|
'utf-8'
|
|
71
71
|
);
|
|
72
72
|
await writeFile(`./.gitignore`, gitignoreTemplate, 'utf-8');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules/
|