-
Notifications
You must be signed in to change notification settings - Fork 1
/
minify.targets
76 lines (64 loc) · 2.96 KB
/
minify.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/MsBuild/2003">
<UsingTask
TaskName="JavaScriptCompressorTask"
AssemblyFile="$(SolutionDir)lib\YUICompressor.NET-MsBuild-Task.2.0.Head\Yahoo.Yui.Compressor.MsBuildTask.dll" />
<PropertyGroup>
<JavaScriptOutputFile>JEFS\CustomFiles\Scripts\jefs.js</JavaScriptOutputFile>
<JavaScriptEditorOutputFile>JEFS\CustomFiles\Scripts\jefs.editor.js</JavaScriptEditorOutputFile>
<BuildDependsOn Condition="'$(ConfigurationName)' == 'Debug'">
$(BuildDependsOn);
CombineJavaScript;
</BuildDependsOn>
<BuildDependsOn Condition="'$(ConfigurationName)' == 'Release'">
$(BuildDependsOn);
MinifyJavaScript;
</BuildDependsOn>
</PropertyGroup>
<ItemGroup>
<JavaScriptFiles Include="Scripts\jefs.js" />
<JavaScriptFiles Include="Scripts\jefs.item.js" />
<JavaScriptFiles Include="Scripts\jefs.load.js" />
<JavaScriptFiles Include="Scripts\jefs.sp.runtime.js" />
</ItemGroup>
<ItemGroup>
<JavaScriptEditorFiles Include="Scripts\jefs.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.status.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.item.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.sp.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.editors.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.cpanel.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.splitter.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.em.content.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.em.webparts.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.editor.js" />
<JavaScriptEditorFiles Include="Scripts\jefs.editor.app.js" />
</ItemGroup>
<Target Name="CombineJavaScript">
<JavaScriptCompressorTask
SourceFiles="@(JavaScriptFiles)"
CompressionType="None"
ObfuscateJavaScript="false"
DisableOptimizations="true"
DeleteSourceFiles="false"
OutputFile="$(JavaScriptOutputFile)"
/>
<JavaScriptCompressorTask
SourceFiles="@(JavaScriptEditorFiles)"
CompressionType="None"
ObfuscateJavaScript="false"
DisableOptimizations="true"
DeleteSourceFiles="false"
OutputFile="$(JavaScriptEditorOutputFile)"
/>
</Target>
<Target Name="MinifyJavaScript">
<JavaScriptCompressorTask
SourceFiles="@(JavaScriptFiles)"
ObfuscateJavaScript="false"
DisableOptimizations="false"
DeleteSourceFiles="false"
OutputFile="$(JavaScriptOutputFile)"
/>
</Target>
</Project>