Skip to content

Commit

Permalink
v2.0.0 (#3)
Browse files Browse the repository at this point in the history
- Convert library to .NET Standard 2.0
- Namespace reorganization for better ergonomics (Only need to `open Fs.Units` now)
- Project folder restructure
- Add build project
- Add dotnet tooling
- Add .editorconfig
- Add Decimeter to Length modules
- Add Liter to Volume modules
- Add Gallon to Volume modules
- Moved FuelEconomy to compound folder and update types to include simple unit components
  • Loading branch information
1eyewonder authored Dec 7, 2023
1 parent 5097695 commit 18e0d47
Show file tree
Hide file tree
Showing 125 changed files with 6,732 additions and 4,921 deletions.
18 changes: 18 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "8.0.0",
"commands": [
"paket"
]
},
"fantomas": {
"version": "6.2.3",
"commands": [
"fantomas"
]
}
}
}
50 changes: 50 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
root = true

[*.{fs,fsx,fsi}]
trim_trailing_whitespace = true
fsharp_multiline_block_brackets_on_same_column = true
fsharp_multiline_lambda_closing_newline = true
fsharp_record_multiline_formatter = number_of_items
fsharp_align_function_signature_to_indentation = true
fsharp_keep_max_number_of_blank_lines = 1
fsharp_multiline_bracket_style = aligned
fsharp_newline_before_multiline_computation_expression = false
indent_size = 2

# Visual Studio Solution Files
[*.sln]
indent_style = tab

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,sfproj}]
indent_size = 2

# Markdown Files
[*.{md,mdx}]
trim_trailing_whitespace = false

# Bash Files
[*.{sh}]
end_of_line = lf

# Batch Files
[*.{cmd,bat}]
end_of_line = crlf

# Powershell Files
[*.{ps1, psm1}]
end_of_line = crlf

# Paket files
[paket.*]
trim_trailing_whitespace = true
indent_size = 2

[*.paket.references]
trim_trailing_whitespace = true
indent_size = 2

# YAML Files
[*.{yml,yaml}]
indent_size = 2
indent_style = space
1 change: 1 addition & 0 deletions .fantomasignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AssemblyInfo.fs
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build master

on:
pull_request:
types: [ opened, synchronize, reopened ]
paths-ignore:
- ".github"
- ".vscode"

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- name: Setup necessary dotnet SDKs
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
dotnet-version: 8.x

- name: Build via Bash
if: runner.os != 'Windows'
run: |
chmod +x ./build.sh
./build.sh
env:
CI: true
- name: Build via Windows
if: runner.os == 'Windows'
run: ./build.cmd
env:
CI: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
*.userosscache
*.sln.docstates

*.vscode

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

Expand Down
Binary file removed .paket/paket.bootstrapper.exe
Binary file not shown.
130 changes: 0 additions & 130 deletions .paket/paket.targets

This file was deleted.

1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@1eyewonder

This file was deleted.

1 change: 0 additions & 1 deletion Fs.Units.CSharp.Tests.Benchmark/paket.references

This file was deleted.

Loading

0 comments on commit 18e0d47

Please sign in to comment.