mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
0
web/node_modules/rework-visit/Makefile
generated
vendored
Normal file
0
web/node_modules/rework-visit/Makefile
generated
vendored
Normal file
8
web/node_modules/rework-visit/Readme.md
generated
vendored
Normal file
8
web/node_modules/rework-visit/Readme.md
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
# rework-visit
|
||||
|
||||
Rework declaration visitor for plugins (and rework core).
|
||||
|
||||
# License
|
||||
|
||||
MIT
|
9
web/node_modules/rework-visit/component.json
generated
vendored
Normal file
9
web/node_modules/rework-visit/component.json
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "rework-visit",
|
||||
"repo": "visionmedia/rework-visit",
|
||||
"version": "1.0.0",
|
||||
"description": "Rework declaration visitor utility",
|
||||
"keywords": ["css", "rework"],
|
||||
"license": "MIT",
|
||||
"scripts": ["index.js"]
|
||||
}
|
38
web/node_modules/rework-visit/index.js
generated
vendored
Normal file
38
web/node_modules/rework-visit/index.js
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
|
||||
/**
|
||||
* Expose `visit()`.
|
||||
*/
|
||||
|
||||
module.exports = visit;
|
||||
|
||||
/**
|
||||
* Visit `node`'s declarations recursively and
|
||||
* invoke `fn(declarations, node)`.
|
||||
*
|
||||
* @param {Object} node
|
||||
* @param {Function} fn
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function visit(node, fn){
|
||||
node.rules.forEach(function(rule){
|
||||
// @media etc
|
||||
if (rule.rules) {
|
||||
visit(rule, fn);
|
||||
return;
|
||||
}
|
||||
|
||||
// keyframes
|
||||
if (rule.keyframes) {
|
||||
rule.keyframes.forEach(function(keyframe){
|
||||
fn(keyframe.declarations, rule);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
// @charset, @import etc
|
||||
if (!rule.declarations) return;
|
||||
|
||||
fn(rule.declarations, node);
|
||||
});
|
||||
};
|
7
web/node_modules/rework-visit/package.json
generated
vendored
Normal file
7
web/node_modules/rework-visit/package.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "rework-visit",
|
||||
"version": "1.0.0",
|
||||
"description": "Rework declaration visitor utility",
|
||||
"keywords": ["css", "rework"],
|
||||
"license": "MIT"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue