-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (58 loc) · 4.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "gulp-concat",
"description": "Concatenates files",
"version": "2.5.2",
"repository": {
"type": "git",
"url": "git://github.com/wearefractal/gulp-concat"
},
"author": {
"name": "Fractal",
"email": "contact@wearefractal.com",
"url": "http://wearefractal.com/"
},
"files": [
"index.js"
],
"keywords": [
"gulpplugin"
],
"dependencies": {
"concat-with-sourcemaps": "^1.0.0",
"gulp-util": "^3.0.1",
"through2": "^0.6.3"
},
"devDependencies": {
"gulp": "^3.8.7",
"gulp-sourcemaps": "^1.1.4",
"istanbul": "^0.3.2",
"mocha": "^2.0.1",
"mocha-lcov-reporter": "0.0.1",
"should": "^5.0.0",
"stream-array": "^1.0.1",
"stream-assert": "^2.0.1"
},
"scripts": {
"test": "mocha",
"coverage": "istanbul cover _mocha"
},
"engines": {
"node": ">= 0.10"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/wearefractal/gulp-concat/raw/master/LICENSE"
}
],
"readme": "![status](https://secure.travis-ci.org/wearefractal/gulp-concat.svg?branch=master)\n\n## Information\n\n<table>\n<tr>\n<td>Package</td><td>gulp-concat</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>Concatenates files</td>\n</tr>\n<tr>\n<td>Node Version</td>\n<td>>= 0.10</td>\n</tr>\n</table>\n\n## Usage\n\n```js\nvar concat = require('gulp-concat');\n\ngulp.task('scripts', function() {\n return gulp.src('./lib/*.js')\n .pipe(concat('all.js'))\n .pipe(gulp.dest('./dist/'));\n});\n```\n\nThis will concat files by your operating systems newLine. It will take the base directory from the first file that passes through it.\n\nFiles will be concatenated in the order that they are specified in the `gulp.src` function. For example, to concat `./lib/file3.js`, `./lib/file1.js` and `./lib/file2.js` in that order, the following code will create a task to do that:\n\n```js\nvar concat = require('gulp-concat');\n\ngulp.task('scripts', function() {\n return gulp.src(['./lib/file3.js', './lib/file1.js', './lib/file2.js'])\n .pipe(concat('all.js'))\n .pipe(gulp.dest('./dist/'));\n});\n```\n\nTo change the newLine simply pass an object as the second argument to concat with newLine being whatever (\\r\\n if you want to support any OS to look at it)\n\nFor instance:\n\n```js\n.pipe(concat('main.js', {newLine: ';'}))\n```\n\nTo specify `cwd`, `path` and other [vinyl](https://github.com/wearefractal/vinyl) properties, gulp-concat accepts `Object` as first argument:\n\n```js\nvar concat = require('gulp-concat');\n\ngulp.task('scripts', function() {\n return gulp.src(['./lib/file3.js', './lib/file1.js', './lib/file2.js'])\n .pipe(concat({ path: 'new.js', stat: { mode: 0666 }}))\n .pipe(gulp.dest('./dist'));\n});\n```\n\nThis will concat files into `./dist/new.js`.\n\n### Source maps\n\nSource maps can be generated by using [gulp-sourcemaps](https://www.npmjs.org/package/gulp-sourcemaps):\n\n```js\nvar gulp = require('gulp');\nvar concat = require('gulp-concat');\nvar sourcemaps = require('gulp-sourcemaps');\n\ngulp.task('javascript', function() {\n return gulp.src('src/**/*.js')\n .pipe(sourcemaps.init())\n .pipe(concat('all.js'))\n .pipe(sourcemaps.write())\n .pipe(gulp.dest('dist'));\n});\n```\n\n## LICENSE\n\n(MIT License)\n\nCopyright (c) 2014 Fractal <contact@wearefractal.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/wearefractal/gulp-concat/issues"
},
"homepage": "https://github.com/wearefractal/gulp-concat",
"_id": "gulp-concat@2.5.2",
"_shasum": "d644372cdc2b3cdb421a8a941c8d74e21d815f14",
"_from": "gulp-concat@*",
"_resolved": "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.5.2.tgz"
}