@omlet/cli
Advanced tools
Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6
interface ParseOptions { | ||
inputPatterns: string[]; | ||
ignorePatterns: string[]; | ||
workingDir: string; | ||
} | ||
@@ -10,3 +9,2 @@ interface AnalyzeOptions { | ||
corePatterns: string[]; | ||
workingDir: string; | ||
} | ||
@@ -13,0 +11,0 @@ interface ModuleId { |
@@ -39,3 +39,3 @@ "use strict"; | ||
function parse(projectRoot, options) { | ||
const result = JSON.parse((0, binding_1.parse)(projectRoot, options.inputPatterns, options.ignorePatterns, options.workingDir)); | ||
const result = JSON.parse((0, binding_1.parse)(projectRoot, options.inputPatterns, options.ignorePatterns)); | ||
return result; | ||
@@ -45,3 +45,3 @@ } | ||
function analyze(projectRoot, options) { | ||
const result = JSON.parse((0, binding_1.analyze)(projectRoot, options.inputPatterns, options.ignorePatterns, options.workingDir)); | ||
const result = JSON.parse((0, binding_1.analyze)(projectRoot, options.inputPatterns, options.ignorePatterns)); | ||
const globMatcher = createGlobMatcher(options.corePatterns); | ||
@@ -48,0 +48,0 @@ return { |
@@ -34,4 +34,3 @@ "use strict"; | ||
inputPatterns: args.input, | ||
ignorePatterns: args.ignore, | ||
workingDir: process.cwd() | ||
ignorePatterns: args.ignore | ||
}); | ||
@@ -44,3 +43,3 @@ console.log(JSON.stringify(result, null, 2)); | ||
.requiredOption("-i, --input <glob-pattern>", "List of glob patterns for input files", accumulateValues) | ||
.option("--ignore <glob-pattern>", "List of ignore patterns for skipping input files", accumulateValues, []) | ||
.option("--ignore <glob-pattern>", "List of ignore patterns for skipping input files", accumulateValues, ["**/node_modules/**", "**/*.d.ts"]) | ||
.option("-c, --core <glob-pattern>", "List of core patterns to identify reusable components", accumulateValues, []) | ||
@@ -52,4 +51,3 @@ .requiredOption("-o, --output <path|->", "Specify path for resulting output file", "omlet.json") | ||
ignorePatterns: args.ignore, | ||
corePatterns: args.core, | ||
workingDir: process.cwd(), | ||
corePatterns: args.core | ||
}); | ||
@@ -56,0 +54,0 @@ const output = JSON.stringify(result, null, 2); |
{ | ||
"name": "@omlet/cli", | ||
"version": "0.0.1-alpha.4", | ||
"version": "0.0.1-alpha.6", | ||
"bin": { | ||
@@ -62,13 +62,13 @@ "omlet": "bin/omlet" | ||
"optionalDependencies": { | ||
"@omlet/cli-win32-x64-msvc": "0.0.1-alpha.4", | ||
"@omlet/cli-darwin-x64": "0.0.1-alpha.4", | ||
"@omlet/cli-linux-x64-gnu": "0.0.1-alpha.4", | ||
"@omlet/cli-darwin-arm64": "0.0.1-alpha.4", | ||
"@omlet/cli-linux-arm64-gnu": "0.0.1-alpha.4", | ||
"@omlet/cli-linux-arm64-musl": "0.0.1-alpha.4", | ||
"@omlet/cli-win32-arm64-msvc": "0.0.1-alpha.4", | ||
"@omlet/cli-linux-arm-gnueabihf": "0.0.1-alpha.4", | ||
"@omlet/cli-linux-x64-musl": "0.0.1-alpha.4", | ||
"@omlet/cli-freebsd-x64": "0.0.1-alpha.4", | ||
"@omlet/cli-win32-ia32-msvc": "0.0.1-alpha.4" | ||
"@omlet/cli-win32-x64-msvc": "0.0.1-alpha.5", | ||
"@omlet/cli-darwin-x64": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-x64-gnu": "0.0.1-alpha.5", | ||
"@omlet/cli-darwin-arm64": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm64-gnu": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm64-musl": "0.0.1-alpha.5", | ||
"@omlet/cli-win32-arm64-msvc": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm-gnueabihf": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-x64-musl": "0.0.1-alpha.5", | ||
"@omlet/cli-freebsd-x64": "0.0.1-alpha.5", | ||
"@omlet/cli-win32-ia32-msvc": "0.0.1-alpha.5" | ||
}, | ||
@@ -75,0 +75,0 @@ "dependencies": { |
{ | ||
"name": "@omlet/cli", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"bin": { | ||
@@ -62,13 +62,13 @@ "omlet": "bin/omlet" | ||
"optionalDependencies": { | ||
"@omlet/cli-win32-x64-msvc": "0.0.1-alpha.5", | ||
"@omlet/cli-darwin-x64": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-x64-gnu": "0.0.1-alpha.5", | ||
"@omlet/cli-darwin-arm64": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm64-gnu": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm64-musl": "0.0.1-alpha.5", | ||
"@omlet/cli-win32-arm64-msvc": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-arm-gnueabihf": "0.0.1-alpha.5", | ||
"@omlet/cli-linux-x64-musl": "0.0.1-alpha.5", | ||
"@omlet/cli-freebsd-x64": "0.0.1-alpha.5", | ||
"@omlet/cli-win32-ia32-msvc": "0.0.1-alpha.5" | ||
"@omlet/cli-win32-x64-msvc": "0.0.1-alpha.6", | ||
"@omlet/cli-darwin-x64": "0.0.1-alpha.6", | ||
"@omlet/cli-linux-x64-gnu": "0.0.1-alpha.6", | ||
"@omlet/cli-darwin-arm64": "0.0.1-alpha.6", | ||
"@omlet/cli-linux-arm64-gnu": "0.0.1-alpha.6", | ||
"@omlet/cli-linux-arm64-musl": "0.0.1-alpha.6", | ||
"@omlet/cli-win32-arm64-msvc": "0.0.1-alpha.6", | ||
"@omlet/cli-linux-arm-gnueabihf": "0.0.1-alpha.6", | ||
"@omlet/cli-linux-x64-musl": "0.0.1-alpha.6", | ||
"@omlet/cli-freebsd-x64": "0.0.1-alpha.6", | ||
"@omlet/cli-win32-ia32-msvc": "0.0.1-alpha.6" | ||
}, | ||
@@ -75,0 +75,0 @@ "dependencies": { |
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
21144
429