Skip to content

Commit

Permalink
work toward asset resolution for haxtheweb/issues#1472 and node 18 work
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Jun 20, 2023
1 parent 46eade0 commit 6b29c26
Show file tree
Hide file tree
Showing 1,294 changed files with 4,589 additions and 10,875 deletions.
8 changes: 4 additions & 4 deletions .wcflibcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@lrnwebcomponents/deduping-fix": "^4.0.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "2.5.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
"@web/dev-server": "0.1.28",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@lrnwebcomponents/deduping-fix": "^4.0.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "2.5.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
"@web/dev-server": "0.1.28",
Expand Down Expand Up @@ -106,7 +106,7 @@
"@lrnwebcomponents/deduping-fix": "^4.0.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@polymer/iron-demo-helpers": "3.1.0",
"@webcomponents/webcomponentsjs": "2.5.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"concurrently": "5.3.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
Expand Down Expand Up @@ -148,7 +148,7 @@
"@lrnwebcomponents/deduping-fix": "^4.0.0",
"@polymer/iron-demo-helpers": "3.1.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@webcomponents/webcomponentsjs": "2.5.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"gulp-babel": "8.0.0",
"lodash": "4.17.21",
"@web/dev-server": "0.1.28",
Expand Down
8 changes: 2 additions & 6 deletions elements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,15 +690,11 @@ Stepper
# <parallax-image>

Image
> Automated conversion of parallax-image/
> Automated conversion of pdf-browser-viewer/
# <pdf-browser-viewer>

Browser
> Start of pdf-browser-viewer
# <pdf-element>

Element
> Automated conversion of pdf-element/
> Automated conversion of person-testimonial/
# <person-testimonial>

Testimonial
Expand Down
3 changes: 2 additions & 1 deletion elements/_deprecated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
"type": "module",
"main": "a11y-carousel.js",
"module": "a11y-carousel.js",
"umd": "a11y-carousel.umd.js",

"scripts": {},
"author": {
"name": "btopro"
},
"license": "Apache-2.0",
"dependencies": {
"@lrnwebcomponents/drag-n-drop": "4.0.25",
"@lrnwebcomponents/pdf-element": "7.0.0",
"@lrnwebcomponents/game-show-quiz": "4.1.0",
"@lrnwebcomponents/glossary-term": "4.1.0",
"@lrnwebcomponents/hero-banner": "4.0.4",
Expand Down
1 change: 0 additions & 1 deletion elements/a11y-behaviors/a11y-behaviors.umd.js

This file was deleted.

1 change: 0 additions & 1 deletion elements/a11y-behaviors/a11y-behaviors.umd.js.map

This file was deleted.

22 changes: 2 additions & 20 deletions elements/a11y-behaviors/gulpfile.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const gulp = require("gulp");
const fs = require("fs");
const path = require("path");
const _ = require("lodash");
const rename = require("gulp-rename");

const replace = require("gulp-replace");
const stripCssComments = require("strip-css-comments");
const decomment = require("decomment");
Expand Down Expand Up @@ -117,24 +116,7 @@ gulp.task("analyze", () => {
}
);
});
// copy from the built locations pulling them together
gulp.task("compile", () => {

return gulp
.src("./" + packageJson.wcfactory.elementName + ".js")
.pipe(
replace(
/^(import .*?)(['"]\.\.\/(?!\.\.\/).*)(\.js['"];)$/gm,
"$1$2.umd$3"
)
)
.pipe(
rename({
suffix: ".umd"
})
)
.pipe(gulp.dest("./"));
});

gulp.task("watch", () => {
return gulp.watch("./src/*", gulp.series("merge", "analyze"));
Expand All @@ -143,4 +125,4 @@ gulp.task("watch", () => {
// simple developer flow
gulp.task("dev", gulp.series("merge", "analyze", "watch"));

gulp.task("default", gulp.series("merge", "analyze", "compile"));
gulp.task("default", gulp.series("merge", "analyze"));
7 changes: 2 additions & 5 deletions elements/a11y-behaviors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
"type": "module",
"main": "a11y-behaviors.js",
"module": "a11y-behaviors.js",
"umd": "a11y-behaviors.umd.js",
"scripts": {
"start": "yarn run dev",
"build": "gulp --gulpfile=gulpfile.cjs && node --experimental-json-modules ../../node_modules/.bin/rollup --config && prettier --ignore-path ../../.prettierignore --write \"**/*.{js,json}\" && wca analyze \"{*,lib/**}.js\" --format vscode --outFile custom-elements.json",
"build": "gulp --gulpfile=gulpfile.cjs && prettier --ignore-path ../../.prettierignore --write \"**/*.{js,json}\" && wca analyze \"{*,lib/**}.js\" --format vscode --outFile custom-elements.json",
"dev": "concurrently --kill-others \"yarn run watch\" \"yarn run serve\"",
"watch": "gulp dev --gulpfile=gulpfile.cjs",
"serve": "web-dev-server -c ../../web-dev-server.config.mjs",
Expand All @@ -43,10 +42,8 @@
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@polymer/iron-demo-helpers": "3.1.0",
"@web/dev-server": "0.1.34",
"@webcomponents/webcomponentsjs": "2.6.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"concurrently": "7.4.0",
"gulp-babel": "8.0.0",
"lodash": "^4.17.21",
"wct-browser-legacy": "1.0.2"
},
"private": false,
Expand Down
5 changes: 0 additions & 5 deletions elements/a11y-behaviors/rollup.config.mjs

This file was deleted.

0 comments on commit 6b29c26

Please sign in to comment.