This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
forked from wiledal/gulp-include
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
40 lines (40 loc) · 4.96 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
{
"name": "gulp-include",
"version": "1.0.1",
"description": "Makes inclusion of files a breeze. Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.",
"homepage": "http://github.com/wiledal/gulp-include",
"repository": {
"type": "git",
"url": "git://github.com/wiledal/gulp-include.git"
},
"main": "index.js",
"scripts": {
"test": "mocha"
},
"keywords": [
"gulpplugin"
],
"author": {
"name": "Hugo Wiledal"
},
"license": "MIT",
"devDependencies": {
"gulp": "~3.3.4",
"mocha": "~1.17.0",
"should": "~2.1.1"
},
"dependencies": {
"event-stream": "~3.1.0",
"glob": "^4.0.0",
"gulp-util": "~2.2.10"
},
"readme": "#gulp-include [![NPM version][npm-image]][npm-url] ![Travis build][travis-image]\n>Makes inclusion of files a breeze. \nEnables functionality similar to that of snockets / sprockets or other file insertion compilation tools.\n\n> Made for gulp 3\n\n\n## Usage\nFirst, install `gulp-include` as a dev dependency:\n`npm install --save-dev gulp-include`\n\nThen, add your _include-comments_ to your file. \n_People who have experience with `sprockets` or `snockets` will feel at home._ \n\n\nAn _include-comment_ looks like this:\n```javascript\n//= include relative/path/to/file.js\n```\nor \n```coffeescript\n#= require_tree relative/path/to/folder\n```\nor even\n```javascript\n/*\n= include relative/path/to/file.js\n= require relative/path/to/file2.js\n= include_tree relative/path/to/folder\n*/\n```\n`gulp-include` does not care about whitespace, as long as the comment-line starts with a _newline_ followed `=` and contains `include`, `require` or `include_tree`, `require_tree`.\n\n\nThe example below compiles a several coffee-files and js-files into a single js-file:\n\n`app.coffee`:\n\n```coffeescript\n`\n//= require vendor/jquery.js\n//= require vendor/modernizr.js\n`\n\n#= require controllers/AppController.coffee\n#= require_tree views\n\nclass Main extends AppController\n\tconstructor: ->\n\t\tconsole.log \"This is main!\"\n\nwindow.main = new Main()\n```\n*Note:* The example above uses backsticks (\\`) to allow `gulp-coffee` to compile inline javascript\n\n`gulpfile.js`:\n\n```javascript\nvar gulp\t\t= require('gulp'),\n\tinclude\t\t= require('gulp-include'),\n\tcoffee\t\t= require('gulp-coffee');\n\ngulp.task(\"scripts\", function() {\n\tgulp.src('src/js/app.coffee')\n\t\t.pipe( include() )\n\t\t.pipe( coffee() )\n\t\t.pipe( gulp.dest(\"dist/js\") )\n});\n\ngulp.task(\"default\", \"scripts\");\n```\n\n## Options\n* `extensions` (optional)\n\t* Takes a `String` or an `Array` of extensions, eg: `\"js\"` or `[\"js\", \"coffee\"]`\n\t* If set, all inclusions that does not match the extension(s) will be ignored\n\n## Release log\n#### 0.2.3\n* Merged community fixes by [platdesign](https://github.com/platdesign) and [cujojp](https://github.com/cujojp)\n\n#### 0.2.2\n* Updated regex directive to not collide with other requireing plugins, like browserify ([cwacek](https://github.com/cwacek))\n\n#### 0.2.1\n* Changed replace-method to fix issue when requiring a file that contained special characters ([juanghurtado](https://github.com/juanghurtado))\n\n#### 0.2.0\n* Added `require_tree`/`include_tree` (Thanks to [juanghurtado](https://github.com/juanghurtado)!)\n* Method now takes an `extensions` param for controlling what types of files to include\n\n#### 0.1.0\n* Basic include\n\n## Licence\n(MIT License)\n\nCopyright (c) 2014 Hugo Wiledal\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n[travis-image]: https://api.travis-ci.org/wiledal/gulp-include.png?branch=master\n\n[npm-url]: https://npmjs.org/package/gulp-include\n[npm-image]: https://badge.fury.io/js/gulp-include.png",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/wiledal/gulp-include/issues"
},
"_id": "[email protected]",
"_shasum": "3d21681c20029c88cb048c5ebc5d017aef7c9d99",
"_from": "gulp-include@",
"_resolved": "https://registry.npmjs.org/gulp-include/-/gulp-include-0.2.3.tgz"
}