Skip to content

Commit

Permalink
Use optional deps for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Tan Nguyen committed Jan 30, 2016
1 parent 9338705 commit bdbd27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/index.js
@@ -1,6 +1,6 @@
'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

Expand Down Expand Up @@ -70,7 +70,7 @@ function onAfterUpdate(instance, options) {

var instance = null;

var DataMapper = function (_Component) {
var DataMapper = (function (_Component) {
_inherits(DataMapper, _Component);

function DataMapper(connector) {
Expand Down Expand Up @@ -242,6 +242,6 @@ var DataMapper = function (_Component) {
}]);

return DataMapper;
}(Component);
})(Component);

module.exports = DataMapper;
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -17,13 +17,15 @@
},
"homepage": "https://github.com/naujs/data-mapper#readme",
"dependencies": {
"lodash": "^3.10.1"
},
"optionalDependencies": {
"@naujs/component": "^0.1.0",
"@naujs/persisted-model": "^0.2.6",
"@naujs/util": "0.0.6",
"lodash": "^3.10.1"
"@naujs/gulp-tasks": "^0.1.0"
},
"devDependencies": {
"@naujs/gulp-tasks": "^0.1.0",
"gulp": "^3.9.0"
}
}

0 comments on commit bdbd27d

Please sign in to comment.