Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Nov 29, 2023
1 parent 658fce3 commit 500edc5
Show file tree
Hide file tree
Showing 7 changed files with 7,705 additions and 26,705 deletions.
33,682 changes: 7,605 additions & 26,077 deletions package-lock.json

Large diffs are not rendered by default.

51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,46 @@
"version": "1.9.0",
"private": false,
"description": "Simple, extendable, dependency free notification plugin.",
"main": "./dist/vue-toastify.umd.min.js",
"types": "./types.d.ts",
"author": "Nandor Kraszlan",
"scripts": {
"serve": "serve -s build",
"watch": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"compile": "cross-env IS_COMPILE=true vue-cli-service build --target lib --dest dist/ --name vue-toastify ./src/VueToastify.js"
"compile": "cross-env IS_COMPILE=true vue-cli-service build --target lib --dest dist/ --name vue-toastify ./src/VueToastify.js",
"watch": "vue-cli-service serve"
},
"sideEffects": true,
"main": "./dist/vue-toastify.umd.min.js",
"files": [
"dist/*",
"./types.d.ts"
],
"dependencies": {
"vue": "^2.6.12"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0",
"@vue/cli-plugin-babel": "^4.5.4",
"@vue/cli-service": "^4.5.4",
"@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-service": "^5.0.8",
"autoprefixer": "^10.4.16",
"babel-preset-env": "^1.7.0",
"cross-env": "^7.0.3",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier-vue": "^3.1.0",
"eslint-plugin-vue": "^8.1.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.4.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier-vue": "^5.0.0",
"eslint-plugin-vue": "^9.18.1",
"postcss": "^8.4.31",
"prettier": "^3.1.0",
"sass": "^1.43.5",
"sass-loader": "^10.2.0",
"serve": "^11.3.2",
"tailwindcss": "^1.7.5",
"sass-loader": "^13.3.2",
"serve": "^14.2.1",
"tailwindcss": "^3.3.5",
"vue-cli-plugin-tailwindcss": "~0.1.1",
"vue-template-compiler": "^2.6.12",
"webpack-build-notifier": "^2.1.0"
},
"bugs": {
"url": "https://github.com/nandi95/vue-toastify/issues"
},
"homepage": "https://github.com/nandi95/vue-toastify#readme",
"keywords": [
"vue",
"notification",
Expand All @@ -50,14 +58,7 @@
"customisable",
"extendable"
],
"files": [
"dist/*",
"./types.d.ts"
],
"author": "Nandor Kraszlan",
"license": "MIT",
"bugs": {
"url": "https://github.com/nandi95/vue-toastify/issues"
},
"homepage": "https://github.com/nandi95/vue-toastify#readme"
"sideEffects": true,
"types": "./types.d.ts"
}
33 changes: 5 additions & 28 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
const IN_PRODUCTION = process.env.NODE_ENV === "production";

module.exports = {
plugins: [
require("postcss-preset-env")({ stage: 2 }),
require("tailwindcss")("./tailwind.config.js"),
IN_PRODUCTION &&
require("@fullhuman/postcss-purgecss")({
content: [`./public/**/*.html`, `./src/**/*.vue`],
defaultExtractor(content) {
const contentWithoutStyleBlocks = content.replace(
/<style[^]+?<\/style>/gi,
""
);
return contentWithoutStyleBlocks.match(
/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g
);
},
whitelist: [],
whitelistPatterns: [
/-(leave|enter|appear)(|-(to|from|active))$/,
/^(?!(|.*?:)cursor-move).+-move$/,
/^router-link(|-exact)-active$/,
/vt-*/
]
}),
require("autoprefixer")()
]
};
plugins: {
tailwindcss: './tailwind.config.js',
autoprefixer: {}
}
}
39 changes: 4 additions & 35 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
<template>
<div>
<header class="flex justify-center text-center flex-col flex-no-wrap mb-10 pt-3">
<header class="flex justify-center text-center flex-col flex-nowrap mb-10 pt-3">
<h2 class="text-blue-800 font-bold text-3xl mb-2">Vue Toastify</h2>
<p class="text-gray-600">A fuss free notification component.</p>
</header>
<main class="px-2">
<div class="flex xl:justify-center justify-around flex-wrap flex-row">
<div class="flex flex-col w-auto sm:max-w-50 sm:mr-2">
<div
class="
font-mono
border-gray-200
bg-gray-800
text-gray-400
p-5
rounded-lg
shadow-xl
mx-auto
max-w-md
mb-8
break-words
"
class="font-mono border-gray-200 bg-gray-800 text-gray-400 p-5 rounded-lg shadow-xl mx-auto max-w-md mb-8 break-words"
>
<p>status: {</p>
<p v-if="status.title" class="ml-8">
Expand Down Expand Up @@ -309,16 +297,7 @@
</div>
<div class="flex flex-col justify-around w-full">
<div
class="
flex flex-row
justify-between
align-middle
items-center
w-3/4
md:w-2/3
lg:w-10/12
mx-auto
"
class="flex flex-row justify-between align-middle items-center w-3/4 md:w-2/3 lg:w-10/12 mx-auto"
>
<label for="duration">Duration:</label>
<input
Expand All @@ -334,17 +313,7 @@
/>
</div>
<div
class="
flex flex-row
justify-between
align-middle
items-center
w-3/4
md:w-2/3
lg:w-10/12
mt-3
mx-auto
"
class="flex flex-row justify-between align-middle items-center w-3/4 md:w-2/3 lg:w-10/12 mt-3 mx-auto"
>
<label for="icon">Icon:</label>
<textarea
Expand Down
62 changes: 62 additions & 0 deletions src/assets/styles/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* This injects Tailwind's base styles, which is a combination of
* Normalize.css and some additional base styles.
*
* You can see the styles here:
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/preflight";
*/
@tailwind preflight;

/**
* This injects any component classes registered by plugins.
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/components";
*/
@tailwind components;

/**
* Here you would add any of your custom component classes; stuff that you'd
* want loaded *before* the utilities so that the utilities could still
* override them.
*
* Example:
*
* .btn { ... }
* .form-input { ... }
*
* Or if using a preprocessor or `postcss-import`:
*
* @import "components/buttons";
* @import "components/forms";
*/

/**
* This injects all of Tailwind's utility classes, generated based on your
* config file.
*
* If using `postcss-import`, use this import instead:
*
* @import "tailwindcss/utilities";
*/
@tailwind utilities;

/**
* Here you would add any custom utilities you need that don't come out of the
* box with Tailwind.
*
* Example :
*
* .bg-pattern-graph-paper { ... }
* .skew-45 { ... }
*
* Or if using a preprocessor or `postcss-import`:
*
* @import "utilities/background-patterns";
* @import "utilities/skew-transforms";
*/
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from "vue";
import App from "./App.vue";
import "tailwindcss/tailwind.css";
import VueToastify from "vue-toastify";
import "@/assets/styles/main.css";

Vue.config.productionTip = false;
Vue.config.performance = true;
Expand Down
Loading

0 comments on commit 500edc5

Please sign in to comment.