Skip to content

Commit 84fd151

Browse files
committed
release: v3.0 with Squoosh, imagemin and several other changes prepared
1 parent 95cb165 commit 84fd151

34 files changed

+429
-238
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ updates:
1111
schedule:
1212
interval: "daily"
1313

14-
# Maintain dependencies for bundler
15-
- package-ecosystem: "bundler"
16-
directory: "/"
17-
schedule:
18-
interval: "daily"
19-
2014
# Maintain dependencies for npm
2115
- package-ecosystem: "npm" # See documentation for possible values
2216
directory: "/" # Location of package manifests

Gemfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 58 additions & 29 deletions
Large diffs are not rendered by default.

_config.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@ google_site_verification: # your meta tag (no quotation marks)
2929
destination: docs
3030
keep_files: ['assets']
3131
exclude: [
32-
'src',
33-
'node_modules',
34-
'Gemfile',
35-
'Gemfile.lock',
36-
'index.js',
37-
'copyfiles.js',
38-
'gulpfile.js',
39-
'webpack.config.js',
4032
'README.md',
41-
'yarn.lock',
42-
'package.json',
33+
'copyfiles.mjs',
34+
'index.js',
35+
'node_modules',
4336
'package-lock.json',
44-
'.ncurc.json'
37+
'package.json',
38+
'src',
39+
'watcher.config.mjs',
40+
'webpack.config.js',
4541
]

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<footer class="footer">
22
<p>&copy; {{site.user_name}}</p>
3-
<p>Built with Webpack, Jekyll, Gulp and <i class="fas fa-heart love"></i> by <a data-press-delay href="https://github.com/mythemeway" title="Come over">MTW</a>.<br><a data-press-delay href="https://sitdisch.github.io#mythemeway" title="Go there">Source of this demo</a>.</p>
3+
<p>Built with Webpack, Jekyll and <i class="fas fa-heart love"></i> by <a data-press-delay href="https://github.com/mythemeway" title="Come over">MTW</a>.<br><a data-press-delay href="https://sitdisch.github.io#mythemeway" title="Go there">Source of this demo</a>.</p>
44
</footer>
55

66
<!-- INCLUDE THE NECESSARY HTML FILES FOR ALL LAYOUTS -->
Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,46 @@
11
/*!
2-
* copyfiles.js
2+
* copyfiles.mjs
33
*
44
* Author: sitdisch
55
* Source: https://sitdisch.github.io/#mythemeway
66
* License: MIT
7-
* Copyright (c) 2020 sitdisch
7+
* Copyright (c) 2021 sitdisch
88
*
99
*/
1010

11-
const fs = require('fs-extra');
11+
import { copy } from 'fs-extra';
1212

1313
const copyfiles = [
1414
{
15-
name: 'Devicon',
1615
source: './node_modules/devicon',
1716
files: ['devicon.min.css', 'LICENSE', 'fonts'],
1817
target: './docs/assets/lib/devicon'
1918
},
2019
{
21-
name: 'Fontawesome',
2220
source: './node_modules/@fortawesome/fontawesome-free',
2321
files: ['LICENSE.txt', 'css/all.min.css', 'css/v4-shims.min.css', 'webfonts'],
2422
target: './docs/assets/lib/fontawesome'
2523
},
2624
{
27-
name: 'Google-Webfonts',
2825
source: './src/lib/google-webfonts',
2926
files: ['font-rubik.css', 'font-files'],
3027
target: './docs/assets/lib/google-webfonts'
3128
},
3229
{
33-
name: 'Jquery',
3430
source: './node_modules/jquery',
3531
files: ['/dist/jquery.min.js', 'LICENSE.txt'],
3632
target: './docs/assets/lib/jquery'
3733
},
3834
{
39-
name: 'Bootstrap',
4035
source: './node_modules/bootstrap/',
4136
files: ['/dist/js/bootstrap.bundle.min.js', '/dist/js/bootstrap.bundle.min.js.map', 'LICENSE'],
4237
target: './docs/assets/lib/bootstrap'
43-
},
38+
}
4439
];
4540

4641
copyfiles.forEach(copyfile => {
47-
var log = false;
4842
copyfile.files.forEach(file => {
49-
try {
50-
fs.copySync(`${copyfile.source}/${file}`, `${copyfile.target}/${file}`, { overwrite: false, errorOnExist: true });
51-
log = true;
52-
} catch {}
43+
copy(`${copyfile.source}/${file}`, `${copyfile.target}/${file}`)
44+
.catch(err => console.error(err))
5345
});
54-
if (log === true) {
55-
console.log('[\x1b[90mfs-extra\x1b[0m]:', copyfile.name, '\x1b[1;92m[copied]\x1b[0m');
56-
}
5746
});
58-
59-
console.log("[\x1b[90mfs-extra\x1b[0m]: Finished `\x1b[36mfs-extra\x1b[0m`");
4.65 KB
Loading
-6.19 KB
Binary file not shown.

docs/assets/img/Project1.jpg

-3.34 KB
Loading

docs/assets/img/Project2.jpg

-3.31 KB
Loading

0 commit comments

Comments
 (0)