From 0d6614fa2d4c582067794f12daec48171e548fa3 Mon Sep 17 00:00:00 2001 From: Rupert Angermeier Date: Fri, 3 May 2019 10:42:38 +0200 Subject: [PATCH 1/6] use Vue CLI for build - remove custom webpack/browserify build steps - export as VuePureLightbox - use LightboxDefaultLoader by default for loading slot --- .babelrc | 6 - .browserslistrc | 2 + .gitignore | 18 +- README.md | 31 +- babel.config.js | 5 + package-lock.json | 15248 +++++++++++++++------------------- package.json | 72 +- postcss.config.js | 5 + src/App.vue | 46 + src/Components/Lightbox.vue | 6 +- src/main.js | 28 +- webpack.config.js | 77 - 12 files changed, 6833 insertions(+), 8711 deletions(-) delete mode 100644 .babelrc create mode 100644 .browserslistrc create mode 100644 babel.config.js create mode 100644 postcss.config.js create mode 100644 src/App.vue delete mode 100644 webpack.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 16f0778..0000000 --- a/.babelrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "presets": [ - ["env", { "modules": false }], - "es2015" - ] -} diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..d6471a3 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,2 @@ +> 1% +last 2 versions diff --git a/.gitignore b/.gitignore index 8181620..a90ce4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,22 @@ .DS_Store -node_modules/ -npm-debug.log -yarn-error.log -dist/* +node_modules +/dist !dist/.gitkeep -dist-module/ + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* # Editor directories and files .idea +.vscode *.suo *.ntvs* *.njsproj *.sln +*.sw? diff --git a/README.md b/README.md index 92553b1..6f5b4bf 100644 --- a/README.md +++ b/README.md @@ -31,23 +31,23 @@ npm i vue-pure-lightbox --save ### With a CDN: ```html - + - + ``` ## Usage ### With an ES6 bundler (via NPM) In your index file ```js -import Lightbox from 'vue-pure-lightbox' -Vue.use(Lightbox) +import VuePureLightbox from 'vue-pure-lightbox' +Vue.use(VuePureLightbox) ``` ### With a CDN ```html + + \ No newline at end of file diff --git a/src/Components/Lightbox.vue b/src/Components/Lightbox.vue index a4f5048..2730fa5 100644 --- a/src/Components/Lightbox.vue +++ b/src/Components/Lightbox.vue @@ -21,7 +21,7 @@