Skip to content
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

Revert msbuild js compress task #79

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######
env:
MSBUILD_CONFIGURATION: Debug
# debug to bypass js compression

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
with:
fetch-depth: 0
filter: tree:0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install uglify-js
run: npm install uglify-js -g
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

#
/src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js
/src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js.map

# User-specific files
*.rsuser
*.suo
Expand Down
5 changes: 5 additions & 0 deletions prebuild.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@REM compress js.
@REM due to static web apps deployment task and issue in github actions support custom msbuild tasks, this has to be called manually until a proper solution is found
@REM prerequisites: npm install uglify-js -g

uglifyjs ./src/OpenLayers.Blazor/wwwroot/openlayers_interop.js -o ./src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js -c -m --source-map "filename='./src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js.map'"
4 changes: 0 additions & 4 deletions src/OpenLayers.Blazor/OpenLayers.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="CompressJS" BeforeTargets="Compile" Condition="$(Configuration)=='Release'">
<Exec Command="uglifyjs ./wwwroot/openlayers_interop.js -o ./wwwroot/openlayers_interop.min.js -c -m --source-map &quot;filename='./wwwroot/openlayers_interop.min.js.map'&quot;"/>
</Target>
</Project>
1 change: 1 addition & 0 deletions src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.