Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

View File

@@ -0,0 +1,8 @@
# rework-visit
Rework declaration visitor for plugins (and rework core).
# License
MIT

View 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"]
}

View 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);
});
};

View File

@@ -0,0 +1,35 @@
{
"_from": "rework-visit@^1.0.0",
"_id": "rework-visit@1.0.0",
"_inBundle": false,
"_integrity": "sha1-mUWygD8hni96ygCtuLyfZA+ELJo=",
"_location": "/rework-visit",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "rework-visit@^1.0.0",
"name": "rework-visit",
"escapedName": "rework-visit",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/resolve-url-loader"
],
"_resolved": "https://registry.npmjs.org/rework-visit/-/rework-visit-1.0.0.tgz",
"_shasum": "9945b2803f219e2f7aca00adb8bc9f640f842c9a",
"_spec": "rework-visit@^1.0.0",
"_where": "D:\\developments\\teaser-inertia\\nova-components\\NovaLeader\\node_modules\\resolve-url-loader",
"bundleDependencies": false,
"deprecated": false,
"description": "Rework declaration visitor utility",
"keywords": [
"css",
"rework"
],
"license": "MIT",
"name": "rework-visit",
"version": "1.0.0"
}