File tree Expand file tree Collapse file tree 5 files changed +45
-2
lines changed Expand file tree Collapse file tree 5 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1
1
version : ' {build}'
2
2
os : Visual Studio 2017
3
+ shallow_clone : true
3
4
init :
5
+ - set PATH=C:\Ruby25\bin;%PATH%
4
6
- git config --global core.autocrlf input
5
7
- git config --global core.longpaths true
6
- shallow_clone : true
8
+ install :
9
+ - gem install sass
7
10
build_script :
8
11
build.cmd package
9
12
test : off
Original file line number Diff line number Diff line change 15
15
<TargetFramework >net452</TargetFramework >
16
16
<AssemblyName >Our.Umbraco.GraphQL</AssemblyName >
17
17
<RootNamespace >Our.Umbraco.GraphQL</RootNamespace >
18
+ <UIRoot >Web\UI\</UIRoot >
19
+ <DefaultItemExcludes >$(DefaultItemExcludes);$(UIRoot)node_modules\**;$(UIRoot).sass-cache\**</DefaultItemExcludes >
18
20
</PropertyGroup >
19
21
20
22
<ItemGroup >
23
+ <None Include =" $(FrontendRoot)**" Exclude =" $(UIRoot)node_modules\**;$(UIRoot).sass-cache\**" Pack =" false" />
24
+ </ItemGroup >
25
+
26
+ <Target Name =" RunUIBuild" BeforeTargets =" Compile" Condition =" '$(Configuration)' == 'Release' " >
27
+ <Exec WorkingDirectory =" $(UIRoot)" Command =" npm install" />
28
+ <Exec WorkingDirectory =" $(UIRoot)" Command =" npm run build" />
29
+ </Target >
30
+
31
+ <ItemGroup >
32
+ <None Include =" tools\**" Pack =" True" PackagePath =" tools\" />
33
+ <None Include =" $(UIRoot)dist\**" Pack =" True" PackagePath =" content\" />
21
34
<None Include =" content\**" Pack =" True" PackagePath =" content\" />
22
35
</ItemGroup >
23
36
Original file line number Diff line number Diff line change 21
21
"type" : " git" ,
22
22
"url" : " https://github.com/rasmusjp/umbraco-graphql"
23
23
},
24
+ "scripts" : {
25
+ "clean" : " grunt clean" ,
26
+ "build" : " npm run clean && grunt"
27
+ },
24
28
"devDependencies" : {
25
29
"grunt-msbuild" : " ^0.4.4" ,
26
30
"grunt-string-replace" : " ^1.3.1" ,
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <dashBoard >
3
+ <section alias =" GraphQLForUmbraco" >
4
+ <areas >
5
+ <area >developer</area >
6
+ </areas >
7
+ <tab caption =" GraphQL" >
8
+ <control >
9
+ /App_Plugins/GraphQLForUmbraco/views/dashboard.html
10
+ </control >
11
+ </tab >
12
+ </section >
13
+ </dashBoard >
Original file line number Diff line number Diff line change @@ -27,16 +27,25 @@ Target.create "Clean" (fun _ ->
27
27
)
28
28
29
29
Target.create " Build" ( fun _ ->
30
+ let setMSBuildParams ( defaults : MSBuild.CliArguments ) =
31
+ { defaults with
32
+ Properties =
33
+ [
34
+ " Version_Suffix" , if buildVersion.IsSome then buildVersion.Value else " "
35
+ ]
36
+ }
37
+
30
38
DotNet.build ( fun c ->
31
39
{ c with
32
40
Configuration = DotNet.BuildConfiguration.Release
33
- OutputPath = Some artifactsDir
41
+ MSBuildParams = setMSBuildParams c.MSBuildParams
34
42
}) solutionFile
35
43
)
36
44
37
45
Target.create " Package" ( fun _ ->
38
46
DotNet.pack ( fun c ->
39
47
{ c with
48
+ NoBuild = true
40
49
Configuration = DotNet.BuildConfiguration.Release
41
50
OutputPath = Some artifactsDir
42
51
VersionSuffix = buildVersion
@@ -52,6 +61,7 @@ open Fake.Core.TargetOperators
52
61
==> " Default"
53
62
54
63
" Clean"
64
+ ==> " Build"
55
65
==> " Package"
56
66
57
67
// start build
You can’t perform that action at this time.
0 commit comments