This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move tt-automation to platforms folder (#544)
- Loading branch information
1 parent
3fae71e
commit 0b4e14a
Showing
146 changed files
with
168 additions
and
1,433 deletions.
There are no files selected for viewing
Binary file removed
BIN
-3.31 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.16.7-9e572698e0-d08dd86554.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.65 KB
.yarn/cache/@babel-plugin-syntax-jsx-npm-7.16.7-06e2646d53-cd9b0e53c5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-44.3 KB
.yarn/cache/@cspotcode-source-map-consumer-npm-0.8.0-1f37e9e72b-c0c16ca3d2.zip
Binary file not shown.
Binary file removed
BIN
-16 KB
.yarn/cache/@cspotcode-source-map-support-npm-0.7.0-456c3ea2ce-9faddda775.zip
Binary file not shown.
Binary file removed
BIN
-17.1 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.4-d0db906c7f-ab8bce84bb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.86 KB
.yarn/cache/@types-pouchdb-adapter-http-npm-6.1.3-4d78de7587-ce7299690c.zip
Binary file not shown.
Binary file removed
BIN
-2.9 KB
.yarn/cache/@types-pouchdb-adapter-leveldb-npm-6.1.3-f4bdb5940b-ebd3b6b643.zip
Binary file not shown.
Binary file removed
BIN
-9.9 KB
.yarn/cache/@types-pouchdb-core-npm-7.0.10-cfec4d79ed-4cb272e572.zip
Binary file not shown.
Binary file removed
BIN
-4.28 KB
.yarn/cache/@types-pouchdb-find-npm-6.3.7-90c0d03205-425cbfac52.zip
Binary file not shown.
Binary file removed
BIN
-4.35 KB
.yarn/cache/@types-pouchdb-mapreduce-npm-6.1.6-35a90a5229-9836e3f988.zip
Binary file not shown.
Binary file removed
BIN
-3.23 KB
.yarn/cache/@types-pouchdb-node-npm-6.1.4-8934ef523c-719f21d511.zip
Binary file not shown.
Binary file removed
BIN
-5.15 KB
.yarn/cache/@types-pouchdb-replication-npm-6.4.3-c0b178db23-5cda9d0727.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8.77 KB
.yarn/cache/double-ended-queue-npm-2.1.0-0-24dce6d2ad-3030cf9dcf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-28 KB
.yarn/cache/http-proxy-middleware-npm-2.0.3-a58ffdffd9-f121d5515e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.23 KB
.yarn/cache/is-shared-array-buffer-npm-1.0.1-84bc270861-2ffb92533e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8.91 KB
.yarn/cache/level-iterator-stream-npm-4.0.2-27e0549122-239e2c7e62.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.4 KB
.yarn/cache/multicast-dns-service-types-npm-1.1.0-d019ff060c-0979fca1cc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-24.6 KB
.yarn/cache/pouchdb-abstract-mapreduce-npm-7.2.2-eb97e7db20-926d170d9f.zip
Binary file not shown.
Binary file removed
BIN
-10.9 KB
.yarn/cache/pouchdb-binary-utils-npm-7.2.2-ca0626a732-51539326ce.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.57 KB
.yarn/cache/pouchdb-collections-npm-7.2.2-d91e77566a-9d5e9dc2fc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.59 KB
.yarn/cache/pouchdb-mapreduce-utils-npm-7.2.2-7efc88972d-bcfe2a4a41.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.8 KB
.yarn/cache/pouchdb-selector-core-npm-7.2.2-a848e85e64-efc39101a6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-14.7 KB
.yarn/cache/regexp.prototype.flags-npm-1.4.1-5ee0a77015-77944a3ea5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10.2 KB
.yarn/cache/string.prototype.trimend-npm-1.0.4-a656b8fe24-17e5aa45c3.zip
Binary file not shown.
Binary file removed
BIN
-10.3 KB
.yarn/cache/string.prototype.trimstart-npm-1.0.4-b31f5e7c85-3fb06818d3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.66 KB
.yarn/cache/v8-compile-cache-lib-npm-3.0.0-82045dda32-674e312bbc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "@trex/tt-automation", | ||
"name": "tt-automate", | ||
"version": "2.5.4", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
@@ -14,6 +14,9 @@ | |
"test": "jest --verbose", | ||
"tdd": "jest --watch --verbose" | ||
}, | ||
"bin": { | ||
"cli": "./bin/cli.js" | ||
}, | ||
"main": "./dist/index.js", | ||
"devDependencies": { | ||
"@types/node": "^16.11.36", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import * as t from 'io-ts'; | ||
|
||
export const MinimalProjectConfig = t.type( | ||
{ | ||
experimentType: t.string, | ||
useStealth: t.boolean, | ||
proxy: t.union([t.null, t.string]), | ||
}, | ||
'MinimalProjectConfig' | ||
); | ||
export type MinimalProjectConfig = t.TypeOf<typeof MinimalProjectConfig>; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import * as t from 'io-ts'; | ||
import * as path from 'path'; | ||
import { getConfig } from '../../packages/shared/src/webpack/config'; | ||
import packageJson from './package.json'; | ||
|
||
process.env.VERSION = packageJson.version; | ||
|
||
const { buildENV: env, ...config } = getConfig({ | ||
cwd: __dirname, | ||
outputDir: path.resolve(__dirname, 'build'), | ||
env: t.strict({}), | ||
hot: false, | ||
target: 'node16', | ||
entry: { | ||
'cli': path.resolve(__dirname, 'src/index.ts'), | ||
}, | ||
}); | ||
|
||
config.module?.rules?.push( | ||
{ | ||
// this is a hack to get webpack to be able to bundle | ||
// puppeteer-extra, found here: | ||
// https://github.com/berstend/puppeteer-extra/issues/93 | ||
// this also requires the TypeScript to emit import / export statements | ||
// i.e. ES6+ nodules to work | ||
test: /node_modules\/puppeteer-extra\/dist\/index\.esm\.js/, | ||
loader: 'string-replace-loader', | ||
options: { | ||
// match a require function call where the argument isn't a string | ||
// also capture the first character of the args so we can ignore it later | ||
search: 'require[(]([^\'"])', | ||
// replace the 'require(' with a '__non_webpack_require__(', meaning it will require the files at runtime | ||
// $1 grabs the first capture group from the regex, the one character we matched and don't want to lose | ||
replace: '__non_webpack_require__($1', | ||
flags: 'g', | ||
}, | ||
}, | ||
{ | ||
// also part of the puppeteer-extra hack | ||
test: /\.js$/, | ||
use: 'unlazy-loader', | ||
}, | ||
{ | ||
// this is required by canvas, part of linkedom | ||
test: /\.node$/, | ||
use: 'node-loader', | ||
} | ||
); | ||
|
||
export default [ | ||
// guardoni TK cli | ||
{ | ||
...config, | ||
output: { | ||
...config.output, | ||
libraryTarget: 'commonjs', | ||
}, | ||
node: { | ||
__dirname: false, | ||
}, | ||
devtool: 'source-map', | ||
}, | ||
]; |
Oops, something went wrong.