website-utilities 1.0.444 → 1.0.445

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/deploy.d.ts +4 -1
  2. package/deploy.js +1 -1
  3. package/package.json +12 -7
package/deploy.d.ts CHANGED
@@ -1 +1,4 @@
1
- export {};
1
+ import { Logger } from 'clientnode';
2
+ export declare const USERNAME = "thaibault";
3
+ export declare const PUBLIC_REPOSITORY_NAME = "thaibault.github.io";
4
+ export declare const log: Logger;
package/deploy.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}(()=>{const e=require("child_process"),i=require("path"),n=(i,n={})=>(0,e.execSync)(i,{encoding:"utf-8",shell:"/bin/bash",...n});if(n("git branch").includes("* main")){console.info("Build new web page."),n("yarn build");const e=n("pwd"),a=(0,i.resolve)(e,"../",`${(0,i.basename)(e)}.github.io`);let l="./",u="./";n("git branch").includes("gh-pages")?(console.info("Checkout distribution branch."),n("git checkout gh-pages")):a?(l=`${a}/build/`,u=a):console.warn("No website target found."),console.info("Update page data."),n(`\n rsync './build/' '${l}' $ILU_RSYNC_DEFAULT_ARGUMENTS --exclude=CNAME --exclude='.*' --exclude=node_modules --exclude=readme.md --exclude=./build\n `),n("rm --recursive --force ./build"),console.info("Upload compiled webpage"),n("git pull",{cwd:u}),n("git add --all",{cwd:u}),n("git commit --message 'Automatic page build update.'",{cwd:u}),n("git push",{cwd:u}),n("git branch").includes("gh-pages")?console.info("Switch back to source directory."):(console.info("Switch back to main branch."),n("git checkout main"))}module.exports={}})();
2
+ "use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}(()=>{var e,r,a,i,t,o=[(e,r,a)=>{a.a(e,(async(e,i)=>{try{a.r(r),a.d(r,{PUBLIC_REPOSITORY_NAME:()=>u,USERNAME:()=>e,log:()=>d});var t=a(1),o=a(2),n=a(3),l=a(4);const e="thaibault",u="thaibault.github.io",d=new t.Logger({name:"website-utilities.deploy",level:"info"}),p=(e,r={})=>(0,o.execSync)(e,{encoding:"utf-8",shell:"/bin/bash",...r});if(p("git branch").includes("* main")){d.info("Build new web page."),d.info(p("yarn clear")),d.info(p("yarn build"));const r=(0,n.resolve)("../",u);await(0,t.isDirectory)(r)||d.info(p(`git clone git@github.com:${e}/${u} `+r)),d.info(p("git pull",{cwd:r})),d.info(`Update page data in "${r}".`),await(0,l.rimraf)(r,{filter:e=>Promise.resolve(![r,(0,n.resolve)(r,".git"),(0,n.resolve)(r,".github"),(0,n.resolve)(r,"CNAME"),(0,n.resolve)(r,"readme.md")].some((r=>e.startsWith(r))))}),await(0,t.copyDirectoryRecursive)("build",r,!0),d.info(p("yarn clear")),d.info("Upload compiled webpage"),d.info(p("git add --all",{cwd:r})),d.info(p("git commit --message 'Automatic page build update.'",{cwd:r})),d.info(p("git push",{cwd:r}))}i()}catch(e){i(e)}}),1)},e=>{e.exports=require("clientnode")},e=>{e.exports=require("child_process")},e=>{e.exports=require("path")},e=>{e.exports=require("rimraf")}],n={};function l(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,l),a.exports}e="function"==typeof Symbol,r=e?Symbol("webpack queues"):"__webpack_queues__",a=e?Symbol("webpack exports"):"__webpack_exports__",i=e?Symbol("webpack error"):"__webpack_error__",t=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},l.a=(e,o,n)=>{var l;n&&((l=[]).d=-1);var u,d,p,s=new Set,c=e.exports,f=new Promise(((e,r)=>{p=r,d=e}));f[a]=c,f[r]=e=>(l&&e(l),s.forEach(e),f.catch((e=>{}))),e.exports=f,o((e=>{var o;u=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[r])return e;if(e.then){var o=[];o.d=0,e.then((e=>{n[a]=e,t(o)}),(e=>{n[i]=e,t(o)}));var n={};return n[r]=e=>e(o),n}}var l={};return l[r]=e=>{},l[a]=e,l})))(e);var n=()=>u.map((e=>{if(e[i])throw e[i];return e[a]})),d=new Promise((e=>{(o=()=>e(n)).r=0;var a=e=>e!==l&&!s.has(e)&&(s.add(e),e&&!e.d&&(o.r++,e.push(o)));u.map((e=>e[r](a)))}));return o.r?d:n()}),(e=>(e?p(f[i]=e):d(c),t(l)))),l&&l.d<0&&(l.d=0)},l.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return l.d(r,{a:r}),r},l.d=(e,r)=>{for(var a in r)l.o(r,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u=l(0);module.exports=u})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "website-utilities",
3
- "version": "1.0.444",
3
+ "version": "1.0.445",
4
4
  "description": "extend your web app",
