Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
e243e17acb | |||
d788bdc78b | |||
3ef8a145a5 | |||
3377554969 | |||
c53d9023fe | |||
1112cfe793 | |||
fc97fac77e | |||
1530f0ad74 | |||
d6d1b063af | |||
98f8aad9c2 | |||
b37315b4ee | |||
6d1dbbb638 | |||
501d5f766f | |||
bf3ba08dde | |||
576ec20e3c | |||
6d48086266 |
372
package-lock.json
generated
372
package-lock.json
generated
@ -1,27 +1,27 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbundle",
|
"name": "@gitzone/tsbundle",
|
||||||
"version": "1.0.95",
|
"version": "1.0.103",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gitzone/tsbundle",
|
"name": "@gitzone/tsbundle",
|
||||||
"version": "1.0.95",
|
"version": "1.0.103",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.17.5",
|
"@babel/core": "^7.17.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.17.2",
|
"@babel/plugin-proposal-decorators": "^7.17.2",
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.17.2",
|
"@babel/runtime": "^7.17.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^9.0.6",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.13",
|
"@pushrocks/smartparcel": "^1.0.13",
|
||||||
"@pushrocks/smartpath": "^5.0.4",
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.2",
|
||||||
@ -42,9 +42,9 @@
|
|||||||
"tsbundle": "cli.js"
|
"tsbundle": "cli.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.48",
|
"@gitzone/tsbuild": "^2.1.59",
|
||||||
"@gitzone/tsrun": "^1.2.31",
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
"@gitzone/tstest": "^1.0.67",
|
"@gitzone/tstest": "^1.0.69",
|
||||||
"@pushrocks/tapbundle": "^5.0.2",
|
"@pushrocks/tapbundle": "^5.0.2",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
@ -126,27 +126,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/compat-data": {
|
"node_modules/@babel/compat-data": {
|
||||||
"version": "7.16.8",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcompat-data/-/compat-data-7.16.8.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcompat-data/-/compat-data-7.17.7.tgz",
|
||||||
"integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==",
|
"integrity": "sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/core": {
|
"node_modules/@babel/core": {
|
||||||
"version": "7.17.5",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.17.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.17.7.tgz",
|
||||||
"integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==",
|
"integrity": "sha512-djHlEfFHnSnTAcPb7dATbiM5HxGOP98+3JLBZtjRb5I7RXrw7kFRoG2dXM8cm3H+o11A8IFH/uprmJpwFynRNQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.1.0",
|
"@ampproject/remapping": "^2.1.0",
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "^7.16.7",
|
||||||
"@babel/generator": "^7.17.3",
|
"@babel/generator": "^7.17.7",
|
||||||
"@babel/helper-compilation-targets": "^7.16.7",
|
"@babel/helper-compilation-targets": "^7.17.7",
|
||||||
"@babel/helper-module-transforms": "^7.16.7",
|
"@babel/helper-module-transforms": "^7.17.7",
|
||||||
"@babel/helpers": "^7.17.2",
|
"@babel/helpers": "^7.17.7",
|
||||||
"@babel/parser": "^7.17.3",
|
"@babel/parser": "^7.17.7",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.17.3",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.17.0",
|
"@babel/types": "^7.17.0",
|
||||||
@ -165,9 +165,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator": {
|
"node_modules/@babel/generator": {
|
||||||
"version": "7.17.3",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fgenerator/-/generator-7.17.3.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fgenerator/-/generator-7.17.7.tgz",
|
||||||
"integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==",
|
"integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^7.17.0",
|
"@babel/types": "^7.17.0",
|
||||||
@ -204,12 +204,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-compilation-targets": {
|
"node_modules/@babel/helper-compilation-targets": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-compilation-targets/-/helper-compilation-targets-7.17.7.tgz",
|
||||||
"integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==",
|
"integrity": "sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.16.4",
|
"@babel/compat-data": "^7.17.7",
|
||||||
"@babel/helper-validator-option": "^7.16.7",
|
"@babel/helper-validator-option": "^7.16.7",
|
||||||
"browserslist": "^4.17.5",
|
"browserslist": "^4.17.5",
|
||||||
"semver": "^6.3.0"
|
"semver": "^6.3.0"
|
||||||
@ -364,19 +364,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-module-transforms": {
|
"node_modules/@babel/helper-module-transforms": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-module-transforms/-/helper-module-transforms-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-module-transforms/-/helper-module-transforms-7.17.7.tgz",
|
||||||
"integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==",
|
"integrity": "sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-environment-visitor": "^7.16.7",
|
"@babel/helper-environment-visitor": "^7.16.7",
|
||||||
"@babel/helper-module-imports": "^7.16.7",
|
"@babel/helper-module-imports": "^7.16.7",
|
||||||
"@babel/helper-simple-access": "^7.16.7",
|
"@babel/helper-simple-access": "^7.17.7",
|
||||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||||
"@babel/helper-validator-identifier": "^7.16.7",
|
"@babel/helper-validator-identifier": "^7.16.7",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.16.7",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.16.7"
|
"@babel/types": "^7.17.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@ -434,12 +434,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-simple-access": {
|
"node_modules/@babel/helper-simple-access": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-simple-access/-/helper-simple-access-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-simple-access/-/helper-simple-access-7.17.7.tgz",
|
||||||
"integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==",
|
"integrity": "sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^7.16.7"
|
"@babel/types": "^7.17.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@ -503,13 +503,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helpers": {
|
"node_modules/@babel/helpers": {
|
||||||
"version": "7.17.2",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelpers/-/helpers-7.17.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelpers/-/helpers-7.17.7.tgz",
|
||||||
"integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==",
|
"integrity": "sha512-TKsj9NkjJfTBxM7Phfy7kv6yYc4ZcOo+AaWGqQOKTPDOmcGkIFb5xNA746eKisQkm4yavUYh4InYM9S+VnO01w==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.17.0",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.17.0"
|
"@babel/types": "^7.17.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@ -531,9 +531,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.17.3",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.17.3.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.17.7.tgz",
|
||||||
"integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==",
|
"integrity": "sha512-bm3AQf45vR4gKggRfvJdYJ0gFLoCbsPxiFLSH6hTVYABptNHY6l9NrhnucVjQ/X+SPtLANT9lc0fFhikj+VBRA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
@ -1664,9 +1664,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/runtime": {
|
"node_modules/@babel/runtime": {
|
||||||
"version": "7.17.2",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fruntime/-/runtime-7.17.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fruntime/-/runtime-7.17.7.tgz",
|
||||||
"integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==",
|
"integrity": "sha512-L6rvG9GDxaLgFjg41K+5Yv9OMrU98sWe+Ykmc6FDJW/+vYZMhdOMKkISgzptMaERHvS2Y2lw9MDRm2gHhlQQoA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"regenerator-runtime": "^0.13.4"
|
"regenerator-runtime": "^0.13.4"
|
||||||
@ -1747,16 +1747,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tsbuild": {
|
"node_modules/@gitzone/tsbuild": {
|
||||||
"version": "2.1.48",
|
"version": "2.1.59",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.48.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.59.tgz",
|
||||||
"integrity": "sha512-z++3J5CNlvCqtk620ExCVHNw2vEUHDYfQs27oMb8hOFlC/zK0uolxVN511p4TcI3dxAqnM6VB/NuNdxg8ypg6g==",
|
"integrity": "sha512-x0ava10YA7ue+P+5vJOy8zn6u9Kal/6uVGd83/j0fqJFxg5k5iPyotQaXAuHNKLZ+DDLK8ljl3yvUat0pjRobw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartfile": "^9.0.6",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartpath": "^4.0.3",
|
"@pushrocks/smartpath": "^5.0.4",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"typescript": "4.7.0"
|
"typescript": "4.7.0"
|
||||||
},
|
},
|
||||||
@ -1764,31 +1765,26 @@
|
|||||||
"tsbuild": "cli.js"
|
"tsbuild": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tsbuild/node_modules/@pushrocks/smartpath": {
|
|
||||||
"version": "4.0.3",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-4.0.3.tgz",
|
|
||||||
"integrity": "sha512-KWz4DWOrB0sPfk6L4i+CPOo+UK5HXNaLI7ZAaqJe1nEWoDrpyeds1dNDaqVAmSgX4riLGxVpslKH5MnABCPsPg==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@gitzone/tsbundle": {
|
"node_modules/@gitzone/tsbundle": {
|
||||||
"version": "1.0.91",
|
"version": "1.0.99",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.91.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.99.tgz",
|
||||||
"integrity": "sha512-J4RcXcinkIlY6d2jbgAXasczr9UhTm9+MZhajnanUMFb6jAGc9a0exaPruCblGPSEnDZ3lBs4iLLUN93dglXRw==",
|
"integrity": "sha512-pF16inMC4ENR/F/8yrGkiyI/Hr3OWlShGIJdHeK9DwvdryMa/JF8JQZwKHsL0cxFA6GLyN/bcqoqxso3O+VT/g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.17.5",
|
"@babel/core": "^7.17.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.17.2",
|
"@babel/plugin-proposal-decorators": "^7.17.2",
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.17.2",
|
"@babel/runtime": "^7.17.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^9.0.5",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.13",
|
"@pushrocks/smartparcel": "^1.0.13",
|
||||||
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.2",
|
||||||
@ -1797,12 +1793,13 @@
|
|||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"@types/html-minifier": "^4.0.2",
|
"@types/html-minifier": "^4.0.2",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.21",
|
||||||
|
"esbuild": "^0.14.27",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"rollup": "^2.70.0",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "4.7.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsbundle": "cli.js"
|
"tsbundle": "cli.js"
|
||||||
@ -1825,13 +1822,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tstest": {
|
"node_modules/@gitzone/tstest": {
|
||||||
"version": "1.0.67",
|
"version": "1.0.69",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.67.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.69.tgz",
|
||||||
"integrity": "sha512-szaUuDa5RR4ErPObjB036ZKKNy35vEtpnANnbE1WFuqazjUlBN2GniOMWY8SULDryefrWCyaIbDAOJjtk62vNw==",
|
"integrity": "sha512-rfD31jhlZw3TkT8yb+EluMkVngftyG380fRrnnijlVjWvo2jI0fCwl+GzaOaLRZRZgUMm8aZLJI31in3L8upOw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gitzone/tsbundle": "^1.0.91",
|
"@gitzone/tsbundle": "^1.0.99",
|
||||||
"@gitzone/tsrun": "^1.2.31",
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/smartbrowser": "^1.0.22",
|
"@pushrocks/smartbrowser": "^1.0.22",
|
||||||
@ -1841,7 +1838,7 @@
|
|||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartshell": "^2.0.30",
|
"@pushrocks/smartshell": "^2.0.30",
|
||||||
"@pushrocks/tapbundle": "^4.0.8",
|
"@pushrocks/tapbundle": "^5.0.2",
|
||||||
"@types/figures": "^3.0.1",
|
"@types/figures": "^3.0.1",
|
||||||
"figures": "^4.0.0"
|
"figures": "^4.0.0"
|
||||||
},
|
},
|
||||||
@ -1849,61 +1846,6 @@
|
|||||||
"tstest": "cli.js"
|
"tstest": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@gitzone/tstest/node_modules/@open-wc/scoped-elements": {
|
|
||||||
"version": "1.3.4",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@open-wc%2fscoped-elements/-/scoped-elements-1.3.4.tgz",
|
|
||||||
"integrity": "sha512-WD+ObocdzcFCpBxnc8bQa7NoATeA+tJrK0/c/yV1Nx4leV+1PmJNNu+WCcuckBEGd0Op6FP8w1TidoqmVVba6g==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
||||||
"lit-html": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@gitzone/tstest/node_modules/@open-wc/testing-helpers": {
|
|
||||||
"version": "1.8.12",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@open-wc%2ftesting-helpers/-/testing-helpers-1.8.12.tgz",
|
|
||||||
"integrity": "sha512-+4exEHYvnFqI1RGDDIKFHPZ7Ws5NK1epvEku3zLaOYN3zc+huX19SndNc5+X++v8A+quN/iXbHlh80ROyNaYDA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@open-wc/scoped-elements": "^1.2.4",
|
|
||||||
"lit-element": "^2.2.1",
|
|
||||||
"lit-html": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@gitzone/tstest/node_modules/@pushrocks/tapbundle": {
|
|
||||||
"version": "4.0.8",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-4.0.8.tgz",
|
|
||||||
"integrity": "sha512-iQFmsVuq4N9vN9YE/MbGnhEKDzlKSL8CwSzC2NBI60O8mEXE+QS5uJUbBbCPm/Rh3zHCZxfjXfC0w2V46asIiQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@open-wc/testing-helpers": "^1.8.12",
|
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
|
||||||
"@pushrocks/smartenv": "^4.0.16",
|
|
||||||
"@pushrocks/smartexpect": "^1.0.12",
|
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
|
||||||
"@pushrocks/smarttime": "^3.0.45"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@gitzone/tstest/node_modules/lit-element": {
|
|
||||||
"version": "2.5.1",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/lit-element/-/lit-element-2.5.1.tgz",
|
|
||||||
"integrity": "sha512-ogu7PiJTA33bEK0xGu1dmaX5vhcRjBXCFexPja0e7P7jqLhTpNKYRPmE+GmiCaRVAbiQKGkUgkh/i6+bh++dPQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "BSD-3-Clause",
|
|
||||||
"dependencies": {
|
|
||||||
"lit-html": "^1.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@gitzone/tstest/node_modules/lit-html": {
|
|
||||||
"version": "1.4.1",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/lit-html/-/lit-html-1.4.1.tgz",
|
|
||||||
"integrity": "sha512-B9btcSgPYb1q4oSOb/PrOT6Z/H+r6xuNzfH4lFli/AWhYwdtrgQkQWBbIc6mdnf6E2IL3gDXdkkqNktpU0OZQA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "BSD-3-Clause"
|
|
||||||
},
|
|
||||||
"node_modules/@jridgewell/resolve-uri": {
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
"version": "3.0.5",
|
"version": "3.0.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/@jridgewell%2fresolve-uri/-/resolve-uri-3.0.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/@jridgewell%2fresolve-uri/-/resolve-uri-3.0.5.tgz",
|
||||||
@ -3730,9 +3672,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/smartpath": {
|
"node_modules/@pushrocks/smartpath": {
|
||||||
"version": "5.0.4",
|
"version": "5.0.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-5.0.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-5.0.5.tgz",
|
||||||
"integrity": "sha512-EwyVasx4Tx1/4lPsDlIlRvFLTekQO5JBrYnkBrMx8W2915Af6GWVD8KU6tc6ouR8VN/4OZEp3XhiSVHO3tKPAA==",
|
"integrity": "sha512-t2lXXGMpKnPlwubIcYGD6cGi2CUJxJ3t2yftVt8tHfjX68jELA5sJhFMtyD3AeFZVxePFZOCiHwWEbWkSDNnmw==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@pushrocks/smartpdf": {
|
"node_modules/@pushrocks/smartpdf": {
|
||||||
@ -10865,22 +10807,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/compat-data": {
|
"@babel/compat-data": {
|
||||||
"version": "7.16.8",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcompat-data/-/compat-data-7.16.8.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcompat-data/-/compat-data-7.17.7.tgz",
|
||||||
"integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q=="
|
"integrity": "sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ=="
|
||||||
},
|
},
|
||||||
"@babel/core": {
|
"@babel/core": {
|
||||||
"version": "7.17.5",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.17.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fcore/-/core-7.17.7.tgz",
|
||||||
"integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==",
|
"integrity": "sha512-djHlEfFHnSnTAcPb7dATbiM5HxGOP98+3JLBZtjRb5I7RXrw7kFRoG2dXM8cm3H+o11A8IFH/uprmJpwFynRNQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@ampproject/remapping": "^2.1.0",
|
"@ampproject/remapping": "^2.1.0",
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "^7.16.7",
|
||||||
"@babel/generator": "^7.17.3",
|
"@babel/generator": "^7.17.7",
|
||||||
"@babel/helper-compilation-targets": "^7.16.7",
|
"@babel/helper-compilation-targets": "^7.17.7",
|
||||||
"@babel/helper-module-transforms": "^7.16.7",
|
"@babel/helper-module-transforms": "^7.17.7",
|
||||||
"@babel/helpers": "^7.17.2",
|
"@babel/helpers": "^7.17.7",
|
||||||
"@babel/parser": "^7.17.3",
|
"@babel/parser": "^7.17.7",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.17.3",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.17.0",
|
"@babel/types": "^7.17.0",
|
||||||
@ -10892,9 +10834,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/generator": {
|
"@babel/generator": {
|
||||||
"version": "7.17.3",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fgenerator/-/generator-7.17.3.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fgenerator/-/generator-7.17.7.tgz",
|
||||||
"integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==",
|
"integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.17.0",
|
"@babel/types": "^7.17.0",
|
||||||
"jsesc": "^2.5.1",
|
"jsesc": "^2.5.1",
|
||||||
@ -10919,11 +10861,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-compilation-targets": {
|
"@babel/helper-compilation-targets": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-compilation-targets/-/helper-compilation-targets-7.17.7.tgz",
|
||||||
"integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==",
|
"integrity": "sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/compat-data": "^7.16.4",
|
"@babel/compat-data": "^7.17.7",
|
||||||
"@babel/helper-validator-option": "^7.16.7",
|
"@babel/helper-validator-option": "^7.16.7",
|
||||||
"browserslist": "^4.17.5",
|
"browserslist": "^4.17.5",
|
||||||
"semver": "^6.3.0"
|
"semver": "^6.3.0"
|
||||||
@ -11026,18 +10968,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-module-transforms": {
|
"@babel/helper-module-transforms": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-module-transforms/-/helper-module-transforms-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-module-transforms/-/helper-module-transforms-7.17.7.tgz",
|
||||||
"integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==",
|
"integrity": "sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-environment-visitor": "^7.16.7",
|
"@babel/helper-environment-visitor": "^7.16.7",
|
||||||
"@babel/helper-module-imports": "^7.16.7",
|
"@babel/helper-module-imports": "^7.16.7",
|
||||||
"@babel/helper-simple-access": "^7.16.7",
|
"@babel/helper-simple-access": "^7.17.7",
|
||||||
"@babel/helper-split-export-declaration": "^7.16.7",
|
"@babel/helper-split-export-declaration": "^7.16.7",
|
||||||
"@babel/helper-validator-identifier": "^7.16.7",
|
"@babel/helper-validator-identifier": "^7.16.7",
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.16.7",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.16.7"
|
"@babel/types": "^7.17.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-optimise-call-expression": {
|
"@babel/helper-optimise-call-expression": {
|
||||||
@ -11076,11 +11018,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-simple-access": {
|
"@babel/helper-simple-access": {
|
||||||
"version": "7.16.7",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-simple-access/-/helper-simple-access-7.16.7.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelper-simple-access/-/helper-simple-access-7.17.7.tgz",
|
||||||
"integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==",
|
"integrity": "sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.16.7"
|
"@babel/types": "^7.17.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-skip-transparent-expression-wrappers": {
|
"@babel/helper-skip-transparent-expression-wrappers": {
|
||||||
@ -11121,12 +11063,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helpers": {
|
"@babel/helpers": {
|
||||||
"version": "7.17.2",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fhelpers/-/helpers-7.17.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fhelpers/-/helpers-7.17.7.tgz",
|
||||||
"integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==",
|
"integrity": "sha512-TKsj9NkjJfTBxM7Phfy7kv6yYc4ZcOo+AaWGqQOKTPDOmcGkIFb5xNA746eKisQkm4yavUYh4InYM9S+VnO01w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/template": "^7.16.7",
|
"@babel/template": "^7.16.7",
|
||||||
"@babel/traverse": "^7.17.0",
|
"@babel/traverse": "^7.17.3",
|
||||||
"@babel/types": "^7.17.0"
|
"@babel/types": "^7.17.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -11141,9 +11083,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/parser": {
|
"@babel/parser": {
|
||||||
"version": "7.17.3",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.17.3.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fparser/-/parser-7.17.7.tgz",
|
||||||
"integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA=="
|
"integrity": "sha512-bm3AQf45vR4gKggRfvJdYJ0gFLoCbsPxiFLSH6hTVYABptNHY6l9NrhnucVjQ/X+SPtLANT9lc0fFhikj+VBRA=="
|
||||||
},
|
},
|
||||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
|
||||||
"version": "7.16.7",
|
"version": "7.16.7",
|
||||||
@ -11827,9 +11769,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/runtime": {
|
"@babel/runtime": {
|
||||||
"version": "7.17.2",
|
"version": "7.17.7",
|
||||||
"resolved": "https://verdaccio.lossless.one/@babel%2fruntime/-/runtime-7.17.2.tgz",
|
"resolved": "https://verdaccio.lossless.one/@babel%2fruntime/-/runtime-7.17.7.tgz",
|
||||||
"integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==",
|
"integrity": "sha512-L6rvG9GDxaLgFjg41K+5Yv9OMrU98sWe+Ykmc6FDJW/+vYZMhdOMKkISgzptMaERHvS2Y2lw9MDRm2gHhlQQoA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"regenerator-runtime": "^0.13.4"
|
"regenerator-runtime": "^0.13.4"
|
||||||
}
|
}
|
||||||
@ -11886,44 +11828,39 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsbuild": {
|
"@gitzone/tsbuild": {
|
||||||
"version": "2.1.48",
|
"version": "2.1.59",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.48.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.59.tgz",
|
||||||
"integrity": "sha512-z++3J5CNlvCqtk620ExCVHNw2vEUHDYfQs27oMb8hOFlC/zK0uolxVN511p4TcI3dxAqnM6VB/NuNdxg8ypg6g==",
|
"integrity": "sha512-x0ava10YA7ue+P+5vJOy8zn6u9Kal/6uVGd83/j0fqJFxg5k5iPyotQaXAuHNKLZ+DDLK8ljl3yvUat0pjRobw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartfile": "^9.0.6",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartpath": "^4.0.3",
|
"@pushrocks/smartpath": "^5.0.4",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"typescript": "4.7.0"
|
"typescript": "4.7.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@pushrocks/smartpath": {
|
|
||||||
"version": "4.0.3",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-4.0.3.tgz",
|
|
||||||
"integrity": "sha512-KWz4DWOrB0sPfk6L4i+CPOo+UK5HXNaLI7ZAaqJe1nEWoDrpyeds1dNDaqVAmSgX4riLGxVpslKH5MnABCPsPg=="
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsbundle": {
|
"@gitzone/tsbundle": {
|
||||||
"version": "1.0.91",
|
"version": "1.0.99",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.91.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.99.tgz",
|
||||||
"integrity": "sha512-J4RcXcinkIlY6d2jbgAXasczr9UhTm9+MZhajnanUMFb6jAGc9a0exaPruCblGPSEnDZ3lBs4iLLUN93dglXRw==",
|
"integrity": "sha512-pF16inMC4ENR/F/8yrGkiyI/Hr3OWlShGIJdHeK9DwvdryMa/JF8JQZwKHsL0cxFA6GLyN/bcqoqxso3O+VT/g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/core": "^7.17.5",
|
"@babel/core": "^7.17.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.17.2",
|
"@babel/plugin-proposal-decorators": "^7.17.2",
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.17.2",
|
"@babel/runtime": "^7.17.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^9.0.5",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.13",
|
"@pushrocks/smartparcel": "^1.0.13",
|
||||||
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.2",
|
||||||
@ -11932,12 +11869,13 @@
|
|||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"@types/html-minifier": "^4.0.2",
|
"@types/html-minifier": "^4.0.2",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.21",
|
||||||
|
"esbuild": "^0.14.27",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"rollup": "^2.70.0",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "4.7.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsrun": {
|
"@gitzone/tsrun": {
|
||||||
@ -11953,12 +11891,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tstest": {
|
"@gitzone/tstest": {
|
||||||
"version": "1.0.67",
|
"version": "1.0.69",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.67.tgz",
|
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.69.tgz",
|
||||||
"integrity": "sha512-szaUuDa5RR4ErPObjB036ZKKNy35vEtpnANnbE1WFuqazjUlBN2GniOMWY8SULDryefrWCyaIbDAOJjtk62vNw==",
|
"integrity": "sha512-rfD31jhlZw3TkT8yb+EluMkVngftyG380fRrnnijlVjWvo2jI0fCwl+GzaOaLRZRZgUMm8aZLJI31in3L8upOw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@gitzone/tsbundle": "^1.0.91",
|
"@gitzone/tsbundle": "^1.0.99",
|
||||||
"@gitzone/tsrun": "^1.2.31",
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/smartbrowser": "^1.0.22",
|
"@pushrocks/smartbrowser": "^1.0.22",
|
||||||
@ -11968,61 +11906,9 @@
|
|||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartshell": "^2.0.30",
|
"@pushrocks/smartshell": "^2.0.30",
|
||||||
"@pushrocks/tapbundle": "^4.0.8",
|
"@pushrocks/tapbundle": "^5.0.2",
|
||||||
"@types/figures": "^3.0.1",
|
"@types/figures": "^3.0.1",
|
||||||
"figures": "^4.0.0"
|
"figures": "^4.0.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@open-wc/scoped-elements": {
|
|
||||||
"version": "1.3.4",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@open-wc%2fscoped-elements/-/scoped-elements-1.3.4.tgz",
|
|
||||||
"integrity": "sha512-WD+ObocdzcFCpBxnc8bQa7NoATeA+tJrK0/c/yV1Nx4leV+1PmJNNu+WCcuckBEGd0Op6FP8w1TidoqmVVba6g==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
||||||
"lit-html": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@open-wc/testing-helpers": {
|
|
||||||
"version": "1.8.12",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@open-wc%2ftesting-helpers/-/testing-helpers-1.8.12.tgz",
|
|
||||||
"integrity": "sha512-+4exEHYvnFqI1RGDDIKFHPZ7Ws5NK1epvEku3zLaOYN3zc+huX19SndNc5+X++v8A+quN/iXbHlh80ROyNaYDA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@open-wc/scoped-elements": "^1.2.4",
|
|
||||||
"lit-element": "^2.2.1",
|
|
||||||
"lit-html": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@pushrocks/tapbundle": {
|
|
||||||
"version": "4.0.8",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-4.0.8.tgz",
|
|
||||||
"integrity": "sha512-iQFmsVuq4N9vN9YE/MbGnhEKDzlKSL8CwSzC2NBI60O8mEXE+QS5uJUbBbCPm/Rh3zHCZxfjXfC0w2V46asIiQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@open-wc/testing-helpers": "^1.8.12",
|
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
|
||||||
"@pushrocks/smartenv": "^4.0.16",
|
|
||||||
"@pushrocks/smartexpect": "^1.0.12",
|
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
|
||||||
"@pushrocks/smarttime": "^3.0.45"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lit-element": {
|
|
||||||
"version": "2.5.1",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/lit-element/-/lit-element-2.5.1.tgz",
|
|
||||||
"integrity": "sha512-ogu7PiJTA33bEK0xGu1dmaX5vhcRjBXCFexPja0e7P7jqLhTpNKYRPmE+GmiCaRVAbiQKGkUgkh/i6+bh++dPQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"lit-html": "^1.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lit-html": {
|
|
||||||
"version": "1.4.1",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/lit-html/-/lit-html-1.4.1.tgz",
|
|
||||||
"integrity": "sha512-B9btcSgPYb1q4oSOb/PrOT6Z/H+r6xuNzfH4lFli/AWhYwdtrgQkQWBbIc6mdnf6E2IL3gDXdkkqNktpU0OZQA==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jridgewell/resolve-uri": {
|
"@jridgewell/resolve-uri": {
|
||||||
@ -13280,9 +13166,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@pushrocks/smartpath": {
|
"@pushrocks/smartpath": {
|
||||||
"version": "5.0.4",
|
"version": "5.0.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-5.0.4.tgz",
|
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-5.0.5.tgz",
|
||||||
"integrity": "sha512-EwyVasx4Tx1/4lPsDlIlRvFLTekQO5JBrYnkBrMx8W2915Af6GWVD8KU6tc6ouR8VN/4OZEp3XhiSVHO3tKPAA=="
|
"integrity": "sha512-t2lXXGMpKnPlwubIcYGD6cGi2CUJxJ3t2yftVt8tHfjX68jELA5sJhFMtyD3AeFZVxePFZOCiHwWEbWkSDNnmw=="
|
||||||
},
|
},
|
||||||
"@pushrocks/smartpdf": {
|
"@pushrocks/smartpdf": {
|
||||||
"version": "2.0.18",
|
"version": "2.0.18",
|
||||||
|
16
package.json
16
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbundle",
|
"name": "@gitzone/tsbundle",
|
||||||
"version": "1.0.95",
|
"version": "1.0.103",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a bundler using rollup for painless bundling of web projects",
|
"description": "a bundler using rollup for painless bundling of web projects",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -10,33 +10,33 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build && (tstest test/) && (cd test && node ../cli.js --production)",
|
"test": "npm run build && (tstest test/) && (cd test && node ../cli.js --production)",
|
||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web --allowimplicitany)"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsbundle": "cli.js"
|
"tsbundle": "cli.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.48",
|
"@gitzone/tsbuild": "^2.1.59",
|
||||||
"@gitzone/tsrun": "^1.2.31",
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
"@gitzone/tstest": "^1.0.67",
|
"@gitzone/tstest": "^1.0.69",
|
||||||
"@pushrocks/tapbundle": "^5.0.2",
|
"@pushrocks/tapbundle": "^5.0.2",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.17.5",
|
"@babel/core": "^7.17.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
||||||
"@babel/plugin-proposal-decorators": "^7.17.2",
|
"@babel/plugin-proposal-decorators": "^7.17.2",
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
"@babel/runtime": "^7.17.2",
|
"@babel/runtime": "^7.17.7",
|
||||||
"@pushrocks/early": "^3.0.6",
|
"@pushrocks/early": "^3.0.6",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@pushrocks/smartcli": "^3.0.14",
|
||||||
"@pushrocks/smartfile": "^9.0.6",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"@pushrocks/smartlog": "^2.0.44",
|
"@pushrocks/smartlog": "^2.0.44",
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
||||||
"@pushrocks/smartparcel": "^1.0.13",
|
"@pushrocks/smartparcel": "^1.0.13",
|
||||||
"@pushrocks/smartpath": "^5.0.4",
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^3.1.7",
|
||||||
"@pushrocks/smartspawn": "^2.0.9",
|
"@pushrocks/smartspawn": "^2.0.9",
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.2",
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"@types/html-minifier": "^4.0.2",
|
"@types/html-minifier": "^4.0.2",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.21",
|
||||||
"esbuild": "^0.14.27",
|
"esbuild": "0.14.27",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"rollup": "^2.70.1",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@gitzone/tsbundle',
|
||||||
|
version: '1.0.103',
|
||||||
|
description: 'a bundler using rollup for painless bundling of web projects'
|
||||||
|
}
|
@ -9,5 +9,5 @@ early.stop();
|
|||||||
|
|
||||||
// lets make this usable programmatically
|
// lets make this usable programmatically
|
||||||
export * from './tsbundle.class.tsbundle.js';
|
export * from './tsbundle.class.tsbundle.js';
|
||||||
export * from './mod_rollup/htmlhandler.js';
|
export * from './mod_html/index.js';
|
||||||
export { runCli };
|
export { runCli };
|
||||||
|
@ -20,6 +20,9 @@ export class TsBundleProcess {
|
|||||||
const esbuild = await plugins.esbuild.build({
|
const esbuild = await plugins.esbuild.build({
|
||||||
entryPoints: [fromArg],
|
entryPoints: [fromArg],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
sourcemap: true,
|
||||||
|
format: 'esm',
|
||||||
|
target: 'es2020',
|
||||||
outfile: toArg
|
outfile: toArg
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -33,9 +36,16 @@ export class TsBundleProcess {
|
|||||||
argvArg: any
|
argvArg: any
|
||||||
) {
|
) {
|
||||||
// create a bundle
|
// create a bundle
|
||||||
|
console.log('esbuild specific:');
|
||||||
|
console.log(`from: ${fromArg}`);
|
||||||
|
console.log((`to: ${toArg}`));
|
||||||
const esbuild = await plugins.esbuild.build({
|
const esbuild = await plugins.esbuild.build({
|
||||||
entryPoints: [fromArg],
|
entryPoints: [fromArg],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
sourcemap: true,
|
||||||
|
format: 'esm',
|
||||||
|
target: 'es2020',
|
||||||
|
minify: true,
|
||||||
outfile: toArg
|
outfile: toArg
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -44,7 +54,7 @@ export class TsBundleProcess {
|
|||||||
const run = async () => {
|
const run = async () => {
|
||||||
console.log('running spawned compilation process');
|
console.log('running spawned compilation process');
|
||||||
const transportOptions: interfaces.IEnvTransportOptions = JSON.parse(process.env.transportOptions);
|
const transportOptions: interfaces.IEnvTransportOptions = JSON.parse(process.env.transportOptions);
|
||||||
console.log('bundling with esbuild:');
|
console.log('=======> ESBUILD');
|
||||||
console.log(transportOptions);
|
console.log(transportOptions);
|
||||||
process.chdir(transportOptions.cwd);
|
process.chdir(transportOptions.cwd);
|
||||||
console.log(`switched to ${process.cwd()}`);
|
console.log(`switched to ${process.cwd()}`);
|
||||||
@ -52,15 +62,15 @@ const run = async () => {
|
|||||||
if (transportOptions.mode === 'test') {
|
if (transportOptions.mode === 'test') {
|
||||||
console.log('building for test:')
|
console.log('building for test:')
|
||||||
tsbundleProcessInstance.buildTest(
|
tsbundleProcessInstance.buildTest(
|
||||||
plugins.path.join(process.cwd(), transportOptions.from),
|
plugins.smartpath.transform.makeAbsolute(transportOptions.from, process.cwd()),
|
||||||
plugins.path.join(process.cwd(), transportOptions.to),
|
plugins.smartpath.transform.makeAbsolute(transportOptions.to, process.cwd()),
|
||||||
transportOptions.argv
|
transportOptions.argv
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log('building for production:')
|
console.log('building for production:')
|
||||||
tsbundleProcessInstance.buildProduction(
|
tsbundleProcessInstance.buildProduction(
|
||||||
transportOptions.from,
|
plugins.smartpath.transform.makeAbsolute(transportOptions.from, process.cwd()),
|
||||||
transportOptions.to,
|
plugins.smartpath.transform.makeAbsolute(transportOptions.to, process.cwd()),
|
||||||
transportOptions.argv
|
transportOptions.argv
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
44
ts/mod_html/index.ts
Normal file
44
ts/mod_html/index.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import * as plugins from './plugins.js';
|
||||||
|
import * as paths from '../paths.js';
|
||||||
|
|
||||||
|
export class HtmlHandler {
|
||||||
|
public defaultFromPath: string = plugins.path.join(paths.htmlDir, 'index.html');
|
||||||
|
public defaultToPath: string = plugins.path.join(paths.distServeDir, 'index.html');
|
||||||
|
|
||||||
|
public async checkIfExists() {
|
||||||
|
return plugins.smartfile.fs.fileExists(this.defaultFromPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
// copies the html
|
||||||
|
public async copyHtml(fromArg: string = this.defaultFromPath, toArg: string = this.defaultToPath) {
|
||||||
|
if (await this.checkIfExists()) {
|
||||||
|
console.log(`${fromArg} replaces file at ${toArg}`);
|
||||||
|
}
|
||||||
|
fromArg = plugins.smartpath.transform.toAbsolute(fromArg, paths.cwd) as string;
|
||||||
|
toArg = plugins.smartpath.transform.toAbsolute(toArg, paths.cwd) as string;
|
||||||
|
await plugins.smartfile.fs.copy(fromArg, toArg);
|
||||||
|
console.log(`html copy succeeded!`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// copies and minifies the html
|
||||||
|
public async minifyHtml(fromArg: string = this.defaultFromPath, toArg: string = this.defaultToPath) {
|
||||||
|
if (await this.checkIfExists()) {
|
||||||
|
console.log(`${fromArg} replaces file at ${toArg}`);
|
||||||
|
}
|
||||||
|
fromArg = plugins.smartpath.transform.toAbsolute(fromArg, paths.cwd) as string;
|
||||||
|
toArg = plugins.smartpath.transform.toAbsolute(toArg, paths.cwd) as string;
|
||||||
|
const fileString = plugins.smartfile.fs.toStringSync(fromArg);
|
||||||
|
const minifiedHtml = plugins.htmlMinifier.minify(fileString, {
|
||||||
|
minifyCSS: true,
|
||||||
|
minifyJS: true,
|
||||||
|
sortAttributes: true,
|
||||||
|
sortClassName: true,
|
||||||
|
removeAttributeQuotes: true,
|
||||||
|
collapseWhitespace: true,
|
||||||
|
collapseInlineTagWhitespace: true,
|
||||||
|
removeComments: true,
|
||||||
|
});
|
||||||
|
await plugins.smartfile.memory.toFs(minifiedHtml, toArg);
|
||||||
|
console.log(`html minification succeeded!`);
|
||||||
|
}
|
||||||
|
}
|
7
ts/mod_html/plugins.ts
Normal file
7
ts/mod_html/plugins.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export * from '../plugins.js';
|
||||||
|
|
||||||
|
import * as htmlMinifier from 'html-minifier';
|
||||||
|
|
||||||
|
export {
|
||||||
|
htmlMinifier
|
||||||
|
}
|
@ -1,38 +0,0 @@
|
|||||||
import * as plugins from './plugins.js';
|
|
||||||
import * as paths from '../paths.js';
|
|
||||||
|
|
||||||
export class HtmlHandler {
|
|
||||||
public sourceFilePath: string = plugins.path.join(paths.htmlDir, 'index.html');
|
|
||||||
public targetFilePath: string = plugins.path.join(paths.distServeDir, 'index.html');
|
|
||||||
|
|
||||||
public async checkIfExists() {
|
|
||||||
return plugins.smartfile.fs.fileExists(this.sourceFilePath);
|
|
||||||
}
|
|
||||||
|
|
||||||
// copies the html
|
|
||||||
public async copyHtml(targetPathArg = this.targetFilePath) {
|
|
||||||
if (!(await this.checkIfExists())) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await plugins.smartfile.fs.copy(this.sourceFilePath, targetPathArg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// copies and minifies the html
|
|
||||||
public async minifyHtml(targetPathArg = this.targetFilePath) {
|
|
||||||
if (!(await this.checkIfExists())) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const fileString = plugins.smartfile.fs.toStringSync(this.sourceFilePath);
|
|
||||||
const minifiedHtml = plugins.htmlMinifier.minify(fileString, {
|
|
||||||
minifyCSS: true,
|
|
||||||
minifyJS: true,
|
|
||||||
sortAttributes: true,
|
|
||||||
sortClassName: true,
|
|
||||||
removeAttributeQuotes: true,
|
|
||||||
collapseWhitespace: true,
|
|
||||||
collapseInlineTagWhitespace: true,
|
|
||||||
removeComments: true,
|
|
||||||
});
|
|
||||||
plugins.smartfile.memory.toFsSync(minifiedHtml, targetPathArg);
|
|
||||||
}
|
|
||||||
}
|
|
@ -10,8 +10,6 @@ import rollupSourceMaps from 'rollup-plugin-sourcemaps';
|
|||||||
import { terser as rollupTerser } from 'rollup-plugin-terser';
|
import { terser as rollupTerser } from 'rollup-plugin-terser';
|
||||||
import rollupTypescript from '@rollup/plugin-typescript';
|
import rollupTypescript from '@rollup/plugin-typescript';
|
||||||
|
|
||||||
import * as htmlMinifier from 'html-minifier';
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
rollup,
|
rollup,
|
||||||
rollupBabel,
|
rollupBabel,
|
||||||
@ -21,5 +19,4 @@ export {
|
|||||||
rollupSourceMaps,
|
rollupSourceMaps,
|
||||||
rollupTerser,
|
rollupTerser,
|
||||||
rollupTypescript,
|
rollupTypescript,
|
||||||
htmlMinifier,
|
|
||||||
};
|
};
|
||||||
|
@ -28,8 +28,9 @@ export class TsBundle {
|
|||||||
from: fromArg,
|
from: fromArg,
|
||||||
to: toArg,
|
to: toArg,
|
||||||
mode: argvArg && argvArg.production ? 'production' : 'test',
|
mode: argvArg && argvArg.production ? 'production' : 'test',
|
||||||
argv: argvArg ? argvArg : {
|
argv: {
|
||||||
bundler: 'esbuild'
|
bundler: 'esbuild',
|
||||||
|
...argvArg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const threadsimple = new plugins.smartspawn.ThreadSimple(
|
const threadsimple = new plugins.smartspawn.ThreadSimple(
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as plugins from './plugins.js';
|
import * as plugins from './plugins.js';
|
||||||
import { TsBundle } from './tsbundle.class.tsbundle.js';
|
import { TsBundle } from './tsbundle.class.tsbundle.js';
|
||||||
|
import { HtmlHandler } from './mod_html/index.js';
|
||||||
import { logger } from './tsbundle.logging.js';
|
import { logger } from './tsbundle.logging.js';
|
||||||
|
|
||||||
export const runCli = async () => {
|
export const runCli = async () => {
|
||||||
@ -12,6 +13,7 @@ export const runCli = async () => {
|
|||||||
|
|
||||||
tsBundleCli.addCommand('element').subscribe(async (argvArg) => {
|
tsBundleCli.addCommand('element').subscribe(async (argvArg) => {
|
||||||
const tsbundle = new TsBundle();
|
const tsbundle = new TsBundle();
|
||||||
|
const htmlHandler = new HtmlHandler();
|
||||||
// const htmlHandler = new HtmlHandler();
|
// const htmlHandler = new HtmlHandler();
|
||||||
await tsbundle.build(
|
await tsbundle.build(
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
@ -23,6 +25,7 @@ export const runCli = async () => {
|
|||||||
|
|
||||||
tsBundleCli.addCommand('npm').subscribe(async (argvArg) => {
|
tsBundleCli.addCommand('npm').subscribe(async (argvArg) => {
|
||||||
const tsbundle = new TsBundle();
|
const tsbundle = new TsBundle();
|
||||||
|
const htmlHandler = new HtmlHandler();
|
||||||
await tsbundle.build(
|
await tsbundle.build(
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
'./ts/index.ts',
|
'./ts/index.ts',
|
||||||
@ -33,12 +36,14 @@ export const runCli = async () => {
|
|||||||
|
|
||||||
tsBundleCli.addCommand('website').subscribe(async (argvArg) => {
|
tsBundleCli.addCommand('website').subscribe(async (argvArg) => {
|
||||||
const tsbundle = new TsBundle();
|
const tsbundle = new TsBundle();
|
||||||
|
const htmlHandler = new HtmlHandler();
|
||||||
await tsbundle.build(
|
await tsbundle.build(
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
'./ts_web/index.ts',
|
'./ts_web/index.ts',
|
||||||
'./dist_serve/bundle.js',
|
'./dist_serve/bundle.js',
|
||||||
argvArg
|
argvArg
|
||||||
);
|
);
|
||||||
|
await htmlHandler.minifyHtml('./html/index.html', './dist_serve/index.html')
|
||||||
});
|
});
|
||||||
|
|
||||||
tsBundleCli.startParse();
|
tsBundleCli.startParse();
|
||||||
|
Reference in New Issue
Block a user