forked from less/less.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
130 lines (114 loc) · 3.93 KB
/
build.yml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
###
# NOTICE:
# this file is specifically for controlling
# paths for Less.js source files, as well as
# the order in which source files are
# concatenated.
#
# Please do not add paths for anything else
# to this file. All other paths for testing,
# benchmarking and so on should be controlled
# in the Gruntfile.
###
# Less.js Lib
lib: lib/less
lib_source_map: 'lib/source-map'
# =================================
# General
# =================================
prepend:
rhino: ['build/require-rhino.js', 'build/rhino-header.js', 'build/rhino-modules.js']
append:
amd: build/amd.js
rhino: <%= build.lib %>/rhino.js
# =================================
# Core less files
# =================================
# <%= build.less.* %>
less:
parser : <%= build.lib %>/parser.js
functions : <%= build.lib %>/functions.js
colors : <%= build.lib %>/colors.js
tree : <%= build.lib %>/tree.js
treedir : <%= build.lib %>/tree/*.js # glob all files in ./lib/less/tree directory
env : <%= build.lib %>/contexts.js
visitor : <%= build.lib %>/visitor.js
import_visitor : <%= build.lib %>/import-visitor.js
join : <%= build.lib %>/join-selector-visitor.js
to_css_visitor : <%= build.lib %>/to-css-visitor.js
extend_visitor : <%= build.lib %>/extend-visitor.js
browser : <%= build.lib %>/browser.js
source_map_output: <%= build.lib %>/source-map-output.js
# =================================
# Rhino build
# =================================
# <%= build.rhino %>
rhino:
# prepend utils
- <%= build.prepend.rhino %>
# core
- <%= build.less.parser %>
- <%= build.less.functions %>
- <%= build.less.colors %>
- <%= build.less.tree %>
- <%= build.less.treedir %> # glob all files
- <%= build.less.env %>
- <%= build.less.visitor %>
- <%= build.less.import_visitor %>
- <%= build.less.join %>
- <%= build.less.to_css_visitor %>
- <%= build.less.extend_visitor %>
- <%= build.less.source_map_output %>
- <%= build.source_map %>
# <%= build.rhinolessc %>
rhinolessc:
- <%= build.append.rhino %>
# =================================
# Tree files
# =================================
# <%= build.tree %>
# Technically listing the array out this way isn't
# necessary since we can glob the files in alphabetical
# order anyway. But this gives you control over the order
# the files are used, and allows targeting of individual
# files directly in the Gruntfile. But be we can just
# remove this if files can be concatenated in any order.
tree:
- <%= build.lib %>/tree/alpha.js
- <%= build.lib %>/tree/anonymous.js
- <%= build.lib %>/tree/assignment.js
- <%= build.lib %>/tree/call.js
- <%= build.lib %>/tree/color.js
- <%= build.lib %>/tree/comment.js
- <%= build.lib %>/tree/condition.js
- <%= build.lib %>/tree/detached-ruleset.js
- <%= build.lib %>/tree/dimension.js
- <%= build.lib %>/tree/directive.js
- <%= build.lib %>/tree/element.js
- <%= build.lib %>/tree/expression.js
- <%= build.lib %>/tree/extend.js
- <%= build.lib %>/tree/import.js
- <%= build.lib %>/tree/javascript.js
- <%= build.lib %>/tree/keyword.js
- <%= build.lib %>/tree/media.js
- <%= build.lib %>/tree/mixin-call.js
- <%= build.lib %>/tree/negative.js
- <%= build.lib %>/tree/operation.js
- <%= build.lib %>/tree/paren.js
- <%= build.lib %>/tree/quoted.js
- <%= build.lib %>/tree/rule.js
- <%= build.lib %>/tree/ruleset.js
- <%= build.lib %>/tree/ruleset-call.js
- <%= build.lib %>/tree/selector.js
- <%= build.lib %>/tree/unicode-descriptor.js
- <%= build.lib %>/tree/url.js
- <%= build.lib %>/tree/value.js
- <%= build.lib %>/tree/variable.js
# =================================
# source-map build
# =================================
# <%= build.source_map %>
source_map:
- <%= build.lib_source_map %>/source-map-header.js
- <%= build.lib_source_map %>/source-map-0.1.31.js
- <%= build.lib_source_map %>/source-map-footer.js