i use jspm same issue applies other build-time bundling tool. can't figure out how these play msdeploy.
here's issue:
- i run jspm produce 1 or more bundle files (one each "chain" want).
- my application uses
system.import(orrequireor script tag) start these loading.
if deploy directory , xcopy there deployment server copacetic. however, our devops team prefers deploy using msdeploy. i'm supposed point @ csproj. if how msdeploy know deploy generated bundles?
you have create msbuild project accomplish - 1 hooks msdeploy pipeline. i've provided sample (one i'm using project) below; i'm going release nuget package (along other msbuild scripts written take advantage of npm, jspm, , gulp).
the props file:
<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <propertygroup> <copyallfilestosinglefolderforpackagedependson> frontenddeploymentfiles; $(copyallfilestosinglefolderforpackagedependson); </copyallfilestosinglefolderforpackagedependson> </propertygroup> </project> the targets file:
<?xml version="1.0" encoding="utf-8"?> <project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <target name="frontenddeploymentfiles"> <itemgroup> <_customfiles include="dist\**\*" /> <_customfiles include="jspm_packages\**\*" /> <filesforpackagingfromproject include="%(_customfiles.identity)"> <destinationrelativepath>%(relativedir)%(filename)%(extension)</destinationrelativepath> </filesforpackagingfromproject> </itemgroup> </target> </project> this isn't drop-in you're bundling files, takeaway here can define glob pattern copy methods. replace jspm_packages whatever bundles (as scripts i've provided publishing development environment) , should good.
hope helpful else runs issue.
Comments
Post a Comment