babel-plugin-wrap-modules-amd
Advanced tools
Comparing version 1.7.0-alpha.1158492a to 1.7.0-alpha.43ab330a
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _babelIpc = require('liferay-npm-build-tools-common/lib/babel-ipc'); | ||
var babelIpc = _interopRequireWildcard(_babelIpc); | ||
var _pluginLogger = require('liferay-npm-build-tools-common/lib/plugin-logger'); | ||
@@ -23,3 +27,5 @@ | ||
beforeEach(function () { | ||
_pluginLogger2.default.set(__filename, logger = new _pluginLogger2.default()); | ||
babelIpc.set(__filename, { | ||
log: logger = new _pluginLogger2.default() | ||
}); | ||
}); | ||
@@ -26,0 +32,0 @@ |
@@ -62,3 +62,12 @@ 'use strict'; | ||
_pluginLogger2.default.get(state).info('wrap-modules-amd', 'Detected dependencies:', dependencies.join(', ')); | ||
// Log results | ||
var _babelIpc$get = babelIpc.get(state, function () { | ||
return { | ||
log: new _pluginLogger2.default() | ||
}; | ||
}), | ||
log = _babelIpc$get.log; | ||
log.info('wrap-modules-amd', 'Detected dependencies:', dependencies.join(', ')); | ||
} | ||
@@ -74,2 +83,6 @@ } | ||
var _babelIpc = require('liferay-npm-build-tools-common/lib/babel-ipc'); | ||
var babelIpc = _interopRequireWildcard(_babelIpc); | ||
var _pluginLogger = require('liferay-npm-build-tools-common/lib/plugin-logger'); | ||
@@ -79,2 +92,4 @@ | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -81,0 +96,0 @@ |
{ | ||
"name": "babel-plugin-wrap-modules-amd", | ||
"version": "1.7.0-alpha.1158492a", | ||
"version": "1.7.0-alpha.43ab330a", | ||
"description": "A Babel plugin to wrap package modules inside AMD define() calls.", | ||
@@ -16,5 +16,5 @@ "main": "lib/index.js", | ||
"babel-template": "^6.25.0", | ||
"liferay-npm-build-tools-common": "1.7.0-alpha.1158492a", | ||
"liferay-npm-build-tools-common": "1.7.0-alpha.43ab330a", | ||
"read-json-sync": "^1.1.1" | ||
} | ||
} |
import * as babel from 'babel-core'; | ||
import * as babelIpc from 'liferay-npm-build-tools-common/lib/babel-ipc'; | ||
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger'; | ||
@@ -8,3 +9,5 @@ import plugin from '../index'; | ||
beforeEach(() => { | ||
PluginLogger.set(__filename, (logger = new PluginLogger())); | ||
babelIpc.set(__filename, { | ||
log: (logger = new PluginLogger()), | ||
}); | ||
}); | ||
@@ -11,0 +14,0 @@ |
import template from 'babel-template'; | ||
import * as babelIpc from 'liferay-npm-build-tools-common/lib/babel-ipc'; | ||
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger'; | ||
@@ -71,3 +72,8 @@ | ||
PluginLogger.get(state).info( | ||
// Log results | ||
const {log} = babelIpc.get(state, () => ({ | ||
log: new PluginLogger(), | ||
})); | ||
log.info( | ||
'wrap-modules-amd', | ||
@@ -74,0 +80,0 @@ 'Detected dependencies:', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15904
211
+ Addedliferay-npm-build-tools-common@1.7.0-alpha.43ab330a(transitive)
- Removedliferay-npm-build-tools-common@1.7.0-alpha.1158492a(transitive)