moved rrweb into packages/rrweb
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -3,10 +3,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
# yarn.lock
|
# yarn.lock
|
||||||
build
|
|
||||||
dist
|
|
||||||
es
|
|
||||||
lib
|
|
||||||
|
|
||||||
temp
|
temp
|
||||||
|
|
||||||
|
|||||||
@@ -11,5 +11,9 @@ install:
|
|||||||
- yarn
|
- yarn
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- cd packages/rrweb-snapshot
|
||||||
|
- yarn bundle
|
||||||
|
- yarn test
|
||||||
|
- cd ../rrweb
|
||||||
- yarn check-types
|
- yarn check-types
|
||||||
- xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
|
- xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
|
||||||
69
package.json
69
package.json
@@ -1,19 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "rrweb",
|
|
||||||
"version": "1.0.2",
|
|
||||||
"description": "record and replay the web",
|
"description": "record and replay the web",
|
||||||
"scripts": {
|
|
||||||
"prepare": "npm run prepack",
|
|
||||||
"prepack": "npm run bundle",
|
|
||||||
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts",
|
|
||||||
"test:headless": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true PUPPETEER_HEADLESS=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts",
|
|
||||||
"test:watch": "PUPPETEER_HEADLESS=true npm run test -- --watch --watch-extensions js,ts",
|
|
||||||
"repl": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts",
|
|
||||||
"bundle:browser": "cross-env BROWSER_ONLY=true rollup --config",
|
|
||||||
"bundle": "rollup --config",
|
|
||||||
"typings": "tsc -d --declarationDir typings",
|
|
||||||
"check-types": "tsc -noEmit"
|
|
||||||
},
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+ssh://git@github.com/rrweb-io/rrweb.git"
|
"url": "git+ssh://git@github.com/rrweb-io/rrweb.git"
|
||||||
@@ -21,59 +7,16 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"rrweb"
|
"rrweb"
|
||||||
],
|
],
|
||||||
"main": "lib/rrweb-all.js",
|
|
||||||
"module": "es/rrweb/src/entries/all.js",
|
|
||||||
"unpkg": "dist/rrweb.js",
|
|
||||||
"sideEffects": false,
|
|
||||||
"typings": "typings/entries/all.d.ts",
|
|
||||||
"files": [
|
|
||||||
"dist",
|
|
||||||
"lib",
|
|
||||||
"es",
|
|
||||||
"typings"
|
|
||||||
],
|
|
||||||
"author": "yanzhen@smartx.com",
|
"author": "yanzhen@smartx.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/rrweb-io/rrweb/issues"
|
"url": "https://github.com/rrweb-io/rrweb/issues"
|
||||||
},
|
},
|
||||||
|
"private": true,
|
||||||
"homepage": "https://github.com/rrweb-io/rrweb#readme",
|
"homepage": "https://github.com/rrweb-io/rrweb#readme",
|
||||||
"devDependencies": {
|
"workspaces": [
|
||||||
"@types/chai": "^4.1.6",
|
"packages/rrweb",
|
||||||
"@types/inquirer": "0.0.43",
|
"packages/rrweb-snapshot",
|
||||||
"@types/jsdom": "^16.2.12",
|
"packages/rrweb-player"
|
||||||
"@types/mocha": "^5.2.5",
|
]
|
||||||
"@types/node": "^12.20.16",
|
|
||||||
"@types/prettier": "^2.3.2",
|
|
||||||
"@types/puppeteer": "^5.4.3",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"cross-env": "^5.2.0",
|
|
||||||
"fast-mhtml": "^1.1.9",
|
|
||||||
"ignore-styles": "^5.0.1",
|
|
||||||
"inquirer": "^6.2.1",
|
|
||||||
"jest-snapshot": "^23.6.0",
|
|
||||||
"jsdom": "^16.6.0",
|
|
||||||
"jsdom-global": "^3.0.2",
|
|
||||||
"mocha": "^5.2.0",
|
|
||||||
"prettier": "2.2.1",
|
|
||||||
"puppeteer": "^9.1.1",
|
|
||||||
"rollup": "^2.3.3",
|
|
||||||
"rollup-plugin-commonjs": "^9.2.0",
|
|
||||||
"rollup-plugin-node-resolve": "^3.4.0",
|
|
||||||
"rollup-plugin-postcss": "^3.1.1",
|
|
||||||
"rollup-plugin-rename-node-modules": "^1.1.0",
|
|
||||||
"rollup-plugin-terser": "^5.3.0",
|
|
||||||
"rollup-plugin-typescript": "^1.0.0",
|
|
||||||
"ts-node": "^7.0.1",
|
|
||||||
"tslib": "^1.9.3",
|
|
||||||
"tslint": "^4.5.1",
|
|
||||||
"typescript": "^3.9.5"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@types/css-font-loading-module": "0.0.4",
|
|
||||||
"@xstate/fsm": "^1.4.0",
|
|
||||||
"fflate": "^0.4.4",
|
|
||||||
"mitt": "^1.1.3",
|
|
||||||
"rrweb-snapshot": "^1.1.7"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tsconfig/svelte": "^1.0.0",
|
"@tsconfig/svelte": "^1.0.0",
|
||||||
"rrweb": "^1.0.1"
|
"rrweb": "^1.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
|
|||||||
8
packages/rrweb-snapshot/.gitignore
vendored
Normal file
8
packages/rrweb-snapshot/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
.vscode
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
es
|
||||||
|
lib
|
||||||
|
temp
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb-snapshot/graphs/contributors) and SmartX Inc.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
15
packages/rrweb/.gitignore
vendored
Normal file
15
packages/rrweb/.gitignore
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
# yarn.lock
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
es
|
||||||
|
lib
|
||||||
|
|
||||||
|
temp
|
||||||
|
|
||||||
|
*.log
|
||||||
|
|
||||||
|
.env
|
||||||
79
packages/rrweb/package.json
Normal file
79
packages/rrweb/package.json
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"name": "rrweb",
|
||||||
|
"version": "1.0.2",
|
||||||
|
"description": "record and replay the web",
|
||||||
|
"scripts": {
|
||||||
|
"prepare": "npm run prepack",
|
||||||
|
"prepack": "npm run bundle",
|
||||||
|
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts",
|
||||||
|
"test:headless": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true PUPPETEER_HEADLESS=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts",
|
||||||
|
"test:watch": "PUPPETEER_HEADLESS=true npm run test -- --watch --watch-extensions js,ts",
|
||||||
|
"repl": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts",
|
||||||
|
"bundle:browser": "cross-env BROWSER_ONLY=true rollup --config",
|
||||||
|
"bundle": "rollup --config",
|
||||||
|
"typings": "tsc -d --declarationDir typings",
|
||||||
|
"check-types": "tsc -noEmit"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+ssh://git@github.com/rrweb-io/rrweb.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"rrweb"
|
||||||
|
],
|
||||||
|
"main": "lib/rrweb-all.js",
|
||||||
|
"module": "es/rrweb/src/entries/all.js",
|
||||||
|
"unpkg": "dist/rrweb.js",
|
||||||
|
"sideEffects": false,
|
||||||
|
"typings": "typings/entries/all.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist",
|
||||||
|
"lib",
|
||||||
|
"es",
|
||||||
|
"typings"
|
||||||
|
],
|
||||||
|
"author": "yanzhen@smartx.com",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/rrweb-io/rrweb/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/rrweb-io/rrweb#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/chai": "^4.1.6",
|
||||||
|
"@types/inquirer": "0.0.43",
|
||||||
|
"@types/jsdom": "^16.2.12",
|
||||||
|
"@types/mocha": "^5.2.5",
|
||||||
|
"@types/node": "^12.20.16",
|
||||||
|
"@types/prettier": "^2.3.2",
|
||||||
|
"@types/puppeteer": "^5.4.3",
|
||||||
|
"chai": "^4.2.0",
|
||||||
|
"cross-env": "^5.2.0",
|
||||||
|
"fast-mhtml": "^1.1.9",
|
||||||
|
"ignore-styles": "^5.0.1",
|
||||||
|
"inquirer": "^6.2.1",
|
||||||
|
"jest-snapshot": "^23.6.0",
|
||||||
|
"jsdom": "^16.6.0",
|
||||||
|
"jsdom-global": "^3.0.2",
|
||||||
|
"mocha": "^5.2.0",
|
||||||
|
"prettier": "2.2.1",
|
||||||
|
"puppeteer": "^9.1.1",
|
||||||
|
"rollup": "^2.3.3",
|
||||||
|
"rollup-plugin-commonjs": "^9.2.0",
|
||||||
|
"rollup-plugin-node-resolve": "^3.4.0",
|
||||||
|
"rollup-plugin-postcss": "^3.1.1",
|
||||||
|
"rollup-plugin-rename-node-modules": "^1.1.0",
|
||||||
|
"rollup-plugin-terser": "^5.3.0",
|
||||||
|
"rollup-plugin-typescript": "^1.0.0",
|
||||||
|
"ts-node": "^7.0.1",
|
||||||
|
"tslib": "^1.9.3",
|
||||||
|
"tslint": "^4.5.1",
|
||||||
|
"typescript": "^3.9.5"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/css-font-loading-module": "0.0.4",
|
||||||
|
"@xstate/fsm": "^1.4.0",
|
||||||
|
"fflate": "^0.4.4",
|
||||||
|
"mitt": "^1.1.3",
|
||||||
|
"rrweb-snapshot": "^1.1.7"
|
||||||
|
}
|
||||||
|
}
|
||||||
0
test.d.ts → packages/rrweb/test.d.ts
vendored
0
test.d.ts → packages/rrweb/test.d.ts
vendored
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user