Skip to content

Commit b5dda49

Browse files
install script moved to separate module @qavajs/create (#122)
* install script moved to separate module @qavajs/create make run command optional
1 parent d34c32c commit b5dda49

File tree

10 files changed

+244
-2192
lines changed

10 files changed

+244
-2192
lines changed

CHANGELOG.MD

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
77
:rocket: - new feature
88
:beetle: - bugfix
99
:x: - deprecation
10-
10+
11+
## 0.36.0
12+
- :x: install script moved to separate module @qavajs/create
13+
- :rocket: make run command optional
14+
1115
## 0.35.0
1216
- :rocket: load support files programmatically
1317

README.MD

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ Cli for @qavajs framework.
66

77
`npm install @qavajs/cli`
88

9-
Setup project
10-
11-
`npx qavajs install`
12-
139
Run tests
1410

1511
`npx qavajs run --config <config> --profile <profile>`
12+
or
13+
`npx qavajs --config <config> --profile <profile>`
1614

1715
### Override memory values
1816
In case if tests need to be run with updated memory value they can be passed via CLI (e.g run scenarios on some other url)

package-lock.json

Lines changed: 224 additions & 561 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
22
"name": "@qavajs/cli",
3-
"version": "0.35.0",
3+
"version": "0.36.0",
44
"description": "cli for qavajs framework",
55
"scripts": {
66
"build": "tsc",
77
"test": "vitest --coverage run",
88
"test:e2e:esm": "node bin/qavajs.js run --config test-e2e/esm/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
99
"test:e2e:cjs": "node bin/qavajs.js run --config test-e2e/cjs/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
1010
"test:e2e:ts": "node bin/qavajs.js run --config test-e2e/ts/config.ts --qavaBoolean --qavaValue 42 --tags @one --tags @two",
11-
"test:e2e": "npm run test:e2e:cjs && npm run test:e2e:esm && npm run test:e2e:ts"
11+
"test:e2e:esm:default": "node bin/qavajs.js run --config test-e2e/esm/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
12+
"test:e2e:cjs:default": "node bin/qavajs.js run --config test-e2e/cjs/config.js --qavaBoolean --qavaValue 42 --tags @one --tags @two",
13+
"test:e2e:ts:default": "node bin/qavajs.js --config test-e2e/ts/config.ts --qavaBoolean --qavaValue 42 --tags @one --tags @two",
14+
"test:e2e": "npm run test:e2e:cjs && npm run test:e2e:esm && npm run test:e2e:ts && npm run test:e2e:cjs:default && npm run test:e2e:esm:default && npm run test:e2e:ts:default"
1215
},
1316
"authors": [
1417
"Alexandr Galichenko",
@@ -26,9 +29,8 @@
2629
"chalk": "^5.3.0",
2730
"ejs": "^3.1.9",
2831
"fs-extra": "^11.2.0",
29-
"inquirer": "^9.2.15",
30-
"yargs": "^17.7.2",
31-
"yarn-install": "^1.0.0"
32+
"inquirer": "^9.2.16",
33+
"yargs": "^17.7.2"
3234
},
3335
"devDependencies": {
3436
"@cucumber/cucumber": "^10.3.1",
@@ -37,13 +39,13 @@
3739
"@types/ejs": "^3.1.5",
3840
"@types/fs-extra": "^11.0.4",
3941
"@types/inquirer": "^9.0.7",
40-
"@types/node": "^20.11.20",
42+
"@types/node": "^20.11.28",
4143
"@types/yargs": "^17.0.32",
42-
"@vitest/coverage-v8": "^1.3.1",
43-
"@vitest/ui": "^1.3.1",
44+
"@vitest/coverage-v8": "^1.4.0",
45+
"@vitest/ui": "^1.4.0",
4446
"chai": "^4.3.10",
4547
"ts-node": "^10.9.2",
46-
"typescript": "^5.3.3",
47-
"vitest": "^1.3.1"
48+
"typescript": "^5.4.2",
49+
"vitest": "^1.4.0"
4850
}
4951
}

src/@types/yarn-install.d.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/cliOptions.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import yargs from 'yargs';
22

33
export function cliOptions(argv: string[]) {
44
return yargs(argv)
5-
.command(
6-
'install',
7-
'init qavajs project and install dependencies'
8-
)
95
.command(
106
'run',
117
'run qavajs tests'

src/deps.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import install from './install';
21
import run from './run';
32
import { cliOptions } from './cliOptions';
43
const chalk = import('chalk').then(m => m.default);
@@ -8,12 +7,7 @@ const argv: any = cliOptions(process.argv.slice(2));
87
async function main() {
98
const { bold, cyan } = await chalk;
109
console.log(bold(cyan(`@qavajs (v${require('../package.json').version})`)));
11-
if (!argv._[0]) console.warn('Specify command: install or run');
12-
switch (argv._[0]) {
13-
case 'install': return install();
14-
case 'run': return run();
15-
default: console.warn('Command is not supported');
16-
}
10+
return run();
1711
}
1812

1913
main();

src/install.ts

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)