Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion core/async-assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"url": "git+https://github.com/ringcentral/testring.git"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
"test": "echo \"Error: run tests from root\" && exit 1",
"build": "tsc -p tsconfig.build.json"
},
"bugs": {
"url": "https://github.com/ringcentral/testring/issues"
Expand Down
3 changes: 3 additions & 0 deletions core/async-breakpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"bugs": {
Expand Down
3 changes: 3 additions & 0 deletions core/child-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"@testring/types": "0.8.1",
"@testring/utils": "0.8.1"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT"
}
3 changes: 3 additions & 0 deletions core/cli-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/dependencies-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion core/fs-reader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"author": "RingCentral",
"license": "MIT",
"scripts": {
"test:performance": "mocha --performance --reporter spec"
"test:performance": "mocha --performance --reporter spec",
"build": "tsc -p tsconfig.build.json"
},
"dependencies": {
"@testring/logger": "0.8.1",
Expand Down
3 changes: 2 additions & 1 deletion core/fs-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"@testring/utils": "0.8.1"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"build": "tsc -p tsconfig.build.json"
},
"bugs": {
"url": "https://github.com/ringcentral/testring/issues"
Expand Down
3 changes: 3 additions & 0 deletions core/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/pluggable-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/plugin-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/test-run-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/test-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/testring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions core/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"test:ci": "npm run test:coverage && npm run test:e2e",
"build": "npm run build:main && npm run build:devtool && npm run build:extension",
"build:watch": "lerna exec --ignore=\"@testring/@(e2e-test-app|devtool-frontend|devtool-extension|ui-kit)\" --parallel -- tsc --watch --inlineSourceMap",
"build:main": "lerna exec --ignore=\"@testring/@(e2e-test-app|devtool-frontend|devtool-extension|ui-kit)\" -- tsc -p tsconfig.build.json",
"build:main": "lerna run build --ignore=\"@testring/@(e2e-test-app|devtool-frontend|devtool-extension|ui-kit)\"",
"check-types:main": "lerna exec --ignore=\"@testring/@(e2e-test-app|devtool-frontend|devtool-extension|ui-kit)\" -- tsc",
"build:devtool": "lerna run --stream --scope @testring/devtool-frontend build",
"build:extension": "lerna run --stream --scope @testring/devtool-extension build",
Expand Down
3 changes: 3 additions & 0 deletions packages/browser-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/client-ws-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/devtool-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"license": "MIT",
"scripts": {
"start": "ts-node src/test-server.ts",
"start:watch": "nodemon --watch 'src/**/*' -e ts,tsx --exec 'ts-node' ./src/index.ts"
"start:watch": "nodemon --watch 'src/**/*' -e ts,tsx --exec 'ts-node' ./src/index.ts",
"build": "tsc -p tsconfig.build.json"
},
"dependencies": {
"@testring/child-process": "0.8.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/devtool-extension/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"manifest_version": 2,
"name": "TestRing",
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"description": "TestRing recording extension.",
"browser_action": {
Expand Down
5 changes: 3 additions & 2 deletions packages/download-collector-crx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"author": "RingCentral",
"license": "MIT",
"scripts": {
"postinstall": "shx mkdir -p dist && crx pack src/extension -o dist/extension.crx"
"postinstall": "shx mkdir -p dist && crx pack src/extension -o dist/extension.crx",
"build": "tsc -p tsconfig.build.json"
},
"dependencies": {
"crx": "5.0.1",
"shx": "0.3.4"
}
}
}
1 change: 1 addition & 0 deletions packages/e2e-test-app/test/selenium/config.coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = async (config) => {
{
clientTimeout: 60000,
path: '/wd/hub',
localVersion: 'v4',
chromeDriverPath: process.env['CHROMEDRIVER_PATH'] || chromedriver.executablePath,
workerLimit: 'local',
capabilities: local
Expand Down
3 changes: 3 additions & 0 deletions packages/element-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT"
}
3 changes: 3 additions & 0 deletions packages/http-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-fs-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@testring/transport": "0.8.1"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"build": "tsc -p tsconfig.build.json"
},
"bugs": {
"url": "https://github.com/ringcentral/testring/issues"
Expand Down
40 changes: 40 additions & 0 deletions packages/plugin-selenium-driver/copy-selenium-server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
const fs = require('fs');
const path = require('path');

/**
* Copy selenium-server folder to dist directory
*/
function copySeleniumServer() {
const sourceDir = path.join(__dirname, 'src', 'selenium-server-v4');
const destDir = path.join(__dirname, 'dist', 'selenium-server-v4');

try {
// Check if source directory exists
if (!fs.existsSync(sourceDir)) {
console.error(`Source directory does not exist: ${sourceDir}`);
process.exit(1);
}

// Create dist directory if it doesn't exist
const distDir = path.join(__dirname, 'dist');
if (!fs.existsSync(distDir)) {
fs.mkdirSync(distDir, { recursive: true });
}

// Remove existing selenium-server folder in dist if it exists
if (fs.existsSync(destDir)) {
fs.rmSync(destDir, { recursive: true, force: true });
}

// Copy the entire selenium-server folder
fs.cpSync(sourceDir, destDir, { recursive: true });

console.log(`Successfully copied selenium-server folder to ${destDir}`);
} catch (error) {
console.error('Error copying selenium-server folder:', error.message);
process.exit(1);
}
}

// Run the copy function
copySeleniumServer();
3 changes: 3 additions & 0 deletions packages/plugin-selenium-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"type": "git",
"url": "https://github.com/ringcentral/testring.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json && node copy-selenium-server.js"
},
"author": "RingCentral",
"license": "MIT",
"dependencies": {
Expand Down
Loading