amd-conversion-analyser
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -1,1 +0,1 @@ | ||
'use strict';var argv=require('minimist')(process.argv.slice(2)),path=require('path'),fs=require('fs'),ConversionDetector=require('./lib/conversiondetector'),FILE_LOG_LEVELS=['debug','info','warn','error'],DEFAULT_FILE_LOG_LEVEL='info';function printHelp(){console.log('Run:'),console.log(' node index.js /your/source/dir <options>'),console.log('Options:'),console.log(' --globals // Show information about used globals per file'),console.log(' --globals-summary // List all globals used by most to least frequent usage'),console.log(' --no-utf8 // Don\'t do pretty print'),console.log(' --no-summary // Don\'t show the conversion summary'),console.log(' --no-files // Don\'t list the files'),console.log(' --no-ok // Don\'t show already converted files'),console.log(' --config <file> // Use this config file'),console.log(' --idea // Show a link to open the file directly in IntelliJ IDEA'),console.log(' --idea-globals // Show a link to open the file directly in IntelliJ IDEA at the position of the found global'),console.log(' --file-log-level // Set log level for amd conversion status ('+FILE_LOG_LEVELS.join(', ')+'); default: '+DEFAULT_FILE_LOG_LEVEL)}function main(){if(argv.help)return void printHelp();if('undefined'==typeof argv._[0])return console.log('No input directory given. Run with --help for options'),console.log(),void printHelp();var b=[argv.config,path.join(argv._[0],'.amdanalyserrc'),'./config.js'].find(function(d){try{return!!d&&(fs.accessSync(d,fs.R_OK),fs.statSync(d).isFile())}catch(f){return!1}});try{console.log('Loading config from ',path.resolve(b));var a=require(path.resolve(b))}catch(d){return void console.error('Could not load config file: '+d.message)}a.symbols=require('./lib/symbols')(!1!==argv.utf8),argv['file-log-level']=FILE_LOG_LEVELS.includes(argv['file-log-level'])?argv['file-log-level']:DEFAULT_FILE_LOG_LEVEL;var c=new ConversionDetector(argv._[0],a,argv,console);c.run()}main(); | ||
'use strict';var argv=require('minimist')(process.argv.slice(2)),path=require('path'),fs=require('fs'),ConversionDetector=require('./lib/conversiondetector'),FILE_LOG_LEVELS=['debug','info','warn','error'],DEFAULT_FILE_LOG_LEVEL='info';function printHelp(){console.log('Run:'),console.log(' node index.js /your/source/dir <options>'),console.log('Options:'),console.log(' --globals // Show information about used globals per file'),console.log(' --globals-summary // List all globals used by most to least frequent usage'),console.log(' --no-utf8 // Don\'t do pretty print'),console.log(' --no-summary // Don\'t show the conversion summary'),console.log(' --no-files // Don\'t list the files'),console.log(' --no-ok // Don\'t show already converted files'),console.log(' --config <file> // Use this config file'),console.log(' --idea // Show a link to open the file directly in IntelliJ IDEA'),console.log(' --idea-globals // Show a link to open the file directly in IntelliJ IDEA at the position of the found global'),console.log(' --file-log-level // Set log level for amd conversion status ('+FILE_LOG_LEVELS.join(', ')+'); default: '+DEFAULT_FILE_LOG_LEVEL)}function main(){if(argv.help)return void printHelp();if('undefined'==typeof argv._[0])return console.log('No input directory given. Run with --help for options'),console.log(),void printHelp();var b=[argv.config,path.join(argv._[0],'.amdanalyserrc'),path.join(__dirname,'../','config.js')].find(function(d){try{return!!d&&(fs.accessSync(d,fs.R_OK),fs.statSync(d).isFile())}catch(f){return!1}});try{console.log('Loading config from ',path.resolve(b));var a=require(path.resolve(b))}catch(d){return void console.error('Could not load config file: '+d.message)}a.symbols=require('./lib/symbols')(!1!==argv.utf8),argv['file-log-level']=FILE_LOG_LEVELS.includes(argv['file-log-level'])?argv['file-log-level']:DEFAULT_FILE_LOG_LEVEL;var c=new ConversionDetector(argv._[0],a,argv,console);c.run()}main(); |
{ | ||
"name": "amd-conversion-analyser", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -41,3 +41,3 @@ const argv = require('minimist')(process.argv.slice(2)); | ||
path.join(argv._[0],".amdanalyserrc"), | ||
"./config.js" | ||
path.join(__dirname,"../","config.js") | ||
].find(file => { | ||
@@ -44,0 +44,0 @@ try { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
208337
39