Git Product home page Git Product logo

configuration.transform's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

diegossj

configuration.transform's Issues

Rewrite to powershell

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.

Add documentation

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.

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

Add unit tests

There needs to be unit tests for all common developer use cases in order to minimize errors and ensure backwards compatibility

Helpful error message

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

Prøver at transforme preprod config når man builder til prod.

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", 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.