Skip to content

Commit

Permalink
Convert repo to use Paket for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rneatherway committed May 17, 2015
1 parent 8b20704 commit 7726ed4
Show file tree
Hide file tree
Showing 22 changed files with 158 additions and 309 deletions.
17 changes: 2 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,8 @@ lib/NUnit*
lib/FsUnit

FSharp.AutoComplete/test/unit/build
FSharp.AutoComplete/packages
packages
.paket/paket.exe

# Vim

vim/packages

# Emacs
*.elc
emacs/deps
emacs/tmp

# Sublime Text
*.sublime-workspace

sublimetext/FSharp/fsac/fsac/*.*
sublimetext/plugin_dev.json

.DS_Store
Binary file added .paket/paket.bootstrapper.exe
Binary file not shown.
38 changes: 38 additions & 0 deletions .paket/paket.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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>
</PropertyGroup>
<PropertyGroup>
<!-- Paket command -->
<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>
<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>
</Project>
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ before_install:
- sudo apt-get update -qq

install:
- sudo apt-get install -yq emacs24 emacs24-el emacs24-common-non-dfsg
- sudo apt-get install -yq mono-complete nuget
- sudo apt-get install -yq fsharp

script:
- FSharp.AutoComplete/fake Test
- ./build.sh Test

Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.CompilerBinding", "..\FSharp.CompilerBinding\FSharp.CompilerBinding.fsproj", "{88F6940F-D300-474C-B2A7-E2ECD5B04B57}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{1BE8AF57-B314-4C92-82A9-64CD9B7A4990}"
ProjectSection(SolutionItems) = preProject
paket.dependencies = paket.dependencies
EndProjectSection
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.AutoComplete", "FSharp.AutoComplete.fsproj", "{B6AB4EF3-8F60-41A1-AB0C-851A6DEB169E}"
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.CompilerBinding", "FSharp.CompilerBinding\FSharp.CompilerBinding.fsproj", "{88F6940F-D300-474C-B2A7-E2ECD5B04B57}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.AutoComplete", "FSharp.AutoComplete\FSharp.AutoComplete.fsproj", "{B6AB4EF3-8F60-41A1-AB0C-851A6DEB169E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
136 changes: 0 additions & 136 deletions FSharp.AutoComplete/.nuget/NuGet.targets

This file was deleted.

31 changes: 21 additions & 10 deletions FSharp.AutoComplete/FSharp.AutoComplete.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
<RootNamespace>FSharp.AutoComplete</RootNamespace>
<AssemblyName>fsautocomplete</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.\</SolutionDir>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<Name>FSharp.InteractiveAutocomplete</Name>
<UsePartialTypes>False</UsePartialTypes>
<RestorePackages>true</RestorePackages>
<TargetFSharpCoreVersion>4.3.0.0</TargetFSharpCoreVersion>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
<TargetFrameworkProfile />
Expand Down Expand Up @@ -57,13 +56,12 @@
</PropertyGroup>
<Import Project="$(FSharpTargetsPath)" Condition="Exists('$(FSharpTargetsPath)')" />
-->
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<ItemGroup>
<Compile Include="Debug.fs" />
<Compile Include="Options.fs" />
<Compile Include="TipFormatter.fs" />
<Compile Include="Program.fs" />
<None Include="packages.config" />
<None Include="paket.references" />
<None Include="build.fsx" />
</ItemGroup>
<ItemGroup>
Expand All @@ -72,26 +70,39 @@
<Reference Include="System.Xml" />
<Reference Include="System.Numerics" />
<Reference Include="NDesk.Options">
<HintPath>..\lib\ndesk-options\NDesk.Options.dll</HintPath>
<HintPath>..\packages\NDesk.Options\lib\NDesk.Options.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\lib\newtonsoft.json\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<HintPath>..\packages\FSharp.Core\lib\net40\FSharp.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FsUnit.NUnit">
<HintPath>..\packages\FsUnit\Lib\Net40\FsUnit.NUnit.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharp.Compiler.Service">
<HintPath>..\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<ProjectReference Include="..\FSharp.CompilerBinding\FSharp.CompilerBinding.fsproj">
<Project>{88F6940F-D300-474C-B2A7-E2ECD5B04B57}</Project>
<Name>FSharp.CompilerBinding</Name>
</ProjectReference>
<Reference Include="FSharp.Compiler.Service">
<HintPath>$(SolutionDir)\packages\FSharp.Compiler.Service.0.0.85\lib\net45\FSharp.Compiler.Service.dll</HintPath>
</Reference>
</ItemGroup>
<!-- To modify your build process, add your task inside one of the
targets below and uncomment it. Other similar extension points
exist, see Microsoft.Common.targets. <Target
Name="BeforeBuild"> </Target> <Target Name="AfterBuild">
</Target>
-->
</Project>
<Import Project="..\.paket\paket.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FSharp.Compiler.Service
FSUnit
NUnit
NUnit.Runners
NDesk.Options
Newtonsoft.Json
2 changes: 1 addition & 1 deletion FSharp.AutoComplete/Options.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace FSharp.InteractiveAutocomplete
open System

module Version =
let string = "FSharp.AutoComplete 0.13.3"
let string = "FSharp.AutoComplete 0.14.0"

module Options =

Expand Down
4 changes: 0 additions & 4 deletions FSharp.AutoComplete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ The structured data returned is able to be richer. Note for example that the out

For further insight into the communication protocol, have a look over the integration tests, which have examples of all the features. Each folder contains one or more `*Runner.fsx` files which specify a sequence of commands to send, and `*.txt` or `*.json` files, which contain the output.

### Scripts and projects

Currently, intellisense can be offered for any number of scripts and one project at any one time. Intellisense requests are honoured for any script (`.fsx`) file and any `.fs` file for which a project containing it has most recently been loaded using the `project` command. It is an aim to lift this limitation.

18 changes: 0 additions & 18 deletions FSharp.AutoComplete/fake

This file was deleted.

18 changes: 0 additions & 18 deletions FSharp.AutoComplete/fake.cmd

This file was deleted.

7 changes: 0 additions & 7 deletions FSharp.AutoComplete/packages.config

This file was deleted.

Loading

0 comments on commit 7726ed4

Please sign in to comment.