Selaa lähdekoodia

Move phantomas_custom to the phantomas tool directory

Gaël Métais 10 vuotta sitten
vanhempi
commit
dccb9bb49c

+ 1 - 1
lib/runner.js

@@ -1,7 +1,7 @@
 var Q                       = require('q');
 var debug                   = require('debug')('ylt:runner');
 
-var phantomasWrapper        = require('./tools/phantomasWrapper');
+var phantomasWrapper        = require('./tools/phantomas/phantomasWrapper');
 var jsExecutionTransformer  = require('./tools/jsExecutionTransformer');
 var rulesChecker            = require('./rulesChecker');
 var scoreCalculator         = require('./scoreCalculator');

+ 0 - 0
phantomas_custom/core/scopeYLT/scopeYLT.js → lib/tools/phantomas/custom_modules/core/scopeYLT/scopeYLT.js


+ 1 - 1
phantomas_custom/modules/domComplexYLT/domComplexYLT.js → lib/tools/phantomas/custom_modules/modules/domComplexYLT/domComplexYLT.js

@@ -28,7 +28,7 @@ exports.module = function(phantomas) {
     // duplicated ID (issue #392)
     phantomas.setMetric('DOMidDuplicated'); // @desc number of duplicated IDs found in DOM
 
-    var Collection = require('../../../node_modules/phantomas/lib/collection'),
+    var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
         DOMids = new Collection();
 
     phantomas.on('domId', function(id) {

+ 1 - 1
phantomas_custom/modules/domQYLT/domQYLT.js → lib/tools/phantomas/custom_modules/modules/domQYLT/domQYLT.js

@@ -246,7 +246,7 @@ exports.module = function(phantomas) {
 
     // count DOM queries by either ID, tag name, class name and selector query
     // @see https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-document-doctype
-    var Collection = require('../../../node_modules/phantomas/lib/collection'),
+    var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
         DOMqueries = new Collection();
 
     phantomas.on('domQuery', function(type, query, fnName, context) {

+ 0 - 0
phantomas_custom/modules/eventListYLT/eventListYLT.js → lib/tools/phantomas/custom_modules/modules/eventListYLT/eventListYLT.js


+ 1 - 1
phantomas_custom/modules/jQYLT/jQYLT.js → lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js

@@ -298,7 +298,7 @@ exports.module = function(phantomas) {
 
 
     // count Sizzle calls to detect duplicated queries
-    var Collection = require('../../../node_modules/phantomas/lib/collection'),
+    var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
         sizzleCalls = new Collection(),
         jQueryLoading = new Collection();
 

+ 0 - 0
phantomas_custom/modules/jsErrYLT/jsErrYLT.js → lib/tools/phantomas/custom_modules/modules/jsErrYLT/jsErrYLT.js


+ 0 - 0
phantomas_custom/modules/jsFileLoadYLT/jsFileLoadYLT.js → lib/tools/phantomas/custom_modules/modules/jsFileLoadYLT/jsFileLoadYLT.js


+ 0 - 0
phantomas_custom/modules/jsTreeYLT/jsTreeYLT.js → lib/tools/phantomas/custom_modules/modules/jsTreeYLT/jsTreeYLT.js


+ 0 - 0
phantomas_custom/modules/keepAlive/keepAlive.js → lib/tools/phantomas/custom_modules/modules/keepAlive/keepAlive.js


+ 0 - 0
phantomas_custom/modules/windowPerfYLT/windowPerfYLT.js → lib/tools/phantomas/custom_modules/modules/windowPerfYLT/windowPerfYLT.js


+ 2 - 2
lib/tools/phantomasWrapper.js → lib/tools/phantomas/phantomasWrapper.js

@@ -43,8 +43,8 @@ var PhantomasWrapper = function() {
                 'windowPerformance' // overriden
             ].join(','),
             'include-dirs': [
-                'phantomas_custom/core',
-                'phantomas_custom/modules'
+                'lib/tools/phantomas/custom_modules/core',
+                'lib/tools/phantomas/custom_modules/modules'
             ].join(',')
         };
 

+ 1 - 1
test/core/phantomasWrapperTest.js

@@ -1,5 +1,5 @@
 var should = require('chai').should();
-var phantomasWrapper = require('../../lib/tools/phantomasWrapper');
+var phantomasWrapper = require('../../lib/tools/phantomas/phantomasWrapper');
 
 describe('phantomasWrapper', function() {