@quailjs/quail-cli
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -1,8 +0,10 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
'use strict'; | ||
let cwd = process.cwd(); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
let getLocalConfig = callback => { | ||
let configFilePath = path.join(cwd, '.quailrc'); | ||
var cwd = process.cwd(); | ||
var getLocalConfig = function getLocalConfig(callback) { | ||
var configFilePath = path.join(cwd, '.quailrc'); | ||
fs.readFile(configFilePath, 'utf8', function (err, data) { | ||
@@ -9,0 +11,0 @@ if (err) { |
#!/usr/bin/env node --harmony | ||
'use strict'; | ||
const path = require('path'); | ||
const configUtil = require('./config'); | ||
const cwd = process.cwd(); | ||
var path = require('path'); | ||
var configUtil = require('./config'); | ||
var cwd = process.cwd(); | ||
module.exports = function quailBuild() { | ||
const quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core')); | ||
var quailCore = require(path.join(cwd, 'node_modules', '@quailjs/quail-core')); | ||
// Get a list of assessments. | ||
@@ -11,0 +11,0 @@ configUtil.getLocalConfig(function (data) { |
@@ -8,5 +8,5 @@ #!/usr/bin/env node --harmony | ||
var appOpener = require('opener'); | ||
let config = require('./config'); | ||
let cwd = process.cwd(); | ||
let state = {}; | ||
var config = require('./config'); | ||
var cwd = process.cwd(); | ||
var state = {}; | ||
@@ -24,3 +24,2 @@ function serveAssessmentTestPage(response, assessmentName) { | ||
// Javascript resources. | ||
source += '<script src="' + state.jquery + '" type="application/javascript"></script>'; | ||
source += ['<script>', 'window.assessmentName = \'' + assessmentName + '\';', '</script>'].join('\n'); | ||
@@ -85,3 +84,3 @@ source += '<script src="' + state.quail + '" type="application/javascript"></script>'; | ||
// HTTP server for testing fixtures like jQuery and Quail. | ||
// HTTP server for testing fixtures. | ||
http.createServer(function (request, response) { | ||
@@ -139,3 +138,2 @@ var accepts = request.headers.accept; | ||
config.getLocalConfig(function (data) { | ||
state.jquery = data.jquery; | ||
state.quail = data.quail; | ||
@@ -142,0 +140,0 @@ state.assessmentSpecsPath = data.assessmentSpecsPath; |
@@ -12,9 +12,9 @@ #!/usr/bin/env node --harmony | ||
// Change to the dist dir. | ||
var cwd = path.join(__dirname, '..'); | ||
var cwd = process.cwd(); | ||
var runnerScript; | ||
var phantomjsExec = path.join(__dirname, '..', 'node_modules/.bin/phantomjs'); | ||
var phantomjsExec = path.join(cwd, 'node_modules/phantomjs/bin/phantomjs'); | ||
var runners = { | ||
'default': path.join(__dirname, '..', 'lib/evaluators/phantom_evaluator.js'), | ||
wcag2: path.join(__dirname, '..', 'lib/evaluators/wcag2_evaluator.js') | ||
'default': path.join(__dirname, 'evaluators/phantom_evaluator.js'), | ||
wcag2: path.join(__dirname, 'evaluators/wcag2_evaluator.js') | ||
}; | ||
@@ -28,5 +28,5 @@ | ||
var args = [runnerScript, url, cwd]; | ||
var args = [phantomjsExec, runnerScript, url, cwd]; | ||
// Determine the configuration file path. | ||
var configFilePath = path.join(__dirname, '..', 'config/config.json'); | ||
var configFilePath = path.join(__dirname, '..', '.phantomrc'); | ||
if (cmd.config) { | ||
@@ -41,3 +41,3 @@ configFilePath = cmd.config; | ||
} | ||
var proc = spawn(phantomjsExec, args, { | ||
var proc = spawn('node', args, { | ||
stdio: 'inherit' | ||
@@ -44,0 +44,0 @@ }); |
{ | ||
"name": "@quailjs/quail-cli", | ||
"description": "The Quail command line interface", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": { | ||
@@ -18,6 +18,7 @@ "name": "Jesse Beach", | ||
"commander": "^2.9.0", | ||
"opener": "^1.4.1" | ||
"opener": "^1.4.1", | ||
"phantomjs": "^1.9.18" | ||
}, | ||
"scripts": { | ||
"compile": "babel --presets stage-2 -d lib/ src/", | ||
"compile": "babel -d lib/ src/", | ||
"prepublish": "npm run compile", | ||
@@ -33,4 +34,5 @@ "test": "jscs -c .jscsrc src bin && eslint -c .eslintrc src bin", | ||
"babel-eslint": "^5.0.0-beta4", | ||
"babel-plugin-transform-object-rest-spread": "^6.3.13", | ||
"babel-polyfill": "^6.2.0", | ||
"babel-preset-stage-2": "^6.1.18", | ||
"babel-preset-es2015": "^6.3.13", | ||
"eslint": "^1.10.1", | ||
@@ -45,4 +47,4 @@ "jscs": "jscs-dev/node-jscs#c5adeba", | ||
"watch": { | ||
"compile": "src/*.js" | ||
"compile": "src/**/*.js" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
38423
11
876
3
7
6
3
+ Addedphantomjs@^1.9.18
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@0.2.01.0.0(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbl@1.0.3(transitive)
+ Addedboom@2.10.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.5.0(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addedcryptiles@2.0.5(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddebug@0.7.4(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextract-zip@1.5.0(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfd-slicer@1.0.1(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@1.0.1(transitive)
+ Addedfs-extra@0.26.7(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhasha@2.2.0(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhoek@2.16.3(transitive)
+ Addedhttp-signature@1.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsonfile@2.4.0(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedkew@0.7.0(transitive)
+ Addedklaw@1.3.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.0(transitive)
+ Addednode-uuid@1.4.8(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedphantomjs@1.9.20(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedprogress@1.1.8(transitive)
+ Addedqs@5.2.1(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrequest@2.67.0(transitive)
+ Addedrequest-progress@2.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsntp@1.0.9(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstringstream@0.0.6(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedthrottleit@1.0.1(transitive)
+ Addedtough-cookie@2.2.2(transitive)
+ Addedtunnel-agent@0.4.3(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtypedarray@0.0.7(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedwhich@1.2.14(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
+ Addedyauzl@2.4.1(transitive)