amdextract
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "amdextract", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Extracts AMD modules and their parts.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ # amdextract [![Build Status](https://travis-ci.org/mehdishojaei/amdextract.png)](https://travis-ci.org/mehdishojaei/amdextract) | ||
source.js | ||
``` js | ||
```js | ||
define('module1', ['p1', 'p2'], function (a, b) { | ||
@@ -14,3 +14,3 @@ return a; | ||
define('module2', ['p1', 'p2', 'p3'], function (a, b, c) { | ||
define('module2', ['p1', 'p2', 'p3', 'p4'], function (a, b, c) { | ||
return b; | ||
@@ -21,3 +21,3 @@ }); | ||
example.js | ||
``` js | ||
```js | ||
var fs = require('fs'); | ||
@@ -40,6 +40,6 @@ var amdextract = require('amdextract'); | ||
output | ||
``` console | ||
``` | ||
2 modules detected. | ||
Unused paths: p2 | ||
Unused paths: p1, p3 | ||
Unused paths: p1, p3, p4 | ||
@@ -81,4 +81,4 @@ Optimized output: | ||
example | ||
``` js | ||
source.js | ||
```js | ||
/* exceptsPaths: p3 */ | ||
@@ -90,4 +90,4 @@ define(['p1', 'p2', 'p3'], function (a, b, c) { | ||
output | ||
``` | ||
optimized-source.js | ||
```js | ||
/* exceptsPaths: p3 */ | ||
@@ -94,0 +94,0 @@ define(['p2', 'p3'], function (b, c) { |
16633