commit
e5c813949f
5 changed files with 2110 additions and 2757 deletions
|
|
@ -92,24 +92,19 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
build-node-12:
|
build-node-16:
|
||||||
<<: *build-common
|
|
||||||
docker:
|
|
||||||
- image: node:12
|
|
||||||
|
|
||||||
build-node-15:
|
|
||||||
<<: *build-common
|
|
||||||
docker:
|
|
||||||
- image: node:15
|
|
||||||
|
|
||||||
build-node-14:
|
|
||||||
<<: *build-stable
|
<<: *build-stable
|
||||||
docker:
|
docker:
|
||||||
- image: node:14
|
- image: node:16
|
||||||
|
|
||||||
|
build-node-17:
|
||||||
|
<<: *build-common
|
||||||
|
docker:
|
||||||
|
- image: node:17
|
||||||
|
|
||||||
tag_version:
|
tag_version:
|
||||||
docker:
|
docker:
|
||||||
- image: node:14
|
- image: node:16
|
||||||
working_directory: ~/workdir
|
working_directory: ~/workdir
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
|
|
@ -127,7 +122,7 @@ jobs:
|
||||||
|
|
||||||
publish_library:
|
publish_library:
|
||||||
docker:
|
docker:
|
||||||
- image: node:14
|
- image: node:16
|
||||||
working_directory: ~/workdir
|
working_directory: ~/workdir
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
|
|
@ -198,21 +193,17 @@ workflows:
|
||||||
validate-and-publish:
|
validate-and-publish:
|
||||||
jobs:
|
jobs:
|
||||||
- checkout-and-version
|
- checkout-and-version
|
||||||
- build-node-12:
|
- build-node-16:
|
||||||
requires:
|
requires:
|
||||||
- checkout-and-version
|
- checkout-and-version
|
||||||
- build-node-14:
|
- build-node-17:
|
||||||
requires:
|
|
||||||
- checkout-and-version
|
|
||||||
- build-node-15:
|
|
||||||
requires:
|
requires:
|
||||||
- checkout-and-version
|
- checkout-and-version
|
||||||
- publish_approval:
|
- publish_approval:
|
||||||
type: approval
|
type: approval
|
||||||
requires:
|
requires:
|
||||||
- build-node-12
|
- build-node-16
|
||||||
- build-node-14
|
- build-node-17
|
||||||
- build-node-15
|
|
||||||
- tag_version:
|
- tag_version:
|
||||||
requires:
|
requires:
|
||||||
- publish_approval
|
- publish_approval
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "css",
|
"htmlWhitespaceSensitivity": "css",
|
||||||
"insertPragma": false,
|
"insertPragma": false,
|
||||||
"jsxBracketSameLine": false,
|
|
||||||
"jsxSingleQuote": false,
|
"jsxSingleQuote": false,
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
"proseWrap": "always",
|
"proseWrap": "always",
|
||||||
|
|
|
||||||
75
package.json
75
package.json
|
|
@ -85,61 +85,59 @@
|
||||||
"hogan.js": "3.0.2"
|
"hogan.js": "3.0.2"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"highlight.js": "11.2.0"
|
"highlight.js": "11.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/copy-webpack-plugin": "8.0.1",
|
"@types/diff": "5.0.2",
|
||||||
"@types/diff": "5.0.1",
|
|
||||||
"@types/hogan.js": "3.0.1",
|
"@types/hogan.js": "3.0.1",
|
||||||
"@types/jest": "27.0.2",
|
"@types/jest": "27.4.1",
|
||||||
"@types/mini-css-extract-plugin": "^2.3.0",
|
|
||||||
"@types/mkdirp": "1.0.2",
|
"@types/mkdirp": "1.0.2",
|
||||||
"@types/node": "16.11.0",
|
"@types/node": "17.0.24",
|
||||||
"@types/nopt": "3.0.29",
|
"@types/nopt": "3.0.29",
|
||||||
"@typescript-eslint/eslint-plugin": "5.0.0",
|
"@typescript-eslint/eslint-plugin": "5.19.0",
|
||||||
"@typescript-eslint/parser": "5.0.0",
|
"@typescript-eslint/parser": "5.19.0",
|
||||||
"all-contributors-cli": "^6.20.0",
|
"all-contributors-cli": "^6.20.0",
|
||||||
"autoprefixer": "10.3.7",
|
"autoprefixer": "10.4.4",
|
||||||
"bulma": "^0.9.2",
|
"bulma": "^0.9.2",
|
||||||
"clipboard": "2.0.8",
|
"clipboard": "2.0.10",
|
||||||
"copy-webpack-plugin": "9.0.1",
|
"copy-webpack-plugin": "10.2.4",
|
||||||
"css-loader": "6.4.0",
|
"css-loader": "6.7.1",
|
||||||
"cssnano": "5.0.8",
|
"cssnano": "5.1.7",
|
||||||
"eslint": "8.0.1",
|
"eslint": "8.13.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.5.0",
|
||||||
"eslint-plugin-import": "2.25.2",
|
"eslint-plugin-import": "2.26.0",
|
||||||
"eslint-plugin-jest": "25.2.1",
|
"eslint-plugin-jest": "26.1.4",
|
||||||
"eslint-plugin-json": "3.1.0",
|
"eslint-plugin-json": "3.1.0",
|
||||||
"eslint-plugin-node": "11.1.0",
|
"eslint-plugin-node": "11.1.0",
|
||||||
"eslint-plugin-optimize-regex": "1.2.1",
|
"eslint-plugin-optimize-regex": "1.2.1",
|
||||||
"eslint-plugin-promise": "5.1.0",
|
"eslint-plugin-promise": "6.0.0",
|
||||||
"eslint-plugin-sonarjs": "0.10.0",
|
"eslint-plugin-sonarjs": "0.13.0",
|
||||||
"file-loader": "6.2.0",
|
"file-loader": "6.2.0",
|
||||||
"handlebars": "4.7.7",
|
"handlebars": "4.7.7",
|
||||||
"handlebars-loader": "1.7.1",
|
"handlebars-loader": "1.7.1",
|
||||||
"html-webpack-plugin": "5.4.0",
|
"html-webpack-plugin": "5.5.0",
|
||||||
"husky": "^7.0.2",
|
"husky": "^7.0.2",
|
||||||
"image-webpack-loader": "8.0.1",
|
"image-webpack-loader": "8.1.0",
|
||||||
"is-ci-cli": "2.2.0",
|
"is-ci-cli": "2.2.0",
|
||||||
"jest": "27.2.5",
|
"jest": "27.5.1",
|
||||||
"lint-staged": "11.2.3",
|
"lint-staged": "12.3.8",
|
||||||
"markdown-toc": "^1.2.0",
|
"markdown-toc": "^1.2.0",
|
||||||
"mini-css-extract-plugin": "2.4.2",
|
"mini-css-extract-plugin": "2.6.0",
|
||||||
"mkdirp": "1.0.4",
|
"mkdirp": "1.0.4",
|
||||||
"nopt": "5.0.0",
|
"nopt": "5.0.0",
|
||||||
"postcss": "8.3.9",
|
"postcss": "8.4.12",
|
||||||
"postcss-cli": "9.0.1",
|
"postcss-cli": "9.1.0",
|
||||||
"postcss-import": "14.0.2",
|
"postcss-import": "14.1.0",
|
||||||
"postcss-loader": "6.2.0",
|
"postcss-loader": "6.2.1",
|
||||||
"postcss-preset-env": "6.7.0",
|
"postcss-preset-env": "7.4.3",
|
||||||
"prettier": "2.4.1",
|
"prettier": "2.6.2",
|
||||||
"ts-jest": "27.0.6",
|
"ts-jest": "27.1.4",
|
||||||
"ts-loader": "9.2.6",
|
"ts-loader": "9.2.8",
|
||||||
"ts-node": "10.3.0",
|
"ts-node": "10.7.0",
|
||||||
"typescript": "4.4.4",
|
"typescript": "4.6.3",
|
||||||
"url-loader": "4.1.1",
|
"url-loader": "4.1.1",
|
||||||
"webpack": "5.58.2",
|
"webpack": "5.72.0",
|
||||||
"webpack-cli": "4.9.0",
|
"webpack-cli": "4.9.2",
|
||||||
"whatwg-fetch": "3.6.2"
|
"whatwg-fetch": "3.6.2"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
@ -149,7 +147,10 @@
|
||||||
"autolinker": ">=3.14.1",
|
"autolinker": ">=3.14.1",
|
||||||
"bl": ">=2.2.1",
|
"bl": ">=2.2.1",
|
||||||
"decompress": ">=4.2.1",
|
"decompress": ">=4.2.1",
|
||||||
"node-forge": ">=0.10.0"
|
"node-forge": ">=0.10.0",
|
||||||
|
"trim-newlines": ">=3.0.1",
|
||||||
|
"semver-regex": ">=3.1.3",
|
||||||
|
"async": ">=2.6.4"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@ import path from 'path';
|
||||||
import webpack from 'webpack';
|
import webpack from 'webpack';
|
||||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
||||||
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
// eslint-disable-next-line import/default
|
||||||
|
import CopyPlugin from 'copy-webpack-plugin';
|
||||||
|
|
||||||
const pages = ['index', 'demo'];
|
const pages = ['index', 'demo'];
|
||||||
|
|
||||||
|
|
@ -11,8 +12,6 @@ type Plugin = ((this: webpack.Compiler, compiler: webpack.Compiler) => void) | w
|
||||||
|
|
||||||
function plugins(page: string): Plugin[] {
|
function plugins(page: string): Plugin[] {
|
||||||
return [
|
return [
|
||||||
//eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
//@ts-ignore
|
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: '[name].css',
|
filename: '[name].css',
|
||||||
chunkFilename: '[id].css',
|
chunkFilename: '[id].css',
|
||||||
|
|
@ -39,9 +38,7 @@ function plugins(page: string): Plugin[] {
|
||||||
minifyURLs: true,
|
minifyURLs: true,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
//eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
new CopyPlugin({
|
||||||
//@ts-ignore
|
|
||||||
new CopyWebpackPlugin({
|
|
||||||
patterns: [
|
patterns: [
|
||||||
{ from: 'website/favicon.ico', to: 'favicon.ico' },
|
{ from: 'website/favicon.ico', to: 'favicon.ico' },
|
||||||
{ from: 'website/robots.txt', to: 'robots.txt' },
|
{ from: 'website/robots.txt', to: 'robots.txt' },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue