Skip to content

Commit

Permalink
Merge pull request #766 from gemini-testing/users/shadowusr/HERMIONE-…
Browse files Browse the repository at this point in the history
…920.refactor-types

feat: get rid of typings re-write main parts of the package in typescript
  • Loading branch information
shadowusr committed Jun 21, 2023
2 parents e4c3d58 + c02e716 commit bbd37bf
Show file tree
Hide file tree
Showing 151 changed files with 2,146 additions and 2,159 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ module.exports = {
ecmaVersion: 2022,
},
overrides: [
{
files: ["*.ts"],
rules: {
"@typescript-eslint/explicit-function-return-type": "error",
},
},
{
files: ["*.js"],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion bin/hermione
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
'use strict';

var cli = require('../build/cli').run();
var cli = require('../build/src/cli').run();
98 changes: 84 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"name": "hermione",
"version": "7.1.0",
"description": "Tests framework based on mocha and wdio",
"main": "build/hermione.js",
"main": "build/src/index.js",
"files": [
"build",
"typings"
"build"
],
"types": "./typings/index.d.ts",
"scripts": {
"build": "tsc && copyfiles --up 1 'src/browser/client-scripts/*' build",
"build": "tsc && npm run copy-static",
"copy-static": "copyfiles 'src/browser/client-scripts/*' 'typings/*' build",
"check-types": "tsc --project tsconfig.spec.json",
"clean": "rimraf build/ *.tsbuildinfo",
"coverage": "nyc --reporter=text npm run test-unit",
Expand All @@ -23,7 +22,8 @@
"prepack": "npm run clean && npm run build",
"preversion": "npm run lint && npm test",
"commitmsg": "commitlint -e",
"release": "standard-version"
"release": "standard-version",
"watch": "npm run copy-static && tsc --watch"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,7 +65,7 @@
"looks-same": "^8.1.0",
"micromatch": "^4.0.5",
"mocha": "^10.2.0",
"plugins-loader": "^1.1.0",
"plugins-loader": "^1.2.0",
"png-validator": "1.1.0",
"sharp": "~0.30.7",
"sizzle": "^2.3.6",
Expand All @@ -81,6 +81,7 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@swc/core": "^1.3.40",
"@types/bluebird": "^3.5.38",
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/lodash": "^4.14.191",
Expand Down Expand Up @@ -111,6 +112,7 @@
"sinon-chai": "^2.12.0",
"standard-version": "^9.5.0",
"ts-node": "^10.9.1",
"type-fest": "^3.10.0",
"typescript": "^4.9.5"
},
"peerDependencies": {
Expand Down
62 changes: 0 additions & 62 deletions src/base-hermione.js

This file was deleted.

Loading

0 comments on commit bbd37bf

Please sign in to comment.