{"_id":"grunt-kissy-dp","_rev":"33-6ac32e9717ec27d3f11ec89fbe8112a2","name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","dist-tags":{"latest":"0.2.6"},"versions":{"0.1.0":{"name":"grunt-kissy-dp","description":"针对kissy依赖做二次处理。针对目录做别名解析。sell","version":"0.1.0","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.1.0","dist":{"shasum":"e4f11223ea9ebb7552ff0a2ec3809d5b7fb9b9d7","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.0.tgz","integrity":"sha512-fORx/c9X5sJy8+BBR50HR/ZOEmD8tFEpdd4WKAFf2jbWyMka0PLJttAGFbe7n/9VK4QC/2MLVNJSCuxiEhvXgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJ2edMbt5ekQyMrL3kaBpyiQW9ya7Fze776AWKdM+yJAiAN0FvLLdejCOwMuNQOrZ88gVN0uXXEEx62iftUeY/Btg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.1.1":{"name":"grunt-kissy-dp","description":"针对kissy依赖做二次处理。针对目录做别名解析。sell","version":"0.1.1","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.1.1","dist":{"shasum":"de1c30237ec4f9cff8c1430448ac1572332abbf7","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.1.tgz","integrity":"sha512-VIL0iECD4NDk6H29ITb3M61MkGgX3Bc3lE65kDB6W/nqioYg8EIHu5fY+eIIkWZ6xMLQHYLPxE2i6RV0f/2Zlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc5AgS8OhY1ctcQxK9upSmx/qKgNzjjFxUStlvFDAQzQIgSurivVFw2RWOpxR/2aaWXSHaZG4L9zE3U8UCM3uX224="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.1.2":{"name":"grunt-kissy-dp","description":"针对kissy依赖做二次处理。针对目录做别名解析。sell","version":"0.1.2","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.1.2","_from":".","dist":{"shasum":"8f820fb38c2beceabb69a9f10290a9f403e75237","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","integrity":"sha512-NN5aQUQOirbjml8L9ieu5Kq5sQU8LnBcFHvUdy625FeHQQ1pdJDTgQw5ld08aP5d6mXFjn9csbovM1sGhfAwDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8qaJEVD0IMZDCdFCUUyUt0DBt/N5Q6LCBEj31aJA2VAiEArHcdD2J/1SBhT3Na52sTqssVcEsSTOfvMuouFp9AyD0="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.1.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.0":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.0","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.0","_from":".","dist":{"shasum":"87082de3ca0ed29f6391b0c63cd791bb10316738","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.0.tgz","integrity":"sha512-dO8jpGLnIHosZLQICN+WfQKCC+Ms2g06DByjug/hBLKh6VYPbGDJDR27Dx7dXZPivhvpvoyKl9CqBauqEU/aiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERoTvkzEgh+HrPOZy3SAHE8O3pRQ8kJto95L6hQ5dIoAiEAgUkD3OQWhRLH1m/DwftB9M4wO2gktUZTsFseeQOIYvA="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.1":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.1","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"*"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.1","_from":".","dist":{"shasum":"be33063fef9812044a7c04e22a31830d48133cbf","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.1.tgz","integrity":"sha512-jfYTIVAMCdf5cTgjXzL08pG/fPGFFGVWGjBeo1h+nbhg9CrkYJHQ/6GWy3EOYccODGPiud2Aplx+4hLlQz1yvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjNG0muVnWhY5AVp/ApD3hbVSllGZrgs1//XTquPVhtAiBRCCypzHRgXCCAEHPKOTBZLK81nQ4I+GfM8rXlEs4LDg=="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.2":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.2","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"*"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.2","_from":".","dist":{"shasum":"486071cd64443c27b86a99321d54649fbbf6d26a","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.2.tgz","integrity":"sha512-lBOqc0CWd+tARrcSjzkUw/NvhA1TgUCmE29U5YL56fMsIlZK7qB7wY46TzhHVYforstcjPvuPM226Fc8NuGhhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNr7UCgc8p6JksedcNInaQB42PSvq6YjFN7AV1FSAE6QIhAMhaHj7UreNydlga9Si0x6+Yknxv+uAXQ7yAzwSM6zY5"}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.3":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.3","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"*"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.3","_from":".","dist":{"shasum":"878cd5e3712a697aa1083b76280cbd191ccaf5bb","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.3.tgz","integrity":"sha512-khAWWyhfNajmT+dhuhicqQcYOduNH5sabmUuzeeGnxZSgnDckXeObrgPcqxCxqmP5YFq73OT0bfQqbbqFacEog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoO1GlduElslMlE5tZdNpIf/TcAHl855WX2ZLw+ZHkbAiBYTJTNwT+qGHaw2t+PLyYOPMlJzqD41iy2y5ZfSHBKAQ=="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.4":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.4","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"*"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.4","_from":".","dist":{"shasum":"10593ca4c9db0bf6f70d373d696da0b41021f749","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.4.tgz","integrity":"sha512-saPsTiL08m3Vz1Ey6HJYT8crB5vLDrU0woV2aR2VdwOqLSOa0SajgTavWzp3p73+vV4SkBXxlGEqRtK9L/FY9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuz0kU5R8r3RRguVSpHHwP7dY58bDhshDFRE0O+ZXxGAiAlL2iybpDOVE0OBdNVZ1wZECsZtEUckDGPoTT7w2QnDQ=="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.5":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.5","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"*"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-kissy-dp@0.2.5","_from":".","dist":{"shasum":"80790dca756208c5da048e96e92f10f6c3d79ab3","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.5.tgz","integrity":"sha512-ZPtGsXEdIt8FijqNywNvP57C9mYiIqAmuZnHNbkvCo+wyFtrYloDPEVaweTEAfZDodxHr98xKSozDpfkXbOtbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD02/EvhLAzpE7YZMFoF76q7IQDLQQEfTjHkE8sQ13wsgIhAOeWz+ulCAth/aC+JHTam3IBSmmb83bVd97/yAHF3WUc"}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.1.2.tgz","_npmVersion":"1.3.14","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]},"0.2.6":{"name":"grunt-kissy-dp","description":"nsell 用於解決代碼打包，依賴生成等功能為一體的編譯方案。","version":"0.2.6","homepage":"https://github.com/akecn/grunt-kissy-dp","author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"},"licenses":[{"type":"MIT","url":"https://github.com/akecn/grunt-kissy-dp/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"kmc":"^1.0.39"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":[],"_id":"grunt-kissy-dp@0.2.6","_from":".","dist":{"shasum":"b63b92d871de724921581a6028a9912ffe787aa8","tarball":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.6.tgz","integrity":"sha512-bytx1+3o3PExPjkqBQu8R5De65wMfpcrgeaG0c58S05LfgOUgqgpgrxvLPf5PRTbOwJC1mYa7H5l9lP0nY8F2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4vJj+DveQfUbszvQLAQ1sdyrNHSlo77+GCS+5Y2MQdAiEA6955Q20Ps5xUFLgYybCyJ3VVA10SQ692lp/wmxFZIXM="}]},"_resolved":"https://registry.npmjs.org/grunt-kissy-dp/-/grunt-kissy-dp-0.2.5.tgz","_shasum":"80790dca756208c5da048e96e92f10f6c3d79ab3","_npmVersion":"1.4.9","_npmUser":{"name":"wuake","email":"wgk1987@gmail.com"},"maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}]}},"readme":"# grunt-kissy-dp\n\n> 针对kissy依赖做二次处理。针对目录做别名解析。\n\n警告：插件目前是针对特定的目录结构来实现的，所以不建议其他人使用～\n\n## Getting Started\n依赖 Grunt `~0.4.1`\n\n安装包\n```shell\nnpm install grunt-kissy-dp --save-dev\n```\n\n加载包\n\n```js\ngrunt.loadNpmTasks('grunt-kissy-dp');\n```\n\n## The \"kissy_dp\" task\n\n### Overview\n\n```js\ngrunt.initConfig({\n  kdp: {\n    options: {\n      // kmc需要的包配置，对应的path为脚本所在的路径\n      page: [\n          {\n              name: 'widget',\n              path: srcPagePath,\n              charset: 'utf-8'\n          }\n      ],\n      // kmc见：https://github.com/daxingplay/grunt-kmc\n      common: [\n          {\n              name: \"common\",\n              path: srcPath,\n              charset: 'utf-8'\n          }\n      ],\n      // 页面级配置文件，若没有对应的文件或文件内容为空，则忽略。\n      configFile: srcPagePath + \"/config.json\",\n      // 依赖文件输出的路径\n      dependsFile: srcPagePath + \"/depends.json\",\n      commonDepend: srcCommonPath + \"/depends.json\",\n      buildDepends: buildPagePath + \"/\" + market + \"/dep.js\",\n      minify: true\n    },\n    files: [\n         {\n             expand: true,\n             cwd: srcPagePath,\n             src: [\n                 'widget/*/index.js'\n             ],\n             dest: buildPagePath,\n             ext: '.js'\n         }\n     ]\n  }\n})\n```\n\n### Options\n\n```\n// kmc需要的包配置，对应的path为脚本所在的路径\npage: [\n  {\n      name: 'widget',\n      path: srcPagePath,\n      charset: 'utf-8'\n  }\n],\n// kmc见：https://github.com/daxingplay/grunt-kmc\ncommon: [\n  {\n      name: \"common\",\n      path: srcPath,\n      charset: 'utf-8'\n  }\n],\n// page级别的依赖信息输出的路径\ndependsFile: srcPagePath + \"/depends.json\",\n// common目录的依赖信息输出的路径\ncommonDepend: srcCommonPath + \"/depends.json\",\n// 最终的依赖文件输出的路径。这个文件需要优先被加载到页面中～\nbuildDepends: buildPagePath + \"/\" + market + \"/dep.js\",\n// 依赖文件内容是否压缩\nminify: true\n```\n\n\n## attention\n\n对`widget`目录下的模块目录下的index.js为入口文件开始分析处理。\n\n1. 对文件路径进行分析，获得`dirName`(widget的名称)和`baseName`（除去dirName的widget的路径）。\n2. 配置正则表达式避免同级目录相互引用。同级的widget下相互之间不允许requires。避免模块间的直接依赖。\n3. 配置kmc，添加page目录的配置，对widget目录下的文件进行打包。即，widget目录内的requires会被打包到一起。\n4. 添加common的配置，用于依赖分析。依赖分析是调用了`kmc.combo`方法。\n5. 对生成的依赖信息进行二次处理。\n    1. 获取当前kissy模块的依赖。\n    2. 排除掉与当前分析的文件同目录的文件。若是不是同目录的文件或是样式文件才保留。（因为文件会打包在一起，不需要另外添加这个依赖）\n    3. 排除掉相同的依赖。比如一些基础依赖`node/event/io`等。\n6. 生成每一个页面级的依赖信息文件，输出到页面目录下。该文件显示了当前页面中的所有`widget`的依赖。\n7. 对所有依赖信息进行合并，生成用于KISSY分析的依赖文件。\n    1. 若没有依赖，就不添加到依赖配置中。\n    2. 若依赖了common的组件，则获取到该组件的依赖信息\n    3. 合并页面的依赖和common的依赖。\n    4. 输出依赖文件到build目录下。\n\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","maintainers":[{"name":"wuake","email":"wgk1987@gmail.com"}],"time":{"modified":"2022-06-18T15:22:43.752Z","created":"2013-11-22T10:26:33.215Z","0.1.0":"2013-11-22T10:26:37.485Z","0.1.1":"2013-11-26T12:34:32.804Z","0.1.2":"2013-12-18T06:49:08.958Z","0.2.0":"2014-01-24T17:21:24.783Z","0.2.1":"2014-01-24T17:26:20.814Z","0.2.2":"2014-01-25T08:20:24.755Z","0.2.3":"2014-03-19T03:49:57.977Z","0.2.4":"2014-04-11T03:32:04.830Z","0.2.5":"2014-04-11T03:55:59.714Z","0.2.6":"2014-06-20T04:01:51.032Z"},"author":{"name":"akecn","email":"wgk1987@gmail.com"},"repository":{"type":"git","url":"git@github.com:akecn/grunt-kissy-dp.git"},"readmeFilename":"README.md","homepage":"https://github.com/akecn/grunt-kissy-dp","keywords":[],"bugs":{"url":"https://github.com/akecn/grunt-kissy-dp/issues"}}