Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

BowerHelper

Contains function to run bower tasks

Nested types and modules

TypeDescription
BowerCommand

The list of support Bower commands. The Custom alternative can be used for other commands not in the list until they are implemented

BowerParams

The Bower parameter type

InstallArgs

Arguments for the Bower install command

Functions and values

Function or valueDescription
Bower(setParams)
Signature: setParams:(BowerParams -> BowerParams) -> unit

Runs bower with the given modification function. Make sure to have bower installed, you can install bower with nuget or a regular install. To change which Bower executable to use you can set the BowerFilePath parameter with the setParams function.

Parameters

  • setParams - Function used to overwrite the Bower default parameters.

Sample

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
    Target "Web" (fun _ ->
        Bower (fun p ->
                  { p with
                      Command = Install Standard
                      WorkingDirectory = "./src/FakeSimple.Web/"
                  })

        Bower (fun p ->
                  { p with
                      Command = (Run "build")
                      WorkingDirectory = "./src/FAKESimple.Web/"
                  })
    )
defaultBowerParams
Signature: BowerParams

Bower default parameters

run(bowerParams)
Signature: bowerParams:BowerParams -> unit