Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Run FSharp.Formatting on FCS only #432

Merged
merged 50 commits into from
Apr 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2a128a6
update paket, packages, and FSharp.Core
cloudRoutine Apr 1, 2017
2af8bfe
update packages
cloudRoutine Apr 2, 2017
d835950
additional token categories
cloudRoutine Apr 2, 2017
18b155c
use FCS semantic classification for tokens
cloudRoutine Apr 2, 2017
b346b4d
update packages
cloudRoutine Apr 2, 2017
d5227c3
update css and load paths
cloudRoutine Apr 2, 2017
1dfe1cb
setup editorconfig
cloudRoutine Apr 14, 2017
4ee32b2
formatting and organization
cloudRoutine Apr 14, 2017
63a52a0
update packages
cloudRoutine Apr 14, 2017
c0e9934
more formatting
cloudRoutine Apr 14, 2017
bdc4cf4
update test api usage
cloudRoutine Apr 14, 2017
fab5861
update project files
cloudRoutine Apr 14, 2017
ae51d4a
update paket and bootstrapper
cloudRoutine Apr 14, 2017
f113638
working vs and commandline build
cloudRoutine Apr 14, 2017
bff1198
update FSharp.Core in /lib/
cloudRoutine Apr 15, 2017
3a66f41
change debug version from portable to full
cloudRoutine Apr 15, 2017
fbe9294
Set NUnit to 3.6.0 for FsUnit Compatibility
cloudRoutine Apr 15, 2017
ea013da
update fsunit api calls
cloudRoutine Apr 15, 2017
28bba86
parameterize CSS class names
cloudRoutine Apr 15, 2017
f99d80d
tweak CSS classes
cloudRoutine Apr 15, 2017
2dc2dc5
update fsunit api calls and paramaterize CSS class usage
cloudRoutine Apr 15, 2017
529c4fb
formatting
cloudRoutine Apr 16, 2017
7301c45
ignore test until FCS supports escaped char colorization
cloudRoutine Apr 16, 2017
e0f0df8
remove commented code, formatting
cloudRoutine Apr 16, 2017
33d8c46
fix cli build
cloudRoutine Apr 16, 2017
dfd2e28
simplify build.fsx
cloudRoutine Apr 16, 2017
e5761c4
fix test xml doc generation
cloudRoutine Apr 16, 2017
e7ca53f
temporarily use custom script host
cloudRoutine Apr 16, 2017
53ccadc
ignore lib dir unless forcibly checked in
cloudRoutine Apr 17, 2017
a144f6d
update test project layout
cloudRoutine Apr 17, 2017
c32937a
update FsUnit api usage
cloudRoutine Apr 17, 2017
e84a823
error handling for assembly loading
cloudRoutine Apr 17, 2017
a6ed59e
unify tests output dir
cloudRoutine Apr 17, 2017
fb09ad0
report loaded assemblies on metadata test failure
cloudRoutine Apr 17, 2017
18d2f3e
update target frameworks
cloudRoutine Apr 17, 2017
4993b17
unify test output into 'tests\bin'
cloudRoutine Apr 17, 2017
f4de496
fix pathing in metadata tests
cloudRoutine Apr 17, 2017
3fe0c85
paket magic mode
cloudRoutine Apr 17, 2017
54e4663
update packages
cloudRoutine Apr 17, 2017
4c31049
update redirects, fix some references files
cloudRoutine Apr 17, 2017
89b9091
add magic mode paket.exe (bootstrapper)
cloudRoutine Apr 17, 2017
34737f4
fix build script error and add app.config to MetadataFormat.Tests
matthid Apr 17, 2017
0698e48
ensure dir
matthid Apr 17, 2017
042f949
fix pattern
matthid Apr 17, 2017
b443c8e
set newline to lf in editorconfig
cloudRoutine Apr 17, 2017
4fbf4f7
fix metadata tests
cloudRoutine Apr 17, 2017
58bb4d6
yield keyword tokens while parsing ident islands
cloudRoutine Apr 17, 2017
d4ce827
match xml doc files case insensitive
cloudRoutine Apr 17, 2017
ac6ab34
fix build
matthid Apr 23, 2017
f610e5f
trigger build
matthid Apr 23, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true

[*]
end_of_line = lf

