commit
8d34de633a
8 changed files with 2570 additions and 2239 deletions
2
.github/workflows/test-and-publish.yml
vendored
2
.github/workflows/test-and-publish.yml
vendored
|
|
@ -52,7 +52,7 @@ jobs:
|
|||
needs: [version]
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x, 18.x]
|
||||
node-version: [16.x, 18.x, 20.x]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
#### Example with plain HTML+CSS+JS
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
@ -453,7 +453,7 @@ export class AppDiffComponent implements OnInit {
|
|||
- HTML
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>diff2html</title>
|
||||
|
|
|
|||
69
package.json
69
package.json
|
|
@ -85,60 +85,59 @@
|
|||
"hogan.js": "3.0.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"highlight.js": "11.6.0"
|
||||
"highlight.js": "11.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/diff": "5.0.2",
|
||||
"@types/diff": "5.0.3",
|
||||
"@types/hogan.js": "3.0.1",
|
||||
"@types/jest": "29.2.0",
|
||||
"@types/mkdirp": "1.0.2",
|
||||
"@types/node": "18.11.3",
|
||||
"@types/jest": "29.5.3",
|
||||
"@types/node": "20.4.8",
|
||||
"@types/nopt": "3.0.29",
|
||||
"@typescript-eslint/eslint-plugin": "5.40.1",
|
||||
"@typescript-eslint/parser": "5.40.1",
|
||||
"@typescript-eslint/eslint-plugin": "6.2.1",
|
||||
"@typescript-eslint/parser": "6.2.1",
|
||||
"all-contributors-cli": "^6.24.0",
|
||||
"autoprefixer": "10.4.12",
|
||||
"autoprefixer": "10.4.14",
|
||||
"bulma": "^0.9.4",
|
||||
"clipboard": "2.0.11",
|
||||
"copy-webpack-plugin": "11.0.0",
|
||||
"css-loader": "6.7.1",
|
||||
"cssnano": "5.1.13",
|
||||
"eslint": "8.26.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-jest": "27.1.3",
|
||||
"css-loader": "6.8.1",
|
||||
"cssnano": "6.0.1",
|
||||
"eslint": "8.46.0",
|
||||
"eslint-config-prettier": "9.0.0",
|
||||
"eslint-plugin-import": "2.28.0",
|
||||
"eslint-plugin-jest": "27.2.3",
|
||||
"eslint-plugin-json": "3.1.0",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-optimize-regex": "1.2.1",
|
||||
"eslint-plugin-promise": "6.1.1",
|
||||
"eslint-plugin-sonarjs": "0.16.0",
|
||||
"eslint-plugin-sonarjs": "0.20.0",
|
||||
"file-loader": "6.2.0",
|
||||
"handlebars": "4.7.7",
|
||||
"handlebars-loader": "1.7.2",
|
||||
"html-webpack-plugin": "5.5.0",
|
||||
"handlebars": "4.7.8",
|
||||
"handlebars-loader": "1.7.3",
|
||||
"html-webpack-plugin": "5.5.3",
|
||||
"husky": "^8.0.1",
|
||||
"image-webpack-loader": "8.1.0",
|
||||
"is-ci-cli": "2.2.0",
|
||||
"jest": "29.2.1",
|
||||
"lint-staged": "13.0.3",
|
||||
"jest": "29.6.2",
|
||||
"lint-staged": "13.2.3",
|
||||
"markdown-toc": "^1.2.0",
|
||||
"mini-css-extract-plugin": "2.6.1",
|
||||
"mkdirp": "1.0.4",
|
||||
"nopt": "6.0.0",
|
||||
"postcss": "8.4.18",
|
||||
"postcss-cli": "10.0.0",
|
||||
"postcss-import": "15.0.0",
|
||||
"postcss-loader": "7.0.1",
|
||||
"postcss-preset-env": "7.8.2",
|
||||
"prettier": "2.7.1",
|
||||
"ts-jest": "29.0.3",
|
||||
"ts-loader": "9.4.1",
|
||||
"mini-css-extract-plugin": "2.7.6",
|
||||
"mkdirp": "3.0.1",
|
||||
"nopt": "7.2.0",
|
||||
"postcss": "8.4.27",
|
||||
"postcss-cli": "10.1.0",
|
||||
"postcss-import": "15.1.0",
|
||||
"postcss-loader": "7.3.3",
|
||||
"postcss-preset-env": "9.1.1",
|
||||
"prettier": "3.0.1",
|
||||
"ts-jest": "29.1.1",
|
||||
"ts-loader": "9.4.4",
|
||||
"ts-node": "10.9.1",
|
||||
"typescript": "4.8.4",
|
||||
"typescript": "5.1.6",
|
||||
"url-loader": "4.1.1",
|
||||
"webpack": "5.76.0",
|
||||
"webpack-cli": "4.10.0",
|
||||
"whatwg-fetch": "3.6.2"
|
||||
"webpack": "5.88.2",
|
||||
"webpack-cli": "5.1.4",
|
||||
"whatwg-fetch": "3.6.17"
|
||||
},
|
||||
"resolutions": {
|
||||
"lodash": ">=4.17.20",
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
|
|||
}
|
||||
}
|
||||
|
||||
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
|
||||
export { defaultDiff2HtmlUIConfig };
|
||||
export type { Diff2HtmlUIConfig };
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
|
|||
}
|
||||
}
|
||||
|
||||
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
|
||||
export { defaultDiff2HtmlUIConfig };
|
||||
export type { Diff2HtmlUIConfig };
|
||||
|
|
|
|||
|
|
@ -1,28 +1,37 @@
|
|||
{
|
||||
"include": ["*env.d.ts", "src/**/*", "./typings/**/*"],
|
||||
"exclude": ["node_modules", "src/__tests__/**"],
|
||||
"compilerOptions": {
|
||||
"outDir": "./_target",
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"lib": ["es2020", "dom"],
|
||||
"outDir": "_target",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
"target": "ES6",
|
||||
"lib": ["ES6", "DOM"],
|
||||
"jsx": "preserve",
|
||||
"allowJs": false,
|
||||
"checkJs": false,
|
||||
"importHelpers": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"skipLibCheck": true,
|
||||
"resolveJsonModule": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
"noEmit": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true,
|
||||
"incremental": false,
|
||||
"strictNullChecks": true,
|
||||
"removeComments": true,
|
||||
"preserveConstEnums": true,
|
||||
"sourceMap": true,
|
||||
"alwaysStrict": true,
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedParameters": true,
|
||||
"noUnusedLocals": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": ["./src/**/*", "./typings/**/*"],
|
||||
"exclude": ["node_modules", "./src/__tests__/*"]
|
||||
"noImplicitThis": true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@
|
|||
}
|
||||
|
||||
.hero-booticon {
|
||||
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
|
||||
font-family:
|
||||
Helvetica Neue,
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
margin: 0 auto 30px;
|
||||
width: 100%;
|
||||
font-size: 8vw;
|
||||
|
|
|
|||
Loading…
Reference in a new issue