Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added ZipHelper.ZipOfIncludes #686

Merged
merged 1 commit into from
Mar 10, 2015
Merged

Conversation

ctaggart
Copy link
Contributor

Here is a more flexible zip file helper named ZipOfIncludes. It uses a sequence of FileIncludes. We've been using it for months. It is easiest to explain what it does with an example:

Target "Zip" <| fun _ ->
    [   "", SetBaseDir "MyWebApp" <|
            !! "*.html"
            ++ "bin/**/*.dll"
            ++ "bin/**/*.pdb"
            ++ "fonts/**"
            ++ "img/**"
            ++ "js/**"
            -- "js/_references.js"
            ++ "web.config"
        @"app_data\jobs\continuous\MyWebJob", SetBaseDir "MyWebJob/bin/Release" <|
            !! "*.*"
    ]
    |> ZipOfIncludes (sprintf @"bin\MyWebApp.%s.zip" buildVersion)

forki added a commit that referenced this pull request Mar 10, 2015
added ZipHelper.ZipOfIncludes
@forki forki merged commit 800c67d into fsprojects:master Mar 10, 2015
forki added a commit that referenced this pull request Mar 10, 2015
@forki
Copy link
Member

forki commented Mar 10, 2015

I added your sample to the docs.

Thanks a lot.

@ctaggart ctaggart deleted the ZipOfIncludes branch June 29, 2015 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants