Dm.Web.BuildStatic 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Dm.Web.BuildStatic --version 1.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Dm.Web.BuildStatic --version 1.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Dm.Web.BuildStatic&version=1.0.1
                    
nuke :add-package Dm.Web.BuildStatic --version 1.0.1
                    

🛠️ DotNet Pre-build Tool for Static Resources.

Install

Install as a .NET tool:

dotnet tool install --global Dm.Web.BuildStatic

Usage

CLI:

Dm.Web.BuildStatic [config.json]

# OR

Dm.Web.BuildStatic # Uses dm.web.build.static.json config by default

Pre-build step:

<Target Name="BuildStatic" BeforeTargets="PreBuildEvent">
	

	
	<Exec Command="Dm.Web.BuildStatic" />

	
	<Exec Command="Dm.Web.BuildStatic PreBuild/config.json" />
</Target>

Config format

{
	"use": {
		"list":  "Dm.Web.BuildStatic.Services.Stages.FilesSource+Builder",
		"each":  "Dm.Web.BuildStatic.Services.Stages.ForEach+Builder",
		"copy":  "Dm.Web.BuildStatic.Services.Stages.FileCopy+Builder",
		"minjs": "Dm.Web.BuildStatic.Services.Stages.MinifyJS+Builder",
		"gzip":  "Dm.Web.BuildStatic.Services.Stages.GzipStream+Builder"
	},
	"pipelines": [
		{
			"list": "TestStatic/js/**/*.js",
			"each": "string",
			"copy": "{path}.gz",
			"minjs":  null,
			"gzip": "Optimal"
		},
		{
			"list": "TestStatic/css/*.css",
			"each": "string",
			"copy": "{path}.gz",
			"gzip": null
		},
		{
			"list": "TestStatic/move-to-js.txt",
			"each": "string",
			"copy": "TestStatic/js/moved.js.gz",
			"minjs":  null,
			"gzip": null
		}
	]
}

The configuration has two main sections:

  1. use: Defines available steps in format: "step_name": "BuilderClassName"
  2. pipelines: Defines pipelines and their steps in format: "step_name": <config_data>|null
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.3 244 11/24/2025
1.0.2 209 10/13/2025
1.0.1 217 10/8/2025
1.0.0 209 10/8/2025