Skip to content

Commit 20f381c

Browse files
Merge pull request #14 from webdevnerdstuff/dev
Dev
2 parents 8a97e55 + c984389 commit 20f381c

8 files changed

+47
-23
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to the "vue-unicorn-log" plugin will be documented in this file.
33

4+
## v1.0.5
5+
April 3, 2022
6+
[main] Adding banner to compiled file (WebDevNerdStuff)
7+
48
## v1.0.0
59
March 26, 2022
610
[main] Initial release (WebDevNerdStuff)

build/webpack.base.config.js

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
const path = require('path');
22
const { VueLoaderPlugin } = require('vue-loader');
3+
const webpack = require('webpack');
4+
const packageJson = require('../package.json');
5+
6+
/*
7+
|--------------------------------------------------------------------------
8+
| Banner
9+
|--------------------------------------------------------------------------
10+
*/
11+
const banner = `Vue UnicornLog Plugin
12+
13+
@name ${packageJson.name}
14+
@version ${packageJson.version}
15+
@description ${packageJson.description}
16+
@author ${packageJson.author}
17+
@copyright Copyright ${new Date().getFullYear()}, WebDevNerdStuff
18+
@homepage ${packageJson.homepage}
19+
@repository ${packageJson.repository}
20+
@license https://github.com/webdevnerdstuff/vue-unicorn-log/blob/main/LICENSE.md
21+
@supports Magical Creatures`;
322

423
/*
524
|--------------------------------------------------------------------------
@@ -55,6 +74,9 @@ module.exports = {
5574
],
5675
},
5776
plugins: [
77+
new webpack.BannerPlugin({
78+
banner,
79+
}),
5880
new VueLoaderPlugin(),
5981
],
6082
infrastructureLogging: {

build/webpack.release.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ module.exports = merge(base, {
88
minimize: true,
99
minimizer: [
1010
new TerserPlugin({
11-
terserOptions: {
12-
format: {
13-
comments: false,
14-
},
15-
},
1611
extractComments: false,
1712
}),
1813
],

dist/vue-unicorn-log.js

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-unicorn-log",
3-
"version": "1.0.4",
3+
"version": "1.0.6",
44
"description": "A magical 🦄 plugin to make coloring the console output easier and more flexible.",
55
"private": false,
66
"main": "dist/vue-unicorn-log.js",
@@ -32,17 +32,19 @@
3232
"bugs": {
3333
"url": "https://github.com/webdevnerdstuff/vue-unicorn-log/issues"
3434
},
35-
"homepage": "https://github.com/webdevnerdstuff/vue-unicorn-log/",
35+
"homepage": "https://webdevnerdstuff.github.io/vue-unicorn-log/",
3636
"keywords": [
37+
"vue-unicorn-log",
38+
"unicorn-log",
3739
"vue",
3840
"vue2",
3941
"plugin",
40-
"javascript",
41-
"logging",
42-
"log",
4342
"console",
4443
"devtools",
4544
"unicorn",
45+
"logging",
46+
"log",
47+
"javascript",
4648
"magical",
4749
"webdevnerdstuff",
4850
"wdns"

src/plugins/UnicornLog.js

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ const UnicornLog = {
1111
// Set the Global options //
1212
this.options = { ...this.options, ...options };
1313

14-
// console.log(this.options);
15-
1614
// Add an instance methods //
1715
Magical.prototype.$unicornLog = function(logOptions) {
1816
UnicornLogCore.init(Vue, UnicornLog.options, logOptions);

src/plugins/UnicornLogCore.js

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/**
2-
* Vue UnicornLog Plugin
3-
*
4-
* @author WebDevNerdStuff & Bunnies
5-
* @version 1.0.0
6-
* @copyright Copyright 2022, WebDevNerdStuff
7-
* @supports Magical Creatures
8-
*
9-
*/
10-
111
/* eslint-disable no-console */
122
const rainbowLinearGradient = `linear-gradient(to right,
133
hsl(0, 100%, 50%),

0 commit comments

Comments
 (0)