pentialabs / configuration.transform Goto Github PK
View Code? Open in Web Editor NEWconfiguration.transform npm package
configuration.transform npm package
Setup continuous integration build to check tests and syntax errors
The module should be rewritten into a powershell module.
This is a way to simplify the technology stack for the build-system, this is a part of larger build system where all the modules will be written in powershell.
Setup an automatic deployment pipeline for the powershell module
Write proper documentation explaning the use case and usage of the module.
All documentation must be in the repository as markdown file.
Man kan ikke sætte en relativ sti i websiteRoot.
Virker:
"configs": [
{
"websiteRoot": "D:\\PROJECTS\\STAR\\TEMP\\Star.IJN\\Webroot",
}
]
Virker ikke
"configs": [
{
"websiteRoot": "Webroot",
}
]
D:\PROJECTS\STAR\temp\Star.IJN [pbi-34504-pentia-builder ≡ +1 ~1 -0 !]> gulp apply-xml-transform
[15:47:53] Using gulpfile D:\PROJECTS\STAR\temp\Star.IJN\gulpfile.js
[15:47:53] Starting 'apply-xml-transform'...
Applying configuration transform: D:\PROJECTS\STAR\temp\Star.IJN\src\Context\STAR.Sitecore.Site\web.always.config
To destination file: Webroot\web.config
[15:47:53] Using automatic maxcpucount
D:\PROJECTS\STAR\temp\Star.IJN\node_modules\@pentia\configuration-transformer\applytransform.targets(14,5): error : Could not open Source f
ile: Could not find a part of the path 'D:\PROJECTS\STAR\temp\Star.IJN\node_modules\@pentia\configuration-transformer\Webroot\web.config'.
[15:47:53] { Error: Command failed: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\PROJECTS\STAR\temp\Star.IJN\node_modules\@pen
tia\configuration-transformer\applytransform.targets" "/target:ApplyTransform" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /
property:Configuration="debug" /property:WebConfigToTransform="Webroot" /property:TransformFile="D:\PROJECTS\STAR\temp\Star.IJN\src\Context
\STAR.Sitecore.Site\web.always.config" /property:FileToTransform="web.config"
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
killed: false,
code: 1,
signal: null,
cmd: '"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe" "D:\\PROJECTS\\STAR\\temp\\Star.IJN\\node_modules\\@pentia\\configuratio
n-transformer\\applytransform.targets" "/target:ApplyTransform" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /property:Config
uration="debug" /property:WebConfigToTransform="Webroot" /property:TransformFile="D:\\PROJECTS\\STAR\\temp\\Star.IJN\\src\\Context\\STAR.Si
tecore.Site\\web.always.config" /property:FileToTransform="web.config"' }
[15:47:53] Build failed!
[15:47:53] Finished 'apply-xml-transform' after 221 ms
Get a developer to use this in his day to day work to get proper feedback and iron out the little kinks.
There needs to be unit tests for all common developer use cases in order to minimize errors and ensure backwards compatibility
It should be possible to run the configuration transformer with a build configuration, source and a target directory so that its possible to recreate the configuration for any environment locally.
The error messages for the different error conditions should be clear and concise to reduce developer frustration.
All error message should contain a link to this repository and the related documentation page where applicable
Når man kører gulp apply-xml-transform --env prod prøver den også at transforme preprod
Applying configuration transform: D:\PROJECTS\star\Star.IJN\src\Context\STAR.Sitecore.Site\App_Config\ConnectionStrings.preprod.config
To destination file: D:\PROJECTS\star\Star.IJN\Webroot\App_Config\ConnectionStrings.preprod.config
[09:57:38] Using automatic maxcpucount
D:\PROJECTS\star\Star.IJN\node_modules\@pentia\configuration-transformer\applytransform.targets(14,5): error : Could not open Source file: Could not find file 'D:\PROJECTS\star\Star.IJN\Webroot\App_Config\ConnectionStrings.preprod.config'.
[09:57:39] { Error: Command failed: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\PROJECTS\star\Star.IJN\node_modules\@pentia\configuration-transformer\applytransform.targets" "/target:ApplyTransform" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /property:
Configuration="prod" /property:WebConfigToTransform="D:\PROJECTS\star\Star.IJN\Webroot" /property:TransformFile="D:\PROJECTS\star\Star.IJN\src\Context\STAR.Sitecore.Site\App_Config\ConnectionStrings.preprod.config" /property:FileToTransform="App_Config\ConnectionStrings.preprod.con
fig"
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
killed: false,
code: 1,
signal: null,
cmd: '"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe" "D:\\PROJECTS\\star\\Star.IJN\\node_modules\\@pentia\\configuration-transformer\\applytransform.targets" "/target:ApplyTransform" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /property:Configuration="p
rod" /property:WebConfigToTransform="D:\\PROJECTS\\star\\Star.IJN\\Webroot" /property:TransformFile="D:\\PROJECTS\\star\\Star.IJN\\src\\Context\\STAR.Sitecore.Site\\App_Config\\ConnectionStrings.preprod.config" /property:FileToTransform="App_Config\\ConnectionStrings.preprod.config
"' }
[09:57:39] Build failed!
Grunden er nok dette filter i gulpfile.js
"./src/Foundation/**/*"+build.AlwaysApplyName+".config",
"./src/Feature/**/*"+build.AlwaysApplyName+".config",
"./src/Context/**/*"+build.AlwaysApplyName+".config",
"./src/Foundation/**/*"+build.config.name+".config",
"./src/Feature/**/*"+build.config.name+".config",
"./src/Context/**/*"+build.config.name+".config",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.