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

Missing Data Tasks #23

Open
tdashworth opened this issue Apr 20, 2021 · 1 comment
Open

Missing Data Tasks #23

tdashworth opened this issue Apr 20, 2021 · 1 comment
Labels
enhancement New feature or request generator-app Something related to the main generator.

Comments

@tdashworth
Copy link
Contributor

With the move to Nuke, we are missing our Data Migration tasks for importing/exporting data.

Similar to Cake, we can't use the engine directly since it's .NET Framework and Nuke is .NET Core. Cake bypassed that by building a CLI tool which is called by Cake. The source for the CLI tool is open here but it's not currently a public package we can consume. An issue for this has been raised which this issue is dependent on.

@tdashworth tdashworth added enhancement New feature or request generator-app Something related to the main generator. labels Apr 20, 2021
@tdashworth
Copy link
Contributor Author

I have just added the below target to my project to copy the data files into the PkgFolder for deployment.

Target CopySolutionData => _ => _
        .TriggeredBy(Compile)
        .Executes(() =>
        {
            foreach (var solution in SolutionsDirectory.GlobDirectories("*").Where(solution => DirectoryExists(solution / "data")))
            {
                var target = PkgFolder / solution.Parent.GetRelativePathTo(solution) / "data";

                DeleteDirectory(target);
                CopyDirectoryRecursively(solution / "data", target);
            }
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request generator-app Something related to the main generator.
Projects
None yet
Development

No branches or pull requests

1 participant