5
5
  "keywords": [
6
6
  "website",
@@ -70,16 +70,16 @@
70
70
  "@types/jsdom": "^28.0.3",
71
71
  "@types/node": "^26.0.0",
72
72
  "@types/webpack-env": "^1.18.8",
73
- "@typescript-eslint/eslint-plugin": "^8.61.1",
74
- "@typescript-eslint/parser": "^8.61.1",
73
+ "@typescript-eslint/eslint-plugin": "^8.62.0",
74
+ "@typescript-eslint/parser": "^8.62.0",
75
75
  "@webcomponents/webcomponentsjs": "^2.8.0",
76
76
  "bootstrap-icons": "^1.13.1",
77
- "clientnode": "^4.0.1424",
77
+ "clientnode": "^4.0.1427",
78
78
  "css-loader": "^7.1.4",
79
79
  "cssnano": "^8.0.2",
80
80
  "eslint": "^10.5.0",
81
81
  "eslint-config-google": "^0.14.0",
82
- "eslint-plugin-jsdoc": "^63.0.6",
82
+ "eslint-plugin-jsdoc": "^63.0.7",
83
83
  "jest": "^30.4.2",
84
84
  "jsdoc": "^4.0.5",
85
85
  "mini-css-extract-plugin": "^2.10.2",
@@ -92,14 +92,15 @@
92
92
  "postcss-sprites": "^4.2.1",
93
93
  "postcss-url": "^10.1.4",
94
94
  "prop-types": "^15.8.1",
95
+ "rimraf": "^6.1.3",
95
96
  "sass": "^1.101.0",
96
97
  "sass-loader": "^17.0.0",
97
98
  "style-loader": "^4.0.0",
98
99
  "stylelint": "^17.13.0",
99
100
  "stylelint-config-standard-scss": "^17.0.0",
100
- "typescript-eslint": "^8.61.1",
101
+ "typescript-eslint": "^8.62.0",
101
102
  "web-component-wrapper": "^0.0.602",
102
- "web-documentation": "^1.0.40",
103
+ "web-documentation": "^1.0.41",
103
104
  "weboptimizer": "^3.0.28",
104
105
  "webpack-dev-server": "^5.2.5"
105
106
  },
@@ -107,6 +108,7 @@
107
108
  "@babel/runtime": "*",
108
109
  "bootstrap-icons": "*",
109
110
  "clientnode": "*",
111
+ "rimraf": "*",
110
112
  "web-component-wrapper": "*"
111
113
  },
112
114
  "peerDependenciesMeta": {
@@ -115,6 +117,9 @@
115
117
  },
116
118
  "bootstrap-icons": {
117
119
  "optional": true
120
+ },
121
+ "rimraf": {
122
+ "optional": true
118
123
  }
119
124
  },
120
125
  "engines": {