From f676b26a172aee9256380b188e150b14463e0319 Mon Sep 17 00:00:00 2001 From: patrikx3 Date: Wed, 16 May 2018 20:47:58 +0200 Subject: [PATCH] p3x-robot sunday release 2018-5-16 20:47:58 --- Gruntfile.js | 2 +- INSTALL.md | 2 +- README.md | 4 ++-- artifacts/php-7.2-ubuntu.md | 2 +- changelog.md | 2 +- package.json | 2 +- webpack.config.js | 40 ++++++++++++++++++------------------- 7 files changed, 26 insertions(+), 28 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ea1e9309..fdcecaa1 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -139,7 +139,7 @@ module.exports = themes; clean: { generated: [ 'public/generated', - // 'public/webpack', + 'public/webpack', ], css: [ 'public/generated/css' diff --git a/INSTALL.md b/INSTALL.md index 37dbfa7a..81291c92 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -116,7 +116,7 @@ UrlToolkit { --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.1-640 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.3-641 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/README.md b/README.md index ebf077e8..3f32ab65 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ -# 🤖 P3X Gitlist v2.1.1-640 +# 🤖 P3X Gitlist v2.1.3-641 This is an open-source project. Star this repository if you like it, or even donate! Thank you so much! :) @@ -149,7 +149,7 @@ npm run watch --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.1-640 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.3-641 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/artifacts/php-7.2-ubuntu.md b/artifacts/php-7.2-ubuntu.md index 3bd01da7..32938b03 100644 --- a/artifacts/php-7.2-ubuntu.md +++ b/artifacts/php-7.2-ubuntu.md @@ -20,7 +20,7 @@ sudo apt upgrade -y --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.1-640 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.3-641 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/changelog.md b/changelog.md index 8f830ff7..1fcc7554 100644 --- a/changelog.md +++ b/changelog.md @@ -137,7 +137,7 @@ require('codemirror/mode/yaml/yaml'); --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.1-640 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.1.3-641 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/package.json b/package.json index f4206e56..266f9b2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p3x-gitlist", - "version": "2.1.1-640", + "version": "2.1.3-641", "corifeus": { "postfix": "", "prefix": "p3x-", diff --git a/webpack.config.js b/webpack.config.js index a24fca7d..f7c7b181 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,29 +39,27 @@ const plugins = [ }), ]; -if (isWatching) { - plugins.push( - new WebpackOnBuildPlugin(async (stats) => { - try { - const newFileNames = Object.keys(stats.compilation.assets).map(file => path.resolve(`${buildDir}/${file}`)); - const baseDir = path.resolve(buildDir); - const baseDirList = await utils.fs.readdirRecursive(baseDir) - const promises = []; - for(let baseDirFile of baseDirList) { - if (!newFileNames.includes(baseDirFile)) { - promises.push( - fs.unlink(baseDirFile) - ) - } +plugins.push( + new WebpackOnBuildPlugin(async (stats) => { + try { + const newFileNames = Object.keys(stats.compilation.assets).map(file => path.resolve(`${buildDir}/${file}`)); + const baseDir = path.resolve(buildDir); + const baseDirList = await utils.fs.readdirRecursive(baseDir) + const promises = []; + for(let baseDirFile of baseDirList) { + if (!newFileNames.includes(baseDirFile)) { + promises.push( + fs.unlink(baseDirFile) + ) } - await Promise.all(promises); - } catch(e) { - console.error(e) - process.exit(-1) } - }), - ) -} + await Promise.all(promises); + } catch(e) { + console.error(e) + process.exit(-1) + } + }), +) if (minimize) {