Skip to content

Commit

Permalink
Cleanup: Remove BOMs, Use Unix style line endings (hardkoded#1646)
Browse files Browse the repository at this point in the history
* Dos2Unix

* Remove trailing whitespace

* Update .editorconfig
  • Loading branch information
Androbin authored Mar 25, 2021
1 parent 82a48af commit c9d864e
Show file tree
Hide file tree
Showing 460 changed files with 3,599 additions and 3,597 deletions.
8 changes: 5 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ root = true

# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = false
trim_trailing_whitespace = false
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.cs]
# Language Conventions
Expand Down Expand Up @@ -74,4 +76,4 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_blocks = true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[CodeFactorUrl]: https://www.codefactor.io/repository/github/hardkoded/puppeteer-sharp
[Backers]: https://opencollective.com/hardkoded-projects

Puppeteer Sharp is a .NET port of the official [Node.JS Puppeteer API](https://github.com/GoogleChrome/puppeteer).
Puppeteer Sharp is a .NET port of the official [Node.JS Puppeteer API](https://github.com/GoogleChrome/puppeteer).

# Puppeteer-Sharp 3 is here!

Expand Down
44 changes: 22 additions & 22 deletions appveyor-demo.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2019
configuration: Release
environment:
matrix:
- framework: net471
- framework: netcoreapp3.1
before_build:
- ps: >-
dotnet restore .\demos\PuppeteerSharpDemos-Local.sln
build:
project: .\demos\PuppeteerSharpDemos-Local.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\demos\PuppeteerSharpPdfDemo
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2019
configuration: Release
environment:
matrix:
- framework: net471
- framework: netcoreapp3.1
before_build:
- ps: >-
dotnet restore .\demos\PuppeteerSharpDemos-Local.sln
build:
project: .\demos\PuppeteerSharpDemos-Local.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\demos\PuppeteerSharpPdfDemo
dotnet run -p PuppeteerSharpPdfDemo-Local.csproj -f %framework% auto-exit
74 changes: 37 additions & 37 deletions appveyor-edge.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
version: 1.0.{build}
branches:
only:
- disabled
image: Visual Studio 2019
configuration: Release
environment:
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
PUPPETEER_EXECUTABLE_PATH: C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe
install:
- ps: >-
cd c:\projects\puppeteer-sharp-edge\appveyor\edge
.\InstallEdge.ps1
cd c:\projects\puppeteer-sharp-edge
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
New-SelfSignedCertificate -Subject "localhost" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\CurrentUser\My"
Get-ChildItem -Path cert:\CurrentUSer\my | where { $_.friendlyname -eq "Puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp-edge\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\lib\PuppeteerSharp.Tests
dotnet test -f netcoreapp2.2 -s test.runsettings
cache:
version: 1.0.{build}
branches:
only:
- disabled
image: Visual Studio 2019
configuration: Release
environment:
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
PUPPETEER_EXECUTABLE_PATH: C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe
install:
- ps: >-
cd c:\projects\puppeteer-sharp-edge\appveyor\edge
.\InstallEdge.ps1
cd c:\projects\puppeteer-sharp-edge
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
New-SelfSignedCertificate -Subject "localhost" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\CurrentUser\My"
Get-ChildItem -Path cert:\CurrentUSer\my | where { $_.friendlyname -eq "Puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp-edge\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\lib\PuppeteerSharp.Tests
dotnet test -f netcoreapp2.2 -s test.runsettings
cache:
- $HOME/.nuget/packages
100 changes: 50 additions & 50 deletions appveyor-linux.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
version: 1.0.{build}
branches:
only:
- master
image: ubuntu1804
configuration: Release
environment:
MOZ_WEBRENDER: 0
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
matrix:
- framework: netcoreapp2.2
PRODUCT: CHROMIUM
- framework: netcoreapp2.2
PRODUCT: FIREFOX

before_build:
- sh: >-
sudo apt-get -y install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget xvfb
dotnet restore lib/PuppeteerSharp.sln
dotnet dev-certs https -ep lib/PuppeteerSharp.TestServer/testCert.cer
sudo openssl x509 -inform der -in lib/PuppeteerSharp.TestServer/testCert.cer -out /usr/local/share/ca-certificates/testCert.crt -outform pem
sudo update-ca-certificates
build_script:
- sh: >-
dotnet build -f $framework ./lib/PuppeteerSharp.DevicesFetcher/PuppeteerSharp.DevicesFetcher.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.Tests.DumpIO/PuppeteerSharp.Tests.DumpIO.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.TestServer/PuppeteerSharp.TestServer.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj
test_script:
- sh: >-
Xvfb :1 -screen 5 1024x768x8 &
export DISPLAY=:1.5
cd lib/PuppeteerSharp.Tests
dotnet test -f $framework -s test.runsettings
cache:
- $HOME/.nuget/packages
version: 1.0.{build}
branches:
only:
- master
image: ubuntu1804
configuration: Release
environment:
MOZ_WEBRENDER: 0
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
matrix:
- framework: netcoreapp2.2
PRODUCT: CHROMIUM
- framework: netcoreapp2.2
PRODUCT: FIREFOX

before_build:
- sh: >-
sudo apt-get -y install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget xvfb
dotnet restore lib/PuppeteerSharp.sln
dotnet dev-certs https -ep lib/PuppeteerSharp.TestServer/testCert.cer
sudo openssl x509 -inform der -in lib/PuppeteerSharp.TestServer/testCert.cer -out /usr/local/share/ca-certificates/testCert.crt -outform pem
sudo update-ca-certificates
build_script:
- sh: >-
dotnet build -f $framework ./lib/PuppeteerSharp.DevicesFetcher/PuppeteerSharp.DevicesFetcher.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.Tests.DumpIO/PuppeteerSharp.Tests.DumpIO.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.TestServer/PuppeteerSharp.TestServer.csproj
dotnet build -f $framework ./lib/PuppeteerSharp.Tests/PuppeteerSharp.Tests.csproj
test_script:
- sh: >-
Xvfb :1 -screen 5 1024x768x8 &
export DISPLAY=:1.5
cd lib/PuppeteerSharp.Tests
dotnet test -f $framework -s test.runsettings
cache:
- $HOME/.nuget/packages
92 changes: 46 additions & 46 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2019
configuration: Release
environment:
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
matrix:
- framework: net48
- framework: netcoreapp2.2
- framework: net48
ENQUEUE_ASYNC_MESSAGES: true
- framework: netcoreapp2.2
ENQUEUE_ASYNC_MESSAGES: true
install:
- ps: >-
if($env:APPVEYOR_REPO_TAG -eq 'True' -And $env:framework -eq 'netcoreapp2.0') {
choco install docfx
}
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
New-SelfSignedCertificate -Subject "localhost" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\CurrentUser\My"
Get-ChildItem -Path cert:\CurrentUSer\my | where { $_.friendlyname -eq "Puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\lib\PuppeteerSharp.Tests
dotnet test -f %framework% -s test.runsettings
on_success:
- ps: >-
cd c:\projects\puppeteer-sharp
c:\projects\puppeteer-sharp\appveyor\GenerateDocs.ps1
cache:
- $HOME/.nuget/packages
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2019
configuration: Release
environment:
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
matrix:
- framework: net48
- framework: netcoreapp2.2
- framework: net48
ENQUEUE_ASYNC_MESSAGES: true
- framework: netcoreapp2.2
ENQUEUE_ASYNC_MESSAGES: true
install:
- ps: >-
if($env:APPVEYOR_REPO_TAG -eq 'True' -And $env:framework -eq 'netcoreapp2.0') {
choco install docfx
}
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
New-SelfSignedCertificate -Subject "localhost" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\CurrentUser\My"
Get-ChildItem -Path cert:\CurrentUSer\my | where { $_.friendlyname -eq "Puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\lib\PuppeteerSharp.Tests
dotnet test -f %framework% -s test.runsettings
on_success:
- ps: >-
cd c:\projects\puppeteer-sharp
c:\projects\puppeteer-sharp\appveyor\GenerateDocs.ps1
cache:
- $HOME/.nuget/packages
Loading

0 comments on commit c9d864e

Please sign in to comment.