gulp-amd-wrap
Advanced tools
Comparing version 1.0.8 to 1.0.9
/** 解析所有文件的moduleID, 生成config后插到入口文件的头部 */ | ||
export declare function addRequireConfig(option: optionType): any; | ||
interface optionType { | ||
export declare function addRequireConfig(option: OptionType): any; | ||
interface OptionType { | ||
mainJs?: string; | ||
@@ -5,0 +5,0 @@ /** 线上部署地址 如/se/static/molecules/toptip/ */ |
@@ -22,3 +22,3 @@ "use strict"; | ||
// {'@molecule/a/xxx': '/se/static/molecules/a/b/xx} | ||
pathConfig[moduleId] = path_1.resolve(option.deloyDir, relativePath).replace(/.js$/, ''); | ||
pathConfig[moduleId] = option.deloyDir + relativePath.replace(/.js$/, ''); | ||
} | ||
@@ -37,5 +37,5 @@ } | ||
callback(); | ||
} | ||
}, | ||
}); | ||
} | ||
exports.addRequireConfig = addRequireConfig; |
@@ -6,4 +6,4 @@ "use strict"; | ||
* @Date: 2019-04-27 14:21:32 | ||
* @Last Modified by: qiansc | ||
* @Last Modified time: 2019-04-29 16:55:34 | ||
* @Last Modified by: liangjiaying@baidu.com | ||
* @Last Modified time: 2019-08-20 15:29:21 | ||
*/ | ||
@@ -10,0 +10,0 @@ var estraverse_1 = require("estraverse"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var stream = require("readable-stream"); | ||
var filter_1 = require("./filter"); | ||
var parser_1 = require("./parser"); | ||
var stream = require("readable-stream"); | ||
var Transform = stream.Transform; | ||
@@ -25,3 +25,3 @@ function amdWrap(option) { | ||
removeModuleId: filter_1.include(file.path, option.anonymousModule, option.baseUrl), | ||
useMd5: useMd5 | ||
useMd5: useMd5, | ||
}); | ||
@@ -28,0 +28,0 @@ file.contents = new Buffer(parser.getContent()); |
@@ -7,3 +7,3 @@ "use strict"; | ||
* @Last Modified by: liangjiaying@baidu.com | ||
* @Last Modified time: 2019-08-19 10:49:24 | ||
* @Last Modified time: 2019-08-20 15:53:56 | ||
*/ | ||
@@ -13,8 +13,8 @@ var escodegen_1 = require("escodegen"); | ||
var estraverse_1 = require("estraverse"); | ||
var fs_1 = require("fs"); | ||
var path_1 = require("path"); | ||
var async_analyzer_1 = require("./async-analyzer"); | ||
var dependency_analyzer_1 = require("./dependency-analyzer"); | ||
var filter_1 = require("./filter"); | ||
var moduleID_1 = require("./moduleID"); | ||
var filter_1 = require("./filter"); | ||
var path_1 = require("path"); | ||
var fs_1 = require("fs"); | ||
var md5File = require('md5-file'); | ||
@@ -21,0 +21,0 @@ var Parser = /** @class */ (function () { |
{ | ||
"name": "gulp-amd-wrap", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"discription": "gulp-amd-wrap", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
600239
0