[*.{fs,fsi,fsx}]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
.fake/
.vs/
bin/
lib/
obj/
/.paket/paket.exe
paket-files/
nuget/*.nupkg
docs/output/
Expand All @@ -27,3 +29,6 @@ release.cmd
*.synctex
*.log
*.svclog

.paket/paket.exe
fsbuild.targets
Binary file removed .paket/paket.bootstrapper.exe
Binary file not shown.
Binary file modified .paket/paket.exe
Binary file not shown.
62 changes: 43 additions & 19 deletions .paket/paket.targets
Original file line number Diff line number Diff line change
@@ -1,38 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
<!-- Download Paket.exe if it does not already exist -->
<DownloadPaket Condition=" '$(DownloadPaket)' == '' ">true</DownloadPaket>
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath>
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath>
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath>
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath>
</PropertyGroup>

<PropertyGroup>
<!-- Paket command -->
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath>
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath>
<PaketBootStrapperExePath Condition=" '$(PaketBootStrapperExePath)' == '' ">$(PaketToolsPath)paket.bootstrapper.exe</PaketBootStrapperExePath>
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(PaketExePath)</PaketCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketBootStrapperExePath)"</PaketBootStrapperCommand>
<PaketBootStrapperCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(PaketBootStrapperExePath)</PaketBootStrapperCommand>
<!-- Commands -->
<PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand>
</PropertyGroup>

<Choose> <!-- MyProject.fsproj.paket.references has the highest precedence -->
<When Condition="Exists('$(MSBuildProjectFullPath).paket.references')">
<PropertyGroup>
<PaketReferences>$(MSBuildProjectFullPath).paket.references</PaketReferences>
</PropertyGroup>
</When> <!-- MyProject.paket.references -->
<When Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references')">
<PropertyGroup>
<PaketReferences>$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketReferences>
</PropertyGroup>
</When> <!-- paket.references -->
<When Condition="Exists('$(MSBuildProjectDirectory)\paket.references')">
<PropertyGroup>
<PaketReferences>$(MSBuildProjectDirectory)\paket.references</PaketReferences>
</PropertyGroup>
</When> <!-- Set to empty if a reference file isn't found matching one of the 3 format options -->
<Otherwise>
<PropertyGroup>
<PaketReferences></PaketReferences>
</PropertyGroup>
</Otherwise>
</Choose>

<PropertyGroup>
<!-- Commands -->
<PaketReferences Condition="!Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketReferences>
<PaketReferences Condition="!Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references')">$(MSBuildProjectDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="!Exists('$(PaketReferences)')">$(MSBuildStartupDirectory)\paket.references</PaketReferences>
<PaketReferences Condition="Exists('$(MSBuildProjectFullPath).paket.references')">$(MSBuildProjectFullPath).paket.references</PaketReferences>
<RestoreCommand>$(PaketCommand) restore --references-files "$(PaketReferences)"</RestoreCommand>
<DownloadPaketCommand>$(PaketBootStrapperCommand)</DownloadPaketCommand>
<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn>
</PropertyGroup>
<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate paket.exe -->
<Error Condition="'$(DownloadPaket)' != 'true' AND !Exists('$(PaketExePath)')" Text="Unable to locate '$(PaketExePath)'" />
<MsBuild Targets="DownloadPaket" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadPaket=$(DownloadPaket)" />
</Target>
<Target Name="DownloadPaket">
<Exec Command="$(DownloadPaketCommand)" Condition=" '$(DownloadPaket)' == 'true' AND !Exists('$(PaketExePath)')" />
</Target>
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)" WorkingDirectory="$(PaketRootPath)" Condition="Exists('$(PaketReferences)')" />
<Target Name="RestorePackages">
<Exec Command="$(RestoreCommand)"
IgnoreStandardErrorWarningFormat="true"
WorkingDirectory="$(PaketRootPath)"
ContinueOnError="true"
Condition=" Exists('$(PaketReferences)') AND '$(PaketReferences)' != '' "
/>
</Target>
</Project>
10 changes: 0 additions & 10 deletions FSharp.Formatting.nunit

This file was deleted.

9 changes: 8 additions & 1 deletion FSharp.Formatting.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.9
VisualStudioVersion = 15.0.26403.3
MinimumVisualStudioVersion = 12.0.31101.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{194BD478-0DB5-44F3-A6C2-1FC75D3F3294}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.gitignore = .gitignore
.travis.yml = .travis.yml
appveyor.yml = appveyor.yml
Expand Down Expand Up @@ -117,6 +118,12 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Formatting.Common",
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Formatting.Razor", "src\FSharp.Formatting.Razor\FSharp.Formatting.Razor.fsproj", "{C6B3C274-71A8-4239-BA9A-1AF7B2F7C736}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{DE45ED41-E1BD-4028-A985-8668C209D1D7}"
ProjectSection(SolutionItems) = preProject
.paket\paket.exe.config = .paket\paket.exe.config
.paket\paket.targets = .paket\paket.targets
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build_script:
- cmd: build.cmd
test: off
version: 0.0.1.{build}

artifacts:
- path: bin
name: bin
3 changes: 1 addition & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ if errorlevel 1 (
exit /b %errorlevel%
)

packages\FAKE\tools\FAKE.exe build.fsx %*

packages\FAKE\tools\FAKE.exe build.fsx %*
Loading