项目作者: csombok

项目描述 :
Productivity tools development
高级语言: PowerShell
项目地址: git://github.com/csombok/powershell-dev-tools.git
创建时间: 2018-01-29T11:42:02Z
项目社区:https://github.com/csombok/powershell-dev-tools

开源协议:

下载


Overview

PowerShell productivity tools for development

How to setup

This tool is a self-contained PowerShell module. It can be used by explicitly installing to user’s PowerShell module directory.

Please find details here how to install custom PowerShell modules..aspx)

Tools

Compare NPM dependecies

This tool is suppused to compare npm dependencies in a source and a destination package.json.
By using this tool it’s easy to higlight version mismatches.

  1. # Simple compare
  2. npmCompare c:\examples\first\package.json c:\examples\second\package.json
  3. # Include DEV dependecies
  4. npmCompare c:\examples\first\package.json c:\examples\second\package.json -IncludeDevDeps
  5. # Show mathcing entries as well
  6. npmCompare c:\examples\first\package.json c:\examples\second\package.json -IncludeEquals

Example output:

  1. Name Type Source Destination Latest
  2. ---- ---- ------ ----------- ------
  3. @google-cloud/bigquery dependencies 1.0.0 ^0.9.6 1.0.0
  4. @google-cloud/datastore dependencies 1.1.0 1.0.4 1.3.3
  5. @google-cloud/debug-agent dependencies 2.3.2 2.1.2 2.3.2
  6. @google-cloud/storage dependencies 1.5.2 1.2.0 1.5.2

Paremeters

  • Source: Path of the package.json file to be used as the source of the comparison
  • Destination: Path of the package.json file to be used as destination of the comparison
  • Filter: Filter result by package name
  • IncludeEqual: Include matching packages in the result
  • IncludeDevDeps: Include devDependencies in comparison result
  • ShowMismatchOnly: Show package version mismatch only in the result
  • LatestVersionInfo: Show latest npm package version in the result

Compare DLLs in source directories

This tool is suppused to compare dlls in a source and a destination folders.
By using this tool it’s easy to higlight version mismatches and missing references.

  1. # Simple compare
  2. dllCompare c:\examples\first c:\examples\second\
  3. # Use filter
  4. dllCompare c:\examples\first c:\examples\second\ -Filter Microsoft*
  5. # Analyze file versions
  6. dllCompare c:\examples\first c:\examples\second\ -CompareVersion

Example output:

  1. Name FileVersion SideIndicator
  2. ---- ----------- -------------
  3. Hangfire.Core.resources.dll 1.6.8.0 =>
  4. Hangfire.Core.dll 1.6.8.0 =>
  5. Hangfire.SqlServer.dll 1.6.8.0 =>
  6. Hangfire.SqlServer.dll 0.0.0.0 =>
  7. Microsoft.Owin.dll 3.0.30819.47 =>
  8. Microsoft.Owin.Host.SystemWeb.dll 3.0.30819.47 =>
  9. Newtonsoft.Json.dll 5.0.1.16007 =>
  10. Owin.dll 1.0 =>