Skip to content

Commit

Permalink
scripts for building and cleaning (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis authored Mar 8, 2024
1 parent a6988f7 commit 6410152
Show file tree
Hide file tree
Showing 45 changed files with 2,153 additions and 2,016 deletions.
7 changes: 3 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
root = true

[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
end_of_line = lf
indent_style = space
indent_size = 4

[*.{json,yaml,yml,md}]
indent_size = 2
max_line_length = 100

[Makefile]
indent_style = tab
4 changes: 2 additions & 2 deletions .github/workflows/test-goodrouter-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
- packages/npm/**

jobs:
test-unit:
test:
runs-on: ubuntu-latest
container: node:20.9-alpine3.17
container: node:21.5.0-alpine3.19
steps:
- uses: actions/checkout@v4
- run: npm ci
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

node_modules/
target/
transpiled/
types/
bundled/
out/
out-*/
coverage/
obj/
bin/
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
out/
transpiled/
types/
bundled/
2 changes: 2 additions & 0 deletions goodrouter.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"editor.rulers": [100],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"rust-analyzer.check.command": "clippy",
"typescript.tsdk": "./node_modules/typescript/lib",
"npm.packageManager": "npm",
},
"extensions": {
"recommendations": [
Expand Down
218 changes: 213 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"packageManager": "[email protected]",
"workspaces": [
"packages/npm/*"
],
Expand All @@ -9,6 +10,8 @@
},
"devDependencies": {
"cspell": "^8.6.0",
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"rollup": "^4.12.1",
"typescript": "^5.4.2"
}
}
4 changes: 2 additions & 2 deletions packages/net/Goodrouter.Bench/Goodrouter.Bench.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.12.1"
Condition="'$(OS)' == 'Windows_NT'" />

<Content Include="../../fixtures/**">
<Content Include="../../../fixtures/**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
</Project>
8 changes: 4 additions & 4 deletions packages/net/Goodrouter.Bench/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

public class Program
{
public static void Main(string[] args)
{
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
public static void Main(string[] args)
{
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
}

Loading

0 comments on commit 6410152

Please sign in to comment.