add lerna to manage monorepo
This commit is contained in:
Родитель
e5b0750e90
Коммит
9571c36d80
|
@ -11,9 +11,6 @@ install:
|
|||
- yarn
|
||||
|
||||
script:
|
||||
- cd packages/rrweb-snapshot
|
||||
- yarn bundle
|
||||
- yarn test
|
||||
- cd ../rrweb
|
||||
- yarn check-types
|
||||
- xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
|
||||
- yarn lerna run prepublish
|
||||
- yarn lerna run check-types
|
||||
- xvfb-run --server-args="-screen 0 1920x1080x24" yarn lerna run test
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"version": "independent",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"command": {
|
||||
"publish": {
|
||||
"message": "chore(release): publish %s"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,5 +18,8 @@
|
|||
"packages/rrweb",
|
||||
"packages/rrweb-snapshot",
|
||||
"packages/rrweb-player"
|
||||
]
|
||||
],
|
||||
"devDependencies": {
|
||||
"lerna": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
"dev": "rollup -c -w",
|
||||
"prepublishOnly": "yarn build",
|
||||
"start": "sirv public",
|
||||
"validate": "svelte-check"
|
||||
"validate": "svelte-check",
|
||||
"prepublish": "yarn build"
|
||||
},
|
||||
"description": "rrweb's replayer UI",
|
||||
"main": "lib/index.js",
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"test": "cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts",
|
||||
"bundle": "rollup --config",
|
||||
"bundle:es-only": "cross-env ES_ONLY=true rollup --config",
|
||||
"typings": "tsc -d --declarationDir typings"
|
||||
"typings": "tsc -d --declarationDir typings",
|
||||
"prepublish": "npm run typings && npm run bundle"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
"bundle:browser": "cross-env BROWSER_ONLY=true rollup --config",
|
||||
"bundle": "rollup --config",
|
||||
"typings": "tsc -d --declarationDir typings",
|
||||
"check-types": "tsc -noEmit"
|
||||
"check-types": "tsc -noEmit",
|
||||
"prepublish": "npm run typings && npm run bundle"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -39,5 +39,4 @@ export declare type Logger = {
|
|||
};
|
||||
export declare const PLUGIN_NAME = "rrweb/console@1";
|
||||
export declare const getRecordConsolePlugin: (options?: LogRecordOptions) => RecordPlugin;
|
||||
export { };
|
||||
|
||||
export {};
|
||||
|
|
|
@ -19,6 +19,7 @@ export declare class Replayer {
|
|||
private fragmentParentMap;
|
||||
private elementStateMap;
|
||||
private virtualStyleRulesMap;
|
||||
private cache;
|
||||
private imageMap;
|
||||
private mirror;
|
||||
private firstFullSnapshot;
|
||||
|
@ -38,6 +39,7 @@ export declare class Replayer {
|
|||
addEvent(rawEvent: eventWithTime | string): void;
|
||||
enableInteract(): void;
|
||||
disableInteract(): void;
|
||||
resetCache(): void;
|
||||
private setupDom;
|
||||
private handleResize;
|
||||
private getCastFn;
|
||||
|
|
3413
yarn.lock
3413
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче