Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

33
node_modules/css-rule-stream/test/base.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
var fs = require('fs'),
test = require('tape'),
through = require('through2'),
rules = require('../');
test('works', function(t) {
var expected = [
{"line": 2, "column": 1, "content":"div {\n background: red;\n}"},
{"line": 4, "column": 2, "content":".cls {\n color: green;\n}"},
{"line": 8, "column": 1, "content":"#id {\n font-size: 10px;\n}"},
{"line": 14, "column": 1, "content":"@media screen and (min-width: 1000px) {\n a {\n text-decoration: underline;\n }\n}"},
{"line": 20, "column": 1, "content":"a:hover {\n font-weight: bold; \n}"},
{"line": 24, "column": 1, "content":"section \n\n\n{\n margin: 0;\n /* comment wthin a rule */\n padding: 5px;\n}"},
{"line": 34, "column": 1, "content":"body > * {\n \n}"}
]
t.plan(expected.length + 1);
var rs = rules();
rs.pipe(through.obj(function(chunk, enc, next) {
t.same(chunk, expected.shift());
next();
},
function(next) {
t.ok(true);
next();
}));
fs.createReadStream(__dirname + '/gauntlet.css').pipe(rs);
})

36
node_modules/css-rule-stream/test/gauntlet.css generated vendored Normal file
View File

@@ -0,0 +1,36 @@
div {
background: red;
}.cls {
color: green;
}
#id {
font-size: 10px;
}
/* comment */
@media screen and (min-width: 1000px) {
a {
text-decoration: underline;
}
}
a:hover {
font-weight: bold;
}
section
{
margin: 0;
/* comment wthin a rule */
padding: 5px;
}
body > * {
}