-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 5.26 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"_args": [
[
{
"raw": "gulp-header@https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"scope": null,
"escapedName": "gulp-header",
"name": "gulp-header",
"rawSpec": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"spec": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "gulp-header@https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"_id": "gulp-header@1.8.9",
"_inCache": true,
"_location": "/firebase-admin/gulp-header",
"_phantomChildren": {},
"_requested": {
"raw": "gulp-header@https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"scope": null,
"escapedName": "gulp-header",
"name": "gulp-header",
"rawSpec": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"spec": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"type": "remote"
},
"_requiredBy": [],
"_resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"_shasum": "c9f10fee0632d81e939789c6ecf45a151bf3098b",
"_shrinkwrap": null,
"_spec": "gulp-header@https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.9.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Michael J. Ryan",
"email": "tracker1@gmail.com",
"url": "http://github.com/tracker1"
},
"bugs": {
"url": "https://github.com/tracker1/gulp-header/issues"
},
"contributors": [
{
"name": "GoDaddy.com",
"url": "http://github.com/godaddy"
},
{
"name": "Douglas Duteil",
"email": "douglasduteil@gmail.com",
"url": "http://github.com/douglasduteil"
}
],
"dependencies": {
"concat-with-sourcemaps": "*",
"gulp-util": "*",
"object-assign": "*",
"through2": "^2.0.0"
},
"description": "Gulp extension to add header to file(s) in the pipeline.",
"devDependencies": {
"event-stream": "^3.1.7",
"gulp": "^3.9.0",
"mocha": "*",
"should": "*",
"vinyl": "*"
},
"directories": {
"test": "test"
},
"homepage": "https://github.com/tracker1/gulp-header#readme",
"https-proxy": null,
"keywords": [
"header",
"gulpplugin",
"eventstream"
],
"license": "MIT",
"main": "./index.js",
"name": "gulp-header",
"optionalDependencies": {},
"proxy": null,
"readme": "# gulp-header [![NPM version](https://badge.fury.io/js/gulp-header.png)](http://badge.fury.io/js/gulp-header) [![Build Status](https://travis-ci.org/tracker1/gulp-header.svg?branch=master)](https://travis-ci.org/tracker1/gulp-header)\n\ngulp-header is a [Gulp](https://github.com/gulpjs/gulp) extension to add a header to file(s) in the pipeline. [Gulp is a streaming build system](https://github.com/gulpjs/gulp) utilizing [node.js](http://nodejs.org/).\n\n## Install\n\n```javascript\nnpm install --save-dev gulp-header\n```\n\n## Usage\n\n```javascript\n// assign the module to a local variable\nvar header = require('gulp-header');\n\n\n// literal string\n// NOTE: a line separator will not be added automatically\ngulp.src('./foo/*.js')\n .pipe(header('Hello'))\n .pipe(gulp.dest('./dist/'))\n\n\n// ejs style templating\ngulp.src('./foo/*.js')\n .pipe(header('Hello <%= name %>\\n', { name : 'World'} ))\n .pipe(gulp.dest('./dist/'))\n\n\n// ES6-style template string\ngulp.src('./foo/*.js')\n .pipe(header('Hello ${name}\\n', { name : 'World'} ))\n .pipe(gulp.dest('./dist/'))\n\n\n// using data from package.json\nvar pkg = require('./package.json');\nvar banner = ['/**',\n ' * <%= pkg.name %> - <%= pkg.description %>',\n ' * @version v<%= pkg.version %>',\n ' * @link <%= pkg.homepage %>',\n ' * @license <%= pkg.license %>',\n ' */',\n ''].join('\\n');\n\ngulp.src('./foo/*.js')\n .pipe(header(banner, { pkg : pkg } ))\n .pipe(gulp.dest('./dist/'))\n\n\n// reading the header file from disk\nvar fs = require('fs');\ngulp.src('./foo/*.js')\n .pipe(header(fs.readFileSync('header.txt', 'utf8'), { pkg : pkg } ))\n .pipe(gulp.dest('./dist/'))\n```\n\n## Issues and Alerts\n\nMy handle on twitter is [@tracker1](https://twitter.com/tracker1) - If there is an urgent issue, I get twitter notifications sent to my phone.\n\n## API\n\n### header(text, data)\n\n#### text\n\nType: `String`\nDefault: `''`\n\nThe template text.\n\n\n#### data\n\nType: `Object`\nDefault: `{}`\n\nThe data object used to populate the text.\n\nIn addition to the passed in data, `file` will be the stream object for the file being templated against and `filename` will be the path relative from the stream's basepath.\n\n*NOTE: using `false` will disable template processing of the header*\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/tracker1/gulp-header.git"
},
"scripts": {
"publish-major": "npm version major && git push origin master && git push --tags",
"publish-minor": "npm version minor && git push origin master && git push --tags",
"publish-patch": "npm version patch && git push origin master && git push --tags",
"test": "mocha --reporter spec"
},
"version": "1.8.9"
}