Skip to content

Commit c756eec

Browse files
authored
Merge pull request #432 from martinbryant/safe-v5-update
Safe v5 update
2 parents 1fee68b + be35cc9 commit c756eec

119 files changed

Lines changed: 8963 additions & 11885 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/dotnet-tools.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"paket": {
6+
"version": "8.0.0",
7+
"commands": [
8+
"paket"
9+
]
10+
},
11+
"fable": {
12+
"version": "4.9.0",
13+
"commands": [
14+
"fable"
15+
]
16+
},
17+
"femto": {
18+
"version": "0.18.0",
19+
"commands": [
20+
"femto"
21+
]
22+
},
23+
"fantomas": {
24+
"version": "6.2.3",
25+
"commands": [
26+
"fantomas"
27+
]
28+
}
29+
}
30+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = false
9+
10+
[*.fs]
11+
fsharp_multiline_bracket_style = stroustrup
12+
fsharp_newline_before_multiline_computation_expression = false

.fantomasignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore Fable files
2+
src/Client/output/fable_modules/

.gitattributes

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/build-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Safe Bookstore build and test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
setup:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: 8.0.x
20+
21+
- name: Restore tools
22+
working-directory: ./update
23+
run: dotnet tool restore
24+
25+
- name: Test
26+
working-directory: ./update
27+
run: dotnet run devopstests
28+
29+
- name: Build
30+
working-directory: ./update
31+
run: dotnet run bundle

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Safe Bookstore deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: 8.0.x
19+
20+
- name: Restore tools
21+
working-directory: ./update
22+
run: dotnet tool restore
23+
24+
- name: Test
25+
working-directory: ./update
26+
run: dotnet run devopstests
27+
28+
- name: Build
29+
working-directory: ./update
30+
run: dotnet run bundle
31+
32+
- name: Azure Login
33+
uses: azure/login@v1
34+
with:
35+
creds: ${{ secrets.AZURE_CREDENTIALS }}
36+
37+
- name: Deploy
38+
working-directory: ./update
39+
run: dotnet run azure

.gitignore

Lines changed: 15 additions & 191 deletions
Original file line numberDiff line numberDiff line change
@@ -1,196 +1,20 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
4-
# User-specific files
5-
*.suo
6-
*.user
7-
*.sln.docstates
8-
9-
# Xamarin Studio / monodevelop user-specific
10-
*.userprefs
11-
*.dll.mdb
12-
*.exe.mdb
13-
14-
# Build results
15-
16-
[Dd]ebug/
17-
[Rr]elease/
18-
x64/
19-
build/
20-
[Bb]in/
21-
[Oo]bj/
22-
23-
# MSTest test Results
24-
[Tt]est[Rr]esult*/
25-
[Bb]uild[Ll]og.*
26-
27-
*_i.c
28-
*_p.c
29-
*.ilk
30-
*.meta
31-
*.obj
32-
*.pch
33-
*.pdb
34-
*.pgc
35-
*.pgd
36-
*.rsp
37-
*.sbr
38-
*.tlb
39-
*.tli
40-
*.tlh
41-
*.tmp
42-
*.tmp_proj
43-
*.log
44-
*.vspscc
45-
*.vssscc
46-
.builds
47-
*.pidb
48-
*.log
49-
*.scc
50-
51-
# Visual C++ cache files
52-
ipch/
53-
*.aps
54-
*.ncb
55-
*.opensdf
56-
*.sdf
57-
*.cachefile
58-
59-
# Visual Studio profiler
60-
*.psess
61-
*.vsp
62-
*.vspx
63-
64-
# Other Visual Studio data
1+
.fable/
2+
*.fs.js
3+
*.fs.js.map
4+
.fake/
5+
.farmer/
6+
.idea/
7+
.ionide/
658
.vs/
66-
67-
# Guidance Automation Toolkit
68-
*.gpState
69-
70-
# ReSharper is a .NET coding add-in
71-
_ReSharper*/
72-
*.[Rr]e[Ss]harper
73-
74-
# TeamCity is a build add-in
75-
_TeamCity*
76-
77-
# DotCover is a Code Coverage Tool
78-
*.dotCover
79-
80-
# NCrunch
81-
*.ncrunch*
82-
.*crunch*.local.xml
83-
84-
# Installshield output folder
85-
[Ee]xpress/
86-
87-
# DocProject is a documentation generator add-in
88-
DocProject/buildhelp/
89-
DocProject/Help/*.HxT
90-
DocProject/Help/*.HxC
91-
DocProject/Help/*.hhc
92-
DocProject/Help/*.hhk
93-
DocProject/Help/*.hhp
94-
DocProject/Help/Html2
95-
DocProject/Help/html
96-
97-
# Click-Once directory
98-
publish/
99-
100-
# Publish Web Output
101-
*.Publish.xml
102-
103-
# Enable nuget.exe in the .nuget folder (though normally executables are not tracked)
104-
!.nuget/NuGet.exe
105-
106-
# Windows Azure Build Output
107-
csx
108-
*.build.csdef
109-
110-
# Windows Store app package directory
111-
AppPackages/
112-
113-
114-
# Vim
115-
*.swp
116-
117-
# Others
118-
sql/
119-
*.Cache
120-
ClientBin/
121-
[Ss]tyle[Cc]op.*
122-
~$*
123-
*~
124-
*.dbmdl
125-
*.[Pp]ublish.xml
126-
*.pfx
127-
*.publishsettings
128-
129-
# RIA/Silverlight projects
130-
Generated_Code/
131-
132-
# Backup & report files from converting an old project file to a newer
133-
# Visual Studio version. Backup files are not needed, because we have git ;-)
134-
_UpgradeReport_Files/
135-
Backup*/
136-
UpgradeLog*.XML
137-
UpgradeLog*.htm
138-
139-
# SQL Server files
140-
App_Data/*.mdf
141-
App_Data/*.ldf
142-
143-
144-
#LightSwitch generated files
145-
GeneratedArtifacts/
146-
_Pvt_Extensions/
147-
ModelManifest.xml
148-
149-
# =========================
150-
# Windows detritus
151-
# =========================
152-
153-
# Windows image file caches
154-
Thumbs.db
155-
ehthumbs.db
156-
157-
# Folder config file
158-
Desktop.ini
159-
160-
# Recycle Bin used on file shares
161-
$RECYCLE.BIN/
162-
163-
# Mac desktop service store files
164-
.DS_Store
165-
166-
# ===================================================
167-
# Exclude F# project specific directories and files
168-
# ===================================================
169-
170-
# NuGet Packages Directory
9+
deploy/
10+
obj/
11+
bin/
12+
output/
17113
packages/
172-
173-
# Generated documentation folder
174-
docs/output/
175-
176-
# Temp folder used for publishing docs
177-
temp/
178-
179-
# Test results produced by build
180-
TestResults.xml
181-
182-
# Nuget outputs
183-
nuget/*.nupkg
14+
paket-files/
15+
node_modules/
18416
release.cmd
18517
release.sh
186-
localpackages/
187-
paket-files
18818
*.orig
189-
docs/content/license.md
190-
docs/content/release-notes.md
191-
.fake
192-
docs/tools/FSharp.Formatting.svclog
193-
node_modules
194-
src/Client/public/
195-
deploy
196-
/.ionide
19+
*.fsproj.user
20+
*.DotSettings.user

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

0 commit comments

Comments
 (0)