Sadick 7 rokov pred
rodič
commit
cc48abd1ce
5 zmenil súbory, kde vykonal 12 pridanie a 103 odobranie
  1. 1 1
      README.md
  2. 1 98
      dist/vuepouch.js
  3. 3 2
      package.json
  4. 6 2
      src/index.js
  5. 1 0
      webpack.config.js

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Vuepouch
 A tiny library to enable you work with PouchDB in a Vuejs app. It syncs with remote CouchDB too :-)
-
+## Work in progress (not production ready)
 ## Installation
 Installing Vuepouch is as easy as including it in your html script tag. Being that it is a vuejs plugin 
 it has a dependancy on vuejs. So dont forget to include that.

+ 1 - 98
dist/vuepouch.js

@@ -1,98 +1 @@
-(function webpackUniversalModuleDefinition(root, factory) {
-	if(typeof exports === 'object' && typeof module === 'object')
-		module.exports = factory();
-	else if(typeof define === 'function' && define.amd)
-		define([], factory);
-	else if(typeof exports === 'object')
-		exports["vuepouch"] = factory();
-	else
-		root["vuepouch"] = factory();
-})(this, function() {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, {
-/******/ 				configurable: false,
-/******/ 				enumerable: true,
-/******/ 				get: getter
-/******/ 			});
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 0);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, "__esModule", {
-  value: true
-});
-exports.default = {
-  install: function install(Vue, options) {
-    Vue.mixin({
-      mounted: function mounted() {
-        console.log('vuepouch mixin called');
-      }
-    });
-  }
-};
-
-/***/ })
-/******/ ]);
-});
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vuepouch",[],t):"object"==typeof exports?exports.vuepouch=t():e.vuepouch=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var u=n[o]={i:o,l:!1,exports:{}};return e[o].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={test:function(){},install:function(e,t){e.mixin({mounted:function(){console.log("vuepouch mixin called")}})}};t.default=o}])});

+ 3 - 2
package.json

@@ -1,14 +1,15 @@
 {
   "name": "vuepouch-db",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "description": "A tiny vue plugin to make working with pouchdb and vuejs easy",
   "main": "./dist/vuepouch.js",
+  "module": "./src/index.js",
   "repository": "https://github.com/sadick254/vuepouch.git",
   "author": "Sadick <sadickjunior@gmail.com>",
   "license": "MIT",
   "dependencies": {},
   "scripts": {
-    "build": "webpack"
+    "build": "webpack -p"
   },
   "babel": {
     "presets": [

+ 6 - 2
src/index.js

@@ -1,4 +1,7 @@
-export default {
+const VuePouch = {
+  test () {
+    
+  },
   install (Vue, options) {
     Vue.mixin({
       mounted () {
@@ -6,4 +9,5 @@ export default {
       }
     })
   }
-}
+}
+export default VuePouch

+ 1 - 0
webpack.config.js

@@ -7,6 +7,7 @@ module.exports = {
   output: {
     library: 'vuepouch',
     libraryTarget: 'umd',
+    umdNamedDefine: true,
     filename: 'vuepouch.js',
     path: path.resolve(__dirname, 'dist')
   },