Skip to content
Snippets Groups Projects
Verified Commit 97a33491 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent cd3ddeb8
No related branches found
No related tags found
No related merge requests found
...@@ -72,10 +72,10 @@ We do try to work around some browser bugs, but on the whole we don't use polyfi ...@@ -72,10 +72,10 @@ We do try to work around some browser bugs, but on the whole we don't use polyfi
However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased. However, many functions can be mapped via [polyfill.io](https://polyfill.io/) and thus the compatibility can be increased.
``` ```html
<script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?features=Array.from,Array.isArray,Array.prototype.entries,Array.prototype.fill,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.map,Array.prototype.reduce,Array.prototype.sort,ArrayBuffer,atob,DataView,document,DocumentFragment,Element,Event,globalThis,HTMLDocument,HTMLTemplateElement,JSON,Map,Math.log2,Number.isInteger,Object.assign,Object.defineProperty,Object.entries,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.keys,Promise,Reflect,Reflect.defineProperty,Reflect.get,Reflect.getOwnPropertyDescriptor,Reflect.setPrototypeOf,Set,String.prototype.endsWith,String.prototype.matchAll,String.prototype.padStart,String.prototype.startsWith,String.prototype.trim,Symbol,Symbol.iterator,WeakMap,WeakSet" <script id="polyfill" src="https://polyfill.io/v3/polyfill.min.js?feat"
crossorigin="anonymous" crossorigin="anonymous"
referrerpolicy="no-referrer"></script> referrerpolicy="no-referrer"></script>
``` ```
## Questions ## Questions
......
...@@ -22,7 +22,6 @@ export {AbstractConstraint} from "./constraints/abstract.mjs" ...@@ -22,7 +22,6 @@ export {AbstractConstraint} from "./constraints/abstract.mjs"
export {IsArray} from "./constraints/isarray.mjs" export {IsArray} from "./constraints/isarray.mjs"
export {AbstractOperator} from "./constraints/abstractoperator.mjs" export {AbstractOperator} from "./constraints/abstractoperator.mjs"
export {Valid} from "./constraints/valid.mjs" export {Valid} from "./constraints/valid.mjs"
export {Monster} from "./monster.mjs"
export {Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "./logging/logger.mjs" export {Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "./logging/logger.mjs"
export {LogEntry} from "./logging/logentry.mjs" export {LogEntry} from "./logging/logentry.mjs"
export {ConsoleHandler} from "./logging/handler/console.mjs" export {ConsoleHandler} from "./logging/handler/console.mjs"
...@@ -126,7 +125,7 @@ export {FocusManager} from "./dom/focusmanager.mjs" ...@@ -126,7 +125,7 @@ export {FocusManager} from "./dom/focusmanager.mjs"
export {ATTRIBUTEPREFIX, Assembler} from "./dom/assembler.mjs" export {ATTRIBUTEPREFIX, Assembler} from "./dom/assembler.mjs"
export {Translations} from "./i18n/translations.mjs" export {Translations} from "./i18n/translations.mjs"
export {Locale, parseLocale} from "./i18n/locale.mjs" export {Locale, parseLocale} from "./i18n/locale.mjs"
export {Formatter} from "./i18n/formatter.mjs" export {I18nFormatter} from "./i18n/formatter.mjs"
export {Fetch} from "./i18n/providers/fetch.mjs" export {Fetch} from "./i18n/providers/fetch.mjs"
export {Provider} from "./i18n/provider.mjs" export {Provider} from "./i18n/provider.mjs"
export { export {
......
...@@ -3,4 +3,5 @@ tmp ...@@ -3,4 +3,5 @@ tmp
temp temp
coverage coverage
.c8rc.json .c8rc.json
package-lock.json package-lock.json
\ No newline at end of file pnpm-lock.yaml
\ No newline at end of file
...@@ -15,5 +15,5 @@ url="$(${PROJECT_ROOT}development/node_modules/.bin/create-polyfill-service-url ...@@ -15,5 +15,5 @@ url="$(${PROJECT_ROOT}development/node_modules/.bin/create-polyfill-service-url
if [ ! -x {$url} ] if [ ! -x {$url} ]
then then
sed -i -E "/id=\"polyfill\"/s|.*| <script id=\"polyfill\" src=\"${url}\"|g" ${TEST_PATH}web/test.html sed -i -E "/id=\"polyfill\"/s|.*| <script id=\"polyfill\" src=\"${url}\"|g" ${TEST_PATH}web/test.html
sed -i -E "/id=\"polyfill\"/s|.*| <script id=\"polyfill\" src=\"${url}\"|g" ${PROJECT_ROOT}application/README.md sed -i -E "/id=\"polyfill\"/s|.*|<script id=\"polyfill\" src=\"${url}\"|g" ${PROJECT_ROOT}README.md
fi fi
...@@ -4,7 +4,7 @@ const regex = /^\s*(?<exp>(export\s+{[^}]+)})/gm; ...@@ -4,7 +4,7 @@ const regex = /^\s*(?<exp>(export\s+{[^}]+)})/gm;
const fs = require('fs'); const fs = require('fs');
var path = require('path') var path = require('path')
const basename= __dirname + '/../../application/source/' const basename = __dirname + '/../../application/source/'
let exportLines = [] let exportLines = []
...@@ -18,34 +18,24 @@ function scanSymbols(root) { ...@@ -18,34 +18,24 @@ function scanSymbols(root) {
continue; continue;
} else if (!f.isFile()) { } else if (!f.isFile()) {
continue; continue;
}; }
if ((path.extname(f.name) !== ".mjs")) { if ((path.extname(f.name) !== ".mjs")) {
continue; continue;
} }
const fn = path.join( root , f.name); const fn = path.join(root, f.name);
let content = fs.readFileSync(fn, 'utf8'); let content = fs.readFileSync(fn, 'utf8');
while ((m = regex.exec(content)) !== null) { while ((m = regex.exec(content)) !== null) {
let exp= m.groups?.exp; let exp = m.groups?.exp;
if (!exp) { if (!exp) {
continue; continue;
} }
exportLines.push(exp + " from \"./" + path.relative(basename, fn) + "\"");
exportLines.push(exp + " from \"./" + path.relative(basename, fn)+"\"");
} }
} }
} }
scanSymbols(path.normalize(basename)) scanSymbols(path.normalize(basename))
console.log(exportLines.join("\n")); console.log(exportLines.join("\n"));
...@@ -26,6 +26,8 @@ git add ${TEST_PATH}cases/monster.mjs ...@@ -26,6 +26,8 @@ git add ${TEST_PATH}cases/monster.mjs
git add ${PROJECT_ROOT}release.json git add ${PROJECT_ROOT}release.json
git commit -m "release and publish to npm" git commit -m "release and publish to npm"
rm $BUILD_PATH/pnpm-lock.yaml
cd ${BUILD_PATH} cd ${BUILD_PATH}
## --dry-run ## --dry-run
pnpm publish --access public pnpm publish --access public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment