{"_id":"grunt-depconcat","_rev":"42-94ae4feb4bc5768220efa4f4a8715e25","name":"grunt-depconcat","description":"Concat depended files","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"grunt-depconcat","description":"Concat depended files","version":"0.1.0","homepage":"https://github.com/terrykingcha/grunt-depconcat","author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terrykingcha/grunt-depconcat/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","dependenices","concat"],"_id":"grunt-depconcat@0.1.0","dist":{"shasum":"ade49dd06b58a6cf74555d61e4fdc72eb8d7a30f","tarball":"https://registry.npmjs.org/grunt-depconcat/-/grunt-depconcat-0.1.0.tgz","integrity":"sha512-LSzp7hy6qYfxopoREILqal0HyUbKpYiIT9Y7C3Qz1cgzs6VbgpG9qGEy58cw5hwgAdSrsWGuNyORBPqmSQxOzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwdSh5/6hcN16SBdZSKz28yRDjZJLmdtWohvpmXw+dhAiBema4UBOZREWpo5fuoTl7FSMGV70yfmVYuAMySGyYaDg=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"terrykingcha","email":"terrykingcha@gmail.com"},"maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}],"directories":{}},"0.1.1":{"name":"grunt-depconcat","description":"Concat depended files","version":"0.1.1","homepage":"https://github.com/terrykingcha/grunt-depconcat","author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terrykingcha/grunt-depconcat/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","dependenices","concat"],"_id":"grunt-depconcat@0.1.1","dist":{"shasum":"b909ed4c9709c0dc85cbb0e516c72a98a828c127","tarball":"https://registry.npmjs.org/grunt-depconcat/-/grunt-depconcat-0.1.1.tgz","integrity":"sha512-qp/R7gwVIh40GXNjciR7dBSGS6YlPZxcu2MNXEuUlydSGW2yg8vv8pUMlNvOi+1lM00uX6IHfDXzk2PCThTexQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDxEWIFilcMyYTVDtFCT1YZ8y7V9fFsyBevuytK+2LRyAiBVY0TwWFCo1UC9omdHFMW3GkNUjlGHO+hqO89EQ+MLrg=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"terrykingcha","email":"terrykingcha@gmail.com"},"maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}],"directories":{}},"0.1.2":{"name":"grunt-depconcat","description":"Concat depended files","version":"0.1.2","homepage":"https://github.com/terrykingcha/grunt-depconcat","author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terrykingcha/grunt-depconcat/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","dependenices","concat"],"_id":"grunt-depconcat@0.1.2","dist":{"shasum":"33b987bff4b096ae4d9c724c872fe0d90d10b9a7","tarball":"https://registry.npmjs.org/grunt-depconcat/-/grunt-depconcat-0.1.2.tgz","integrity":"sha512-B1gUY3QWBZtpEJ4RG9Zf6QqUcqihY18TgGiJZcTrm+4vxqr5LYXSaidxFDrvp3kMBcbOLpOjJB/IrnIduYpXbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfg/TMUnik6PFNkvFPvN2bfq1tMSOPv9WV5YqwFwb33wIhAPG4QtdPQ+DAA6YlZR3iBTWNZ/tuMIpN/EhHTvt+N5b5"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"terrykingcha","email":"terrykingcha@gmail.com"},"maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}],"directories":{}},"0.2.0":{"name":"grunt-depconcat","description":"Concat depended files","version":"0.2.0","homepage":"https://github.com/terrykingcha/grunt-depconcat","author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terrykingcha/grunt-depconcat/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"serialize-deptree":"~0.1.0"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","dependencies","concat"],"_id":"grunt-depconcat@0.2.0","dist":{"shasum":"ee303c332c99f373eb11e6f85ac4fa09d85d3469","tarball":"https://registry.npmjs.org/grunt-depconcat/-/grunt-depconcat-0.2.0.tgz","integrity":"sha512-BIWqytj8wk3S+ipbzIbHMm0MRIje27mNovJL9vdnIeaOzoCLxQ1QcrlHfKOCL0kLuM+SAQHuUlTaZnSteYhqEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBoP1ohc9WsQX9iZP5GMjB8DBY9BxJECny2VnnKQWRJTAiBws0LdpjPxDkGn7Dc96y/hycIPJniFuO1Fgvlp129mzQ=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"terrykingcha","email":"terrykingcha@gmail.com"},"maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}]},"0.2.1":{"name":"grunt-depconcat","description":"Concat depended files","version":"0.2.1","homepage":"https://github.com/terrykingcha/grunt-depconcat","author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/terrykingcha/grunt-depconcat/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"serialize-deptree":"~0.1.0"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","dependencies","concat"],"gitHead":"ba1cc76d3758c14b762d894b99d6494139989f85","_id":"grunt-depconcat@0.2.1","_shasum":"16c32155e3d38da38f79f299e13e48d47aaac762","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"terrykingcha","email":"terrykingcha@gmail.com"},"maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}],"dist":{"shasum":"16c32155e3d38da38f79f299e13e48d47aaac762","tarball":"https://registry.npmjs.org/grunt-depconcat/-/grunt-depconcat-0.2.1.tgz","integrity":"sha512-crZLweYcJPLk3BrIy5KI5W+dDDkzoChOVsX1yeoumP2gMEZ3DtbYlI2ew+5souPNE235e29xCNm7+GY4HUfGjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj/NNFSegFCakmJpO5Tc6nkWWlDYxGj08KYRnxJ/BK1AiBIB88Q6TOokxVAXoQ51VHZXw6OOfdw3mm8b8Gfu+voZQ=="}]}}},"readme":"# grunt-depconcat\r\n\r\n> Concat depended files\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.1`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-depconcat --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-depconcat');\r\n```\r\n\r\n## The \"depconcat\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `depconcat` to the data object passed into `grunt.initConfig()`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {\r\n      // Task-specific options go here.\r\n    },\r\n    your_target: {\r\n      // Target-specific file lists and/or options go here.\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n### Options\r\n\r\n#### separator\r\nType: `String`  \r\nDefault: `grunt.util.linefeed`\r\n\r\nConcatenated files will be joined on this string. If you're post-processing concatenated JavaScript files with a minifier, you may need to use a semicolon `';'` as the separator.\r\n\r\n\r\n#### requireEmplate\r\nType: `String`  \r\nDefault: `\\\\/\\\\/@require\\\\s+([^\\\\n\\\\r]+)[\\\\n\\\\r]*`\r\n\r\nThe RegExp string of depended indication.\r\n\r\n#### ext\r\nType: `String`  \r\nDefault: `.js`\r\n\r\nThe extname for files.\r\n\r\n#### except\r\nType: `Array`  \r\nDefault: `[]`\r\n\r\nThe excepted files.\r\n\r\n### Usage Examples\r\n\r\n#### basic usage for js\r\nIn this example, when `1.js` require `2.js`, and `2.js` require `3.js`, the Concatenated files will be joined as `3.js` + `2.js` + `1.js`.\r\n\r\nrequire js file like this:\r\n\r\n\t//@require 1\r\n\t//@require 2\r\n\r\nconcatenat them:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {},\r\n    files: {\r\n      'dest/all.js': ['src/1.js', 'src/2.js', 'src/3.js'],\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n#### basic usage for css\r\nIn this example, when `1.css` import `2.css` , and `2.css` import `3.css`, the Concatenated files will be joined as `3.css` + `2.css` + `1.css`.\r\n\r\nrequire css file like this as usual:\r\n\r\n\t@import url(\"1.css\");\r\n\t@import url(\"2.css\");\r\n\r\nconcatenat them:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {},\r\n    files: {\r\n      'dest/all.css': ['assets/1.css', 'src/2.css', 'src/3.css'],\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n#### except files\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {\r\n\t\t  except: ['zepto.js']\r\n\t  },\r\n    files: {\r\n      'dest/all.js': ['src/*.js'],\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n#### use custom `requiteTemplate`\r\n\r\nIn this example, we have some tepmlate files named `1.tpl`, `2.tpl`, `3.tpl`.\r\n\r\nrequire template file lik this:\r\n\r\n\t//@extend 1\r\n\t//@extend 2\r\n\r\nconcatenat them:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {\r\n\t\t  ext: '.tpl',\r\n\t\t  requiteTemplate: '\\\\/\\\\/@extend\\\\s+([^\\\\n\\\\r]+)[\\\\n\\\\r]*'\r\n\t  },\r\n    files: {\r\n      'dest/all.tpl': ['templates/*.tpl'],\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n#### use depended tree\r\n\r\nIn this example, we have a depended tree for files, like this:\r\n\r\n```js\r\n{\r\n\t'1.js': ['2.js', '3.js'],\r\n\t'2.js': ['4.js']\r\n\t'3.js': [],\r\n\t'4.js': []\r\n}\r\n```\r\n\r\nconcatenat them:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {},\r\n    my_target: {\r\n  \t  tree: {\r\n  \t\t  '1.js': ['2.js', '3.js'],\r\n  \t\t  '2.js': ['4.js']\r\n  \t\t  '3.js': [],\r\n  \t\t  '4.js': []\r\n\t    },\r\n      dest: 'dest/all.js'\r\n    },\r\n  },\r\n})\r\n```\r\n\r\nor specific a filepath:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  depconcat: {\r\n    options: {},\r\n    my_target: {\r\n\t    tree: 'src/.tree',\r\n      dest: 'dest/all.js'\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n\r\n## Warning\r\n\r\nBe careful of \"`Circular Dependency`\". We will support to check it in the future.\r\n\r\n## Release History\r\n_(Nothing yet)_\r\n","maintainers":[{"name":"terrykingcha","email":"terrykingcha@gmail.com"}],"time":{"modified":"2022-06-18T14:50:32.455Z","created":"2013-06-09T06:26:46.688Z","0.1.0":"2013-06-09T06:26:51.212Z","0.1.1":"2013-06-09T06:40:05.001Z","0.1.2":"2013-08-28T06:49:20.429Z","0.2.0":"2013-09-12T07:50:24.154Z","0.2.1":"2014-08-27T09:43:41.057Z"},"author":{"name":"tERry.K","email":"terrykingcha@gmail.com"},"repository":{"type":"git","url":"git@github.com:terrykingcha/grunt-depconcat.git"},"homepage":"https://github.com/terrykingcha/grunt-depconcat","keywords":["gruntplugin","dependencies","concat"],"bugs":{"url":"https://github.com/terrykingcha/grunt-depconcat/issues"},"readmeFilename":"README.md","users":{"zswx0226":true}}