C# 클래스 B4BCore.CheckBundles

This is a class that contains various tests to ensure that your bundles are correctly formed and they are up to date.
파일 보기 프로젝트 열기: JonPSmith/MvcUsingBower 1 사용 예제들

공개 메소드들

메소드 설명
CheckAllBundlesAreValid ( ) : ReadOnlyCollection

This checks all the bundles in the bundle file are valid

CheckBundleFileIsNotNewerThanMinifiedFiles ( ) : string

This checks that the minified files for each bundle is older than the BowerBundles.json file that defines what is in a bundle.

CheckBundles ( Type classToFindProjectDirOf, string appDataDir = null, bool checkForConcatFile = true ) : System

This will setup checks the BundlesForBower in the assembly that the given type is in. It uses the data directory to find the BowerBundles.json and the bundlerForBower.json user config file

CheckBundles ( string mvcAppPath, string appDataDir = null, bool checkForConcatFile = true ) : System

This requires the path to the directory of the project where all the files are stored It uses the data directory to find the BowerBundles.json and the bundlerForBower.json user config file

CheckSingleBundleIsValid ( string bundleName ) : ReadOnlyCollection

Thic checks a specific bundle by name

비공개 메소드들

메소드 설명
AddErrorIfAnyFilesInBadFiles ( string bundleName, IList badFiles, string errorMessage, ICollection errors ) : void
CheckCdnBundle ( string bundleName, ICollection allCdns ) : List
CheckNonCdnBundle ( string bundleName, IEnumerable allBundleDebugLines ) : List
GetProjectDirectoryFromType ( Type classToFindProjectDirOf ) : string

메소드 상세

CheckAllBundlesAreValid() 공개 메소드

This checks all the bundles in the bundle file are valid
public CheckAllBundlesAreValid ( ) : ReadOnlyCollection
리턴 ReadOnlyCollection

CheckBundleFileIsNotNewerThanMinifiedFiles() 공개 메소드

This checks that the minified files for each bundle is older than the BowerBundles.json file that defines what is in a bundle.
public CheckBundleFileIsNotNewerThanMinifiedFiles ( ) : string
리턴 string

CheckBundles() 공개 메소드

This will setup checks the BundlesForBower in the assembly that the given type is in. It uses the data directory to find the BowerBundles.json and the bundlerForBower.json user config file
public CheckBundles ( Type classToFindProjectDirOf, string appDataDir = null, bool checkForConcatFile = true ) : System
classToFindProjectDirOf System.Type
appDataDir string optional: if App_Data directory is not at the top level then you need to supply /// AppDomain.CurrentDomain.GetData("DataDirectory").ToString() or an equivalent absolute directory path
checkForConcatFile bool optional: by default it checks the concat file, /// but if you go straight to the minified file then set this to false
리턴 System

CheckBundles() 공개 메소드

This requires the path to the directory of the project where all the files are stored It uses the data directory to find the BowerBundles.json and the bundlerForBower.json user config file
public CheckBundles ( string mvcAppPath, string appDataDir = null, bool checkForConcatFile = true ) : System
mvcAppPath string The absolute path to the project you want to test.
appDataDir string optional: if App_Data directory is not at the top level then you need to supply /// AppDomain.CurrentDomain.GetData("DataDirectory").ToString() or an equivalent absolute directory path
checkForConcatFile bool optional: by default it checks the concat file, /// but if you go straight to the minified file then set this to false
리턴 System

CheckSingleBundleIsValid() 공개 메소드

Thic checks a specific bundle by name
public CheckSingleBundleIsValid ( string bundleName ) : ReadOnlyCollection
bundleName string
리턴 ReadOnlyCollection