From d7c487d2fc12970fbdf82b84c9beeadd663b07c2 Mon Sep 17 00:00:00 2001 From: David Picarra Date: Tue, 29 Jan 2019 11:17:01 +0000 Subject: [PATCH 1/7] feat: rename component to VueAlert --- README.md | 14 +- _config.yml | 3 +- _includes/analytics.html | 8 + config/rollup.config.js | 2 + dist/vuealert.common.js | 2 +- example/Example.vue | 22 +- example/__tests__/Example.test.js | 4 +- example/dist/index.html | 2 +- example/dist/js/0.7700a3fdf416aed98d44.js | 1 + example/dist/js/1.85752f206b7caddc4720.js | 7 - example/dist/js/2.2c3003226d60f0864ca6.js | 1 - example/dist/js/2.9e56f6f670fba6074908.js | 7 + .../dist/js/runtime.03b37fb88c80703510e6.js | 1 + .../dist/js/runtime.48643052511a5e512e2a.js | 1 - package.json | 54 +- src/VueAlert.vue | 4 +- src/__tests__/index.test.js | 8 +- src/index.js | 4 +- yarn.lock | 2252 ++++++++++------- 19 files changed, 1385 insertions(+), 1012 deletions(-) create mode 100644 _includes/analytics.html create mode 100644 example/dist/js/0.7700a3fdf416aed98d44.js delete mode 100644 example/dist/js/1.85752f206b7caddc4720.js delete mode 100644 example/dist/js/2.2c3003226d60f0864ca6.js create mode 100644 example/dist/js/2.9e56f6f670fba6074908.js create mode 100644 example/dist/js/runtime.03b37fb88c80703510e6.js delete mode 100644 example/dist/js/runtime.48643052511a5e512e2a.js diff --git a/README.md b/README.md index 3b3e092..f9e7bb6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @vuejs-pt/vue-alert +# @vuejs-pt/vue-alert [![CircleCI](https://img.shields.io/circleci/project/github/vuejs-pt/vue-alert.svg)](https://circleci.com/gh/vuejs-pt/vue-alert) [![Coverage Status](https://img.shields.io/codecov/c/github/vuejs-pt/vue-alert.svg)](https://codecov.io/github/vuejs-pt/vue-alert?branch=master) [![NPM downloads](https://img.shields.io/npm/dm/@vuejs-pt/vue-alert.svg)](https://www.npmjs.com/package/@vuejs-pt/vue-alert) @@ -18,7 +18,7 @@ [__Demo__](https://vuejs-pt.github.io/vue-alert/example/dist/) # Requirements -- [Vue.js](https://github.com/vuejs/vue) `2.x` +- [Vue.js](https://github.com/vuejs/vue) `2.x` # Installation ```bash @@ -119,9 +119,9 @@ this.$alert.hide() # Usage -The component `vue-alert` must be included either in the component using the `vue-alert` or a parent of this component, for example if there's a `vue-alert` instance at the root of the app. +The component `VueAlert` must be included either in the component using the `VueAlert` or a parent of this component, for example if there's a `VueAlert` instance at the root of the app. -It is possible to access the `vue-alert` component using the `$alert` variable on the component instance as shown in the below example. +It is possible to access the `VueAlert` component using the `$alert` variable on the component instance as shown in the below example. The default bootstrap style are applied to the alert but this can be overriden by applying a new style to the following classes: - alert @@ -157,8 +157,8 @@ App.vue ```html @@ -207,4 +207,4 @@ export default { # License -[The MIT License](http://opensource.org/licenses/MIT) \ No newline at end of file +[The MIT License](http://opensource.org/licenses/MIT) diff --git a/_config.yml b/_config.yml index e69a9c8..f0182f6 100644 --- a/_config.yml +++ b/_config.yml @@ -1,3 +1,4 @@ theme: jekyll-theme-dinky title: "@vuejs-pt/vue-alert" -description: Alert bootstrap style for Vue.js \ No newline at end of file +description: Alert bootstrap style for Vue.js +google_analytics: UA-133448491-1 diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..63104a4 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,8 @@ + diff --git a/config/rollup.config.js b/config/rollup.config.js index 5a4183d..9f9f57c 100644 --- a/config/rollup.config.js +++ b/config/rollup.config.js @@ -1,5 +1,6 @@ import path from 'path' import fs from 'fs' +import commonjs from 'rollup-plugin-commonjs' import vue from 'rollup-plugin-vue' import buble from 'rollup-plugin-buble' import { uglify } from 'rollup-plugin-uglify' @@ -17,6 +18,7 @@ const config = { { format: 'cjs', file: `dist/${name}.common.js`, name } ], plugins: [ + commonjs(), vue({ compileTemplate: true, css: true diff --git a/dist/vuealert.common.js b/dist/vuealert.common.js index aaddd33..5786e48 100644 --- a/dist/vuealert.common.js +++ b/dist/vuealert.common.js @@ -1 +1 @@ -"use strict";function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(t){for(var e=1;e\n \n \n

{{ alertMessage }}

\n \n \n\n\n \ No newline at end of file +@vuejs-pt/vue-alert example
\ No newline at end of file diff --git a/example/dist/js/0.7700a3fdf416aed98d44.js b/example/dist/js/0.7700a3fdf416aed98d44.js new file mode 100644 index 0000000..ff6af3e --- /dev/null +++ b/example/dist/js/0.7700a3fdf416aed98d44.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(12).default)("5c9c7bad",r,!0,{})},,,function(e,t,n){"use strict";function r(a){for(var e=1;e\n \n \n

{{ alertMessage }}

\n \n \n\n\n \ No newline at end of file +@vuejs-pt/vue-alert example
\ No newline at end of file diff --git a/example/dist/js/0.7700a3fdf416aed98d44.js b/example/dist/js/0.7700a3fdf416aed98d44.js deleted file mode 100644 index ff6af3e..0000000 --- a/example/dist/js/0.7700a3fdf416aed98d44.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(12).default)("5c9c7bad",r,!0,{})},,,function(e,t,n){"use strict";function r(a){for(var e=1;e\n \n \n

{{ alertMessage }}

\n \n \n\n\n