-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-5405 npm pack dependencies #13599
Changes from all commits
b5c7f5b
c076159
6bda01b
a6db514
3d09dbf
97429db
48ce289
8a2989a
bd7d9ad
0afb7c2
471b449
84a494e
5bf01d2
55edca1
001a36d
5586842
fe8afdf
bdd8b32
cafaa98
a71d7a9
1553821
a4264d5
6ca6ec6
2fa4149
0f5f464
7545c4a
12d1979
8b88494
6138bd2
3280714
a76c2e5
2199c34
b41bc1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# override specific package dlls# | ||
################### | ||
!*.dll | ||
!*.dll |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,22 +11,50 @@ | |
<DocumentationFile>$(OutputPath)\DynamoCoreWpf.XML</DocumentationFile> | ||
<EnableDefaultCompileItems>False</EnableDefaultCompileItems> | ||
<EnableDefaultEmbeddedResourceItems>False</EnableDefaultEmbeddedResourceItems> | ||
<PreferredToolArchitecture>x64</PreferredToolArchitecture> | ||
</PropertyGroup> | ||
|
||
<Target Name="NpmRunBuild" BeforeTargets="BeforeBuild"> | ||
<Exec Command="npm install --prefix ./ @dynamods/splash-screen@latest" /> | ||
<!--This command gets the latest build from the splash screen--> | ||
<Exec Command="npm pack @dynamods/splash-screen@latest" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first step is to download the .tgz file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you add inline comments, you should be able to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we clean up none latest versioned npm package? |
||
</Target> | ||
|
||
<Target Name="ExtractTGZFile" DependsOnTargets="NpmRunBuild" BeforeTargets="BeforeBuild"> | ||
<!--Locates the .tgz files--> | ||
<ItemGroup> | ||
<TGZFiles Include="./dynamods-splash-screen-*.tgz" /> | ||
</ItemGroup> | ||
|
||
<!--Reverse the order of the files to get the higher version--> | ||
<ItemGroup> | ||
<Reversed Include="@(TGZFiles->Reverse())" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<Last>%(TGZFiles.Filename)</Last> | ||
</PropertyGroup> | ||
|
||
<!--Creates the folder for the package--> | ||
<MakeDir Directories="Packages/SplashScreen" /> | ||
|
||
<!--Extracts the file to /package--> | ||
<Exec Command="tar -xzf $(MSBuildProjectDirectory)\$(Last).tgz --strip-components=1 --directory=Packages/SplashScreen"></Exec> | ||
|
||
<!--Deletes the tgz file--> | ||
<Delete Files="$(MSBuildProjectDirectory)\$(Last).tgz" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<None Remove="node_modules\%40dynamods\splash-screen\build\index.bundle.js" /> | ||
<None Remove="node_modules\%40dynamods\splash-screen\build\index.html" /> | ||
<None Remove="Packages\SplashScreen\build\index.bundle.js" /> | ||
<None Remove="Packages\SplashScreen\build\index.html" /> | ||
<None Remove="UI\Images\Canvas\canvas-button-geometry-scaling.png" /> | ||
<None Remove="Views\Core\GeometryScalingPopup.xaml" /> | ||
<None Remove="UI\Images\question-hover-blue-16px.png" /> | ||
<None Remove="Views\SplashScreen\WebApp\splashScreenBackground.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="node_modules\@dynamods\splash-screen\build\index.bundle.js" /> | ||
<EmbeddedResource Include="node_modules\@dynamods\splash-screen\build\index.html" /> | ||
<EmbeddedResource Include="Packages\SplashScreen\build\index.bundle.js" /> | ||
<EmbeddedResource Include="Packages\SplashScreen\build\index.html" /> | ||
<EmbeddedResource Include="Views\SplashScreen\WebApp\splashScreenBackground.png" /> | ||
</ItemGroup> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the old folder hierarchy