-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
32 lines (28 loc) · 1.12 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Mammoth Debug" default="build">
<target name="build" description="Combines and compresses all CSS and JS files.">
<phingcall target="css" />
<phingcall target="js" />
</target>
<adhoc-task name="scss">
if (is_file('vendor/pan/theme/classes/ScssTask.php')) {
require_once 'vendor/pan/theme/classes/ScssTask.php';
} elseif (is_file('../../pan/theme/classes/ScssTask.php')) {
require_once '../../pan/theme/classes/ScssTask.php';
}
</adhoc-task>
<target name="css" description="Compile all CSS files.">
<scss
scssFile="debug.scss"
cssFile="${phing.dir.mammoth_debug}/public/css/debug.css"
dir="${phing.dir.mammoth_debug}/private/scss"
/>
</target>
<target name="js" description="Compile all JS files.">
<exec dir="${phing.dir.mammoth_debug}" level="info" logoutput="true" command="
closure
--js private/js/debug.js
--js_output_file public/js/debug.min.js
" />
</target>
</project>