init the repo

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
commit 5b367486ce
7 changed files with 70 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
.vscode
node_modules
package-lock.json
build

4
.prettierrc Normal file
View File

@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# rrweb-snapshot
Not ready yet

33
package.json Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "rrweb-snapshot",
"version": "0.1.0",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"main": "index.js",
"scripts": {
"test": "mocha -r ts-node/register src/**/*.test.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rrweb-io/rrweb-snapshot.git"
},
"keywords": [
"rrweb",
"snapshot",
"DOM"
],
"author": "yanzhen@smartx.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/rrweb-io/rrweb-snapshot/issues"
},
"homepage": "https://github.com/rrweb-io/rrweb-snapshot#readme",
"devDependencies": {
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"ts-node": "^7.0.1",
"tslint": "^4.5.1",
"typescript": "^3.0.3"
}
}

0
src/index.ts Normal file
View File

12
tsconfig.json Normal file
View File

@@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"rootDir": "src",
"outDir": "build"
},
"compileOnSave": true
}

14
tslint.json Normal file
View File

@@ -0,0 +1,14 @@
{
"defaultSeverity": "error",
"extends": ["tslint:recommended"],
"jsRules": {},
"rules": {
"no-any": true,
"quotemark": [true, "single"],
"ordered-imports": false,
"object-literal-sort-keys": false,
"no-unused-variable": true,
"object-literal-key-quotes": false
},
"rulesDirectory": []
}