gulp-mu-aspx-configurator
v2.0.0
Published
Generates a .NET (ASPX) script that configures a .NET/IIS server from a build configuration.
Downloads
201
Maintainers
Readme
gulp-mu-aspx-configurator
Generates a self-contained .NET (ASPX) script that configures a .NET/IIS server.
The plugin fills an ASPX template with build/version information and the build's
configuration JSON. The generated µconfigurator.aspx runs on the target server
and applies the configuration (and, optionally, refreshes an app-cache manifest
timestamp).
Install
npm install --save-dev gulp-mu-aspx-configuratorUsage
import configurator from 'gulp-mu-aspx-configurator';
function configure() {
return gulp.src('./webservices/aspx/')
.pipe(configurator({
build: BUILD, // e.g. "Production" | "Test"
builds: BUILDS, // the builds/configurator definition object
releases: RELEASES // [{ main, minor, revision, beta }]
}))
.pipe(gulp.dest('./webservices/aspx/'));
}Options
| Option | Type | Default | Description |
| -------------- | -------- | -------------------------------- | --------------------------------------------------------------------------- |
| build | string | "Production" | Build key looked up in builds.builds[build]. |
| builds | object | — | Object with builds[<build>] and a configurator definition. |
| releases | array | [{main:1,minor:0,revision:0,beta:false}] | Version info; releases[0] is used. |
| filename | string | "µconfigurator.aspx" | Output file name. |
| appcacheFile | string | undefined | App-cache manifest file name to timestamp-refresh; pass "" to disable. |
| aspxTemplate | string | bundled template | Override the ASPX template path. |
| jsTemplate | string | bundled template | Override the JS template path. |
| cssTemplate | string | bundled template | Override the CSS template path. |
License
MIT
