Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Enable Fast
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelMunoz committed Jun 19, 2021
1 parent c253bad commit 3cd9299
Show file tree
Hide file tree
Showing 19 changed files with 823 additions and 159 deletions.
24 changes: 19 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
Remove-Item Sutil.Shoelace -R -Force -ErrorAction Ignore;
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string]
$library = "shoelace"
)

$project = $library -eq "shoelace" ? "Sutil.Shoelace" : "Sutil.Fast"

$root = Get-Location


Remove-Item $library -R -Force -ErrorAction Ignore;
Remove-Item dist -R -Force -ErrorAction Ignore;
dotnet tool restore
dotnet run -C Release
set-location $root/src/Generator
dotnet run -C Release -- -cs $library
if ($LASTEXITCODE -gt 0) {
Exit 1
}
dotnet build src/Sutil.Shoelace/Sutil.Shoelace
dotnet build
if ($LASTEXITCODE -gt 0) {
Exit 1
}
dotnet fable --cwd src/Sutil.Shoelace/Sutil.Shoelace
Set-Location $root
dotnet fable --cwd src/$project
if ($LASTEXITCODE -gt 0) {
Exit 1
}
dotnet pack src/Sutil.Shoelace/Sutil.Shoelace -o dist
dotnet pack src/$project -o dist
13 changes: 11 additions & 2 deletions src/Generator/Fast.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
namespace Sutil.Generator.Fast


(*
DO NOT USE FANTOMAS OR ANOTHER FORMATTER
THAT CHANGES THE MULTI-LINE STRING STRUCTURE ON THIS FILE
IT WILL BREAK THE DOC COMMENTS GENERATION
*)


open System
open Sutil.Generator.Types
open System.Web
Expand Down Expand Up @@ -356,15 +364,16 @@ type Fast =
<PackageIconUrl></PackageIconUrl>
<PackageTags>fsharp;fable;svelte</PackageTags>
<Authors>Angel D. Munoz</Authors>
<Version>{version}</Version>
<PackageVersion>{version}</PackageVersion>
<Version>{version}-beta</Version>
<PackageVersion>{version}-beta</PackageVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DefineConstants>$(DefineConstants);FABLE_COMPILER;</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<NpmDependencies>
<NpmPackage Name="{package}" Version="{version}" />
<NpmPackage Name="lodash-es" Version="4.17.21" />
</NpmDependencies>
</PropertyGroup>
<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/Generator/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"private": true,
"dependencies": {
"@microsoft/fast-components": "^1.21.6",
"@shoelace-style/shoelace": "^2.0.0-beta.43"
"@microsoft/fast-components": "1.21.6",
"@shoelace-style/shoelace": "2.0.0-beta.43"
},
"peerDependencies": {
"@microsoft/fast-foundation": "1.24.6",
"lodash-es": "4.17.21"
}
}
4 changes: 2 additions & 2 deletions src/Generator/pnpm-lock.yaml

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

9 changes: 5 additions & 4 deletions src/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"snowpack": "~3.5.1"
},
"dependencies": {
"@microsoft/fast-components": "^1.21.6",
"@microsoft/fast-foundation": "1.24.6",
"@shoelace-style/shoelace": "2.0.0-beta.43",
"firacode": "^5.2.0",
"highlight.js": "~11.0.1",
"navigo": "~8.11.1",
"@microsoft/fast-components": "^1.21.6",
"@microsoft/fast-foundation": "1.24.6",
"lodash-es": "4.17.21"
"lodash-es": "4.17.21",
"navigo": "~8.11.1"
}
}
Loading

0 comments on commit 3cd9299

Please sign in to comment.