dependency-tree
Advanced tools
Comparing version 5.8.0 to 5.9.0
{ | ||
"name": "dependency-tree", | ||
"version": "5.8.0", | ||
"version": "5.9.0", | ||
"description": "Get the dependency tree of a module", | ||
@@ -27,3 +27,4 @@ "main": "index.js", | ||
"sass", | ||
"stylus" | ||
"stylus", | ||
"less" | ||
], | ||
@@ -39,4 +40,4 @@ "author": "Joel Kemp <joel@mrjoelkemp.com>", | ||
"debug": "~2.2.0", | ||
"filing-cabinet": "^1.6.1", | ||
"precinct": "^3.5.2" | ||
"filing-cabinet": "^1.7.0", | ||
"precinct": "^3.6.0" | ||
}, | ||
@@ -43,0 +44,0 @@ "devDependencies": { |
@@ -7,2 +7,8 @@ ### dependency-tree [![npm](http://img.shields.io/npm/v/dependency-tree.svg)](https://npmjs.org/package/dependency-tree) [![npm](http://img.shields.io/npm/dm/dependency-tree.svg)](https://npmjs.org/package/dependency-tree) | ||
* Works for JS (AMD, CommonJS, ES6 modules) and CSS preprocessors (Sass, Stylus, and Less); basically, any module type supported by [Precinct](https://github.com/mrjoelkemp/node-precinct). | ||
- For CommonJS modules, 3rd party dependencies (npm installed dependencies) are included in the tree by default | ||
- Dependency path resolutions are handled by [filing-cabinet](https://github.com/mrjoelkemp/node-filing-cabinet) | ||
- Supports RequireJS and Webpack loaders | ||
* All core Node modules (assert, path, fs, etc) are removed from the dependency list by default | ||
### Usage | ||
@@ -32,8 +38,2 @@ | ||
* Works for JS (AMD, CommonJS, ES6 modules) and CSS preprocessors (Sass, Stylus); basically, any module type supported by [Precinct](https://github.com/mrjoelkemp/node-precinct). | ||
- For CommonJS modules, 3rd party dependencies (npm installed dependencies) are included in the tree by default | ||
- Dependency path resolutions are handled by [filing-cabinet](https://github.com/mrjoelkemp/node-filing-cabinet) | ||
- Supports RequireJS and Webpack loaders | ||
* All core Node modules (assert, path, fs, etc) are removed from the dependency list by default | ||
#### Options | ||
@@ -40,0 +40,0 @@ |
@@ -56,2 +56,15 @@ import assert from 'assert'; | ||
function mockLess() { | ||
mockfs({ | ||
[__dirname + '/example/less']: { | ||
'a.less': ` | ||
@import "b.css"; | ||
@import "c.less"; | ||
`, | ||
'b.css': 'body { color: blue; }', | ||
'c.less': 'body { color: pink; }' | ||
} | ||
}); | ||
} | ||
function mockes6() { | ||
@@ -577,2 +590,11 @@ mockfs({ | ||
}); | ||
describe('less', function() { | ||
beforeEach(function() { | ||
mockLess(); | ||
}); | ||
testToList('less', '.less'); | ||
}); | ||
}); | ||
@@ -579,0 +601,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36732
926
Updatedfiling-cabinet@^1.7.0
Updatedprecinct@^3.6.0