浏览代码

still fighting with npm

Sadick 7 年之前
父节点
当前提交
6c9bf5b2ce
共有 3 个文件被更改,包括 91 次插入5 次删除
  1. 1 2
      .gitignore
  2. 87 0
      dist/vuepouch.js
  3. 3 3
      package.json

+ 1 - 2
.gitignore

@@ -1,2 +1 @@
-node_modules
-dist
+node_modules

+ 87 - 0
dist/vuepouch.js

@@ -0,0 +1,87 @@
+/******/ (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');
+      }
+    });
+  }
+};
+
+/***/ })
+/******/ ]);

+ 3 - 3
package.json

@@ -1,8 +1,8 @@
 {
-  "name": "vuepouch",
-  "version": "1.0.0",
+  "name": "vuepouch-db",
+  "version": "1.0.1",
   "description": "A tiny vue plugin to make working with pouchdb and vuejs easy",
-  "main": "./src/index.js",
+  "main": "./dist/vuepouch.js",
   "repository": "https://github.com/sadick254/vuepouch.git",
   "author": "Sadick <sadickjunior@gmail.com>",
   "license": "MIT",