Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
1
my-app/node_modules/void-elements/.gitattributes
generated
vendored
Executable file
1
my-app/node_modules/void-elements/.gitattributes
generated
vendored
Executable file
|
@ -0,0 +1 @@
|
|||
* text=auto
|
1
my-app/node_modules/void-elements/.npmignore
generated
vendored
Executable file
1
my-app/node_modules/void-elements/.npmignore
generated
vendored
Executable file
|
@ -0,0 +1 @@
|
|||
node_modules
|
4
my-app/node_modules/void-elements/.travis.yml
generated
vendored
Executable file
4
my-app/node_modules/void-elements/.travis.yml
generated
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- '0.10'
|
||||
- '0.11'
|
22
my-app/node_modules/void-elements/LICENSE
generated
vendored
Executable file
22
my-app/node_modules/void-elements/LICENSE
generated
vendored
Executable file
|
@ -0,0 +1,22 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) 2014 hemanth
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27
my-app/node_modules/void-elements/README.md
generated
vendored
Executable file
27
my-app/node_modules/void-elements/README.md
generated
vendored
Executable file
|
@ -0,0 +1,27 @@
|
|||
void-elements
|
||||
==============
|
||||
|
||||
### Array of "void elements" defined by the HTML specification
|
||||
|
||||
Exports an Array of "void element" node names as defined by the HTML spec.
|
||||
|
||||
The list is programatically generated from the [latest W3C HTML draft](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).
|
||||
|
||||
[](https://travis-ci.org/jadejs/void-elements)
|
||||
[](https://david-dm.org/jadejs/void-elements#info=devDependencies)
|
||||
[](https://www.npmjs.org/package/void-elements)
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
```js
|
||||
var voidElements = require('void-elements');
|
||||
|
||||
assert(voidElements.indexOf('span') === -1, '<span> is not a void element');
|
||||
assert(voidElements.indexOf('img') !== -1, '<img> is a void element');
|
||||
```
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
MIT
|
23
my-app/node_modules/void-elements/index.js
generated
vendored
Executable file
23
my-app/node_modules/void-elements/index.js
generated
vendored
Executable file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* This file automatically generated from `pre-publish.js`.
|
||||
* Do not manually edit.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
"area": true,
|
||||
"base": true,
|
||||
"br": true,
|
||||
"col": true,
|
||||
"embed": true,
|
||||
"hr": true,
|
||||
"img": true,
|
||||
"input": true,
|
||||
"keygen": true,
|
||||
"link": true,
|
||||
"menuitem": true,
|
||||
"meta": true,
|
||||
"param": true,
|
||||
"source": true,
|
||||
"track": true,
|
||||
"wbr": true
|
||||
};
|
28
my-app/node_modules/void-elements/package.json
generated
vendored
Executable file
28
my-app/node_modules/void-elements/package.json
generated
vendored
Executable file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "void-elements",
|
||||
"version": "2.0.1",
|
||||
"description": "Array of \"void elements\" defined by the HTML specification.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "node test",
|
||||
"prepublish": "node pre-publish.js > index.js"
|
||||
},
|
||||
"keywords": [
|
||||
"html",
|
||||
"void",
|
||||
"elements"
|
||||
],
|
||||
"repository": "hemanth/void-elements",
|
||||
"author": "hemanth.hm",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/hemanth/void-elements/issues"
|
||||
},
|
||||
"homepage": "https://github.com/hemanth/void-elements",
|
||||
"devDependencies": {
|
||||
"cheerio": "^0.18.0"
|
||||
}
|
||||
}
|
29
my-app/node_modules/void-elements/pre-publish.js
generated
vendored
Executable file
29
my-app/node_modules/void-elements/pre-publish.js
generated
vendored
Executable file
|
@ -0,0 +1,29 @@
|
|||
var cheerio = require('cheerio')
|
||||
, http = require('http');
|
||||
|
||||
http.get('http://www.w3.org/html/wg/drafts/html/master/syntax.html', function (res) {
|
||||
var str = '';
|
||||
res.setEncoding('utf8');
|
||||
res.on('data', function (buf) {
|
||||
str += buf;
|
||||
}).on('end', function () {
|
||||
var $ = cheerio.load(str);
|
||||
var codes = $('dfn#void-elements')
|
||||
.parent()
|
||||
.next()
|
||||
.text()
|
||||
.replace(/\s/gm,'')
|
||||
.split(",")
|
||||
.reduce(function (obj, code) {
|
||||
obj[code] = true;
|
||||
return obj;
|
||||
}, {});
|
||||
|
||||
console.log('/**');
|
||||
console.log(' * This file automatically generated from `pre-publish.js`.');
|
||||
console.log(' * Do not manually edit.');
|
||||
console.log(' */');
|
||||
console.log();
|
||||
console.log('module.exports = %s;', JSON.stringify(codes, null, 2));
|
||||
});
|
||||
});
|
5
my-app/node_modules/void-elements/test/index.js
generated
vendored
Executable file
5
my-app/node_modules/void-elements/test/index.js
generated
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
var assert = require('assert');
|
||||
var voidElements = require('../');
|
||||
assert(!voidElements.span, '<span> is not a void element');
|
||||
assert(voidElements.img, '<img> is a void element');
|
||||
console.log('tests passed');
|
Loading…
Add table
Add a link
Reference in a new issue