Skip to content

Commit

Permalink
sample for ZipHelper - relates to #686
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 10, 2015
1 parent 6fbfdd4 commit cc384e5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/app/FakeLib/ZipHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,23 @@ let CreateZipOfIncludes fileName comment level (files : (string * FileIncludes)
/// ## Parameters
/// - `fileName` - The file name of the resulting zip file.
/// - `files` - A sequence of target folders and files to include relative to their base directory.
///
/// ## Sample
///
/// The following sample creates 4 targets using TargetTemplateWithDependencies and hooks them into the build pipeline.
///
/// Target "Zip" (fun _ ->
/// [ "", !! "MyWebApp/*.html"
/// ++ "MyWebApp/bin/**/*.dll"
/// ++ "MyWebApp/bin/**/*.pdb"
/// ++ "MyWebApp/fonts/**"
/// ++ "MyWebApp/img/**"
/// ++ "MyWebApp/js/**"
/// -- "MyWebApp/js/_references.js"
/// ++ "MyWebApp/web.config"
/// @"app_data\jobs\continuous\MyWebJob", !! "MyWebJob/bin/Release/*.*"
/// ]
/// |> ZipOfIncludes (sprintf @"bin\MyWebApp.%s.zip" buildVersion)
/// )
///
let ZipOfIncludes fileName files = CreateZipOfIncludes fileName "" DefaultZipLevel files

1 comment on commit cc384e5

@ctaggart
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description looks off.

Please sign in to comment.