-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: v3.0 with Squoosh, imagemin and several other changes prepared
- Loading branch information
Showing
35 changed files
with
426 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,46 @@ | ||
/*! | ||
* copyfiles.js | ||
* copyfiles.mjs | ||
* | ||
* Author: sitdisch | ||
* Source: https://sitdisch.github.io/#mythemeway | ||
* License: MIT | ||
* Copyright (c) 2020 sitdisch | ||
* Copyright (c) 2021 sitdisch | ||
* | ||
*/ | ||
|
||
const fs = require('fs-extra'); | ||
import * as fs from 'fs-extra'; | ||
|
||
const copyfiles = [ | ||
{ | ||
name: 'Devicon', | ||
source: './node_modules/devicon', | ||
files: ['devicon.min.css', 'LICENSE', 'fonts'], | ||
target: './docs/assets/lib/devicon' | ||
}, | ||
{ | ||
name: 'Fontawesome', | ||
source: './node_modules/@fortawesome/fontawesome-free', | ||
files: ['LICENSE.txt', 'css/all.min.css', 'css/v4-shims.min.css', 'webfonts'], | ||
target: './docs/assets/lib/fontawesome' | ||
}, | ||
{ | ||
name: 'Google-Webfonts', | ||
source: './src/lib/google-webfonts', | ||
files: ['font-rubik.css', 'font-files'], | ||
target: './docs/assets/lib/google-webfonts' | ||
}, | ||
{ | ||
name: 'Jquery', | ||
source: './node_modules/jquery', | ||
files: ['/dist/jquery.min.js', 'LICENSE.txt'], | ||
target: './docs/assets/lib/jquery' | ||
}, | ||
{ | ||
name: 'Bootstrap', | ||
source: './node_modules/bootstrap/', | ||
files: ['/dist/js/bootstrap.bundle.min.js', '/dist/js/bootstrap.bundle.min.js.map', 'LICENSE'], | ||
target: './docs/assets/lib/bootstrap' | ||
}, | ||
} | ||
]; | ||
|
||
copyfiles.forEach(copyfile => { | ||
var log = false; | ||
copyfile.files.forEach(file => { | ||
try { | ||
fs.copySync(`${copyfile.source}/${file}`, `${copyfile.target}/${file}`, { overwrite: false, errorOnExist: true }); | ||
log = true; | ||
} catch {} | ||
fs.copy(`${copyfile.source}/${file}`, `${copyfile.target}/${file}`) | ||
.catch(err => console.error(err)) | ||
}); | ||
if (log === true) { | ||
console.log('[\x1b[90mfs-extra\x1b[0m]:', copyfile.name, '\x1b[1;92m[copied]\x1b[0m'); | ||
} | ||
}); | ||
|
||
console.log("[\x1b[90mfs-extra\x1b[0m]: Finished `\x1b[36mfs-extra\x1b[0m`"); |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.