forked from babakhani/PersianDate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaryjane.yaml
72 lines (55 loc) · 2.07 KB
/
maryjane.yaml
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
## Author: Vahid Mardani - [email protected]
Context: !context
version: 0.1.8b
path: !import os.path
sourceDir: !template ${manifest_dir}/src
buildDir: !template ${manifest_dir}/dist
docsDir: !template ${manifest_dir}/doc
PersianDate: !watch
banner: "\nBuilding PersianDate javascripts:"
inputs:
- !template ${sourceDir}/banner.js
- !template ${sourceDir}/constants.js
- !template ${sourceDir}/helpers.js
- !template ${sourceDir}/algorithms.js
- !template ${sourceDir}/duration.js
- !template ${sourceDir}/date.js
- !template ${sourceDir}/compat.js
output: !template ${buildDir}/${version}/persian-date-${version}.js
minified_output: !template ${buildDir}/${version}/persian-date-${version}.min.js
head: '/* PersianDate - v${version} */ ( function () {\n'
tail: '\n}());'
actions:
- !banner
text: !template " * Creating output dir: ${buildDir}/${version}"
- !subprocess
arguments: !template mkdir -p ${buildDir}/${version}
shell: true
- !subprocess
arguments: !template echo "${PersianDate.head}" > ${PersianDate.output}
shell: true
- !banner
text: !template " * ${path.split(PersianDate.output)[1]}"
- !subprocess
arguments: !template cat ${' '.join(PersianDate.inputs)} >> ${PersianDate.output}
shell: true
- !subprocess
arguments: !template echo "${PersianDate.tail}" >> ${PersianDate.output}
shell: true
- !banner
text: !template " * Generating documents: ${docsDir}/${version}"
- !subprocess
arguments: !template jsdoc ${PersianDate.output} --destination ${docsDir}/${version}
shell: true
- !banner
text: !template " * ${path.split(PersianDate.output)[1]} > ${path.split(PersianDate.minified_output)[1]}"
- !subprocess
shell: true
arguments: !template yui-compressor --type js ${PersianDate.output} > ${PersianDate.minified_output}
- !banner
text: "done. \n"
watcher: !watcher
recursive: true
predicate: !eval "lambda fn: fn.endswith('.js')"
sources:
- !template ${source}