website-utilities 1.0.266 → 1.0.269

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 (2) hide show
  1. package/deploy.js +1 -1
  2. package/package.json +1 -1
package/deploy.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  // -*- coding: utf-8 -*-
3
- 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o);const c=require("child_process"),i=require("path"),t=(e,o={})=>(0,c.execSync)(e,{encoding:"utf-8",shell:"/bin/bash",...o});if(t("git branch").includes("* master")){console.info("Build new web page."),t("yarn build");let e=t("pwd");const o=(0,i.resolve)(e,"../",`${(0,i.basename)(e)}.github.io`);let c="./",d="./";t("git branch").includes("gh-pages")?(console.info("Checkout distribution branch."),t("git checkout gh-pages")):o?(c=`${o}/build/`,d=o):console.warn("No website target found."),console.info("Update page data."),t(`\n rsync './build/' '${c}' $ILU_RSYNC_DEFAULT_ARGUMENTS --exclude=CNAME --exclude='.*' --exclude=node_modules --exclude=readme.md --exclude=./build\n `),t("rm --recursive --force ./build"),console.info("Upload compiled webpage"),t("git pull",{cwd:d}),t("git add --all",{cwd:d}),t("git commit --message 'Automatic page build update.'",{cwd:d}),t("git push",{cwd:d}),t("git branch").includes("gh-pages")?console.info("Switch back to source directory."):(console.info("Switch back to master branch."),t("git checkout master"))}module.exports=o})();
3
+ 'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o);const c=require("child_process"),i=require("path"),t=(e,o={})=>(0,c.execSync)(e,{encoding:"utf-8",shell:"/bin/bash",...o});if(t("git branch").includes("* master")){console.info("Build new web page."),t("yarn build");const e=t("pwd"),o=(0,i.resolve)(e,"../",`${(0,i.basename)(e)}.github.io`);let c="./",d="./";t("git branch").includes("gh-pages")?(console.info("Checkout distribution branch."),t("git checkout gh-pages")):o?(c=`${o}/build/`,d=o):console.warn("No website target found."),console.info("Update page data."),t(`\n rsync './build/' '${c}' $ILU_RSYNC_DEFAULT_ARGUMENTS --exclude=CNAME --exclude='.*' --exclude=node_modules --exclude=readme.md --exclude=./build\n `),t("rm --recursive --force ./build"),console.info("Upload compiled webpage"),t("git pull",{cwd:d}),t("git add --all",{cwd:d}),t("git commit --message 'Automatic page build update.'",{cwd:d}),t("git push",{cwd:d}),t("git branch").includes("gh-pages")?console.info("Switch back to source directory."):(console.info("Switch back to master branch."),t("git checkout master"))}module.exports=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "website-utilities",
3
- "version": "1.0.266",
3
+ "version": "1.0.269",
4
4
  "description": "extend your web app",
5
5
  "keywords": [
6
6
  "jquery",