sass-embedded 1.54.6-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +42 -0
- data/ext/sass/embedded.rb +9 -0
- data/ext/sass/embedded_sass_pb.rb +349 -0
- data/ext/sass/sass_embedded/dart-sass-embedded +17 -0
- data/ext/sass/sass_embedded/src/LICENSE +1476 -0
- data/ext/sass/sass_embedded/src/dart +0 -0
- data/ext/sass/sass_embedded/src/dart-sass-embedded.snapshot +0 -0
- data/lib/sass/compile_error.rb +28 -0
- data/lib/sass/compile_result.rb +23 -0
- data/lib/sass/embedded/async.rb +65 -0
- data/lib/sass/embedded/channel.rb +61 -0
- data/lib/sass/embedded/compiler.rb +60 -0
- data/lib/sass/embedded/dispatcher.rb +90 -0
- data/lib/sass/embedded/host/function_registry.rb +90 -0
- data/lib/sass/embedded/host/importer_registry.rb +108 -0
- data/lib/sass/embedded/host/logger_registry.rb +50 -0
- data/lib/sass/embedded/host/value_protofier.rb +241 -0
- data/lib/sass/embedded/host.rb +141 -0
- data/lib/sass/embedded/protofier.rb +78 -0
- data/lib/sass/embedded/structifier.rb +36 -0
- data/lib/sass/embedded/varint.rb +35 -0
- data/lib/sass/embedded/version.rb +7 -0
- data/lib/sass/embedded.rb +245 -0
- data/lib/sass/logger/silent.rb +26 -0
- data/lib/sass/logger/source_location.rb +21 -0
- data/lib/sass/logger/source_span.rb +27 -0
- data/lib/sass/script_error.rb +6 -0
- data/lib/sass/value/argument_list.rb +30 -0
- data/lib/sass/value/boolean.rb +52 -0
- data/lib/sass/value/color.rb +253 -0
- data/lib/sass/value/function.rb +54 -0
- data/lib/sass/value/fuzzy_math.rb +81 -0
- data/lib/sass/value/list.rb +79 -0
- data/lib/sass/value/map.rb +71 -0
- data/lib/sass/value/null.rb +48 -0
- data/lib/sass/value/number/unit.rb +186 -0
- data/lib/sass/value/number.rb +358 -0
- data/lib/sass/value/string.rb +55 -0
- data/lib/sass/value.rb +132 -0
- data/lib/sass-embedded.rb +4 -0
- metadata +186 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25c1e2038bf887611d602087b6b6f940a7d12a68f4453f00baab95245854fbe7
|
4
|
+
data.tar.gz: d5584ed803be5cf98f9ed9e0ed71d82e91d3585c39aeee1e7a84ab277e1fd61e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 203197989f015f5e783932e6abdcdb4c4f5cda5d3fa8f3a1e16eeba331944c9f72ea12793d9be192f0b41f193418934bb9fab68300435f847062bf5ceda8be15
|
7
|
+
data.tar.gz: 8f0d039fc51fd6f9ec8bd38ca758778a24a6bbf3953fdc749d34c8f44d2e1c0733c3859f4f83d7ba27e7f4058f44e4ac167dd8a64bf518657c404cf9ee76e534
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2022, なつき
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# Embedded Sass Host for Ruby
|
2
|
+
|
3
|
+
[![build](https://github.com/ntkme/sass-embedded-host-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/sass-embedded-host-ruby/actions/workflows/build.yml)
|
4
|
+
[![gem](https://badge.fury.io/rb/sass-embedded.svg)](https://rubygems.org/gems/sass-embedded)
|
5
|
+
|
6
|
+
This is a Ruby library that implements the host side of the [Embedded Sass protocol](https://github.com/sass/sass-embedded-protocol).
|
7
|
+
|
8
|
+
It exposes a Ruby API for Sass that's backed by a native [Dart Sass](https://sass-lang.com/dart-sass) executable.
|
9
|
+
|
10
|
+
## Install
|
11
|
+
|
12
|
+
``` sh
|
13
|
+
gem install sass-embedded
|
14
|
+
```
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
The Ruby API provides two entrypoints for compiling Sass to CSS.
|
19
|
+
|
20
|
+
- `Sass.compile` takes a path to a Sass file and return the result of compiling that file to CSS.
|
21
|
+
|
22
|
+
``` ruby
|
23
|
+
require 'sass-embedded'
|
24
|
+
|
25
|
+
result = Sass.compile('style.scss')
|
26
|
+
puts result.css
|
27
|
+
```
|
28
|
+
|
29
|
+
- `Sass.compile_string` takes a string that represents the contents of a Sass file and return the result of compiling that file to CSS.
|
30
|
+
|
31
|
+
``` ruby
|
32
|
+
require 'sass-embedded'
|
33
|
+
|
34
|
+
result = Sass.compile_string('h1 { font-size: 40px; }')
|
35
|
+
puts result.css
|
36
|
+
```
|
37
|
+
|
38
|
+
See [rubydoc.info/gems/sass-embedded](https://rubydoc.info/gems/sass-embedded) for full API documentation.
|
39
|
+
|
40
|
+
---
|
41
|
+
|
42
|
+
Disclaimer: this is not an official Google product.
|
@@ -0,0 +1,349 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: embedded_sass.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("embedded_sass.proto", :syntax => :proto3) do
|
8
|
+
add_message "sass.embedded_protocol.InboundMessage" do
|
9
|
+
oneof :message do
|
10
|
+
optional :compile_request, :message, 2, "sass.embedded_protocol.InboundMessage.CompileRequest"
|
11
|
+
optional :canonicalize_response, :message, 3, "sass.embedded_protocol.InboundMessage.CanonicalizeResponse"
|
12
|
+
optional :import_response, :message, 4, "sass.embedded_protocol.InboundMessage.ImportResponse"
|
13
|
+
optional :file_import_response, :message, 5, "sass.embedded_protocol.InboundMessage.FileImportResponse"
|
14
|
+
optional :function_call_response, :message, 6, "sass.embedded_protocol.InboundMessage.FunctionCallResponse"
|
15
|
+
optional :version_request, :message, 7, "sass.embedded_protocol.InboundMessage.VersionRequest"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
add_message "sass.embedded_protocol.InboundMessage.VersionRequest" do
|
19
|
+
optional :id, :uint32, 1
|
20
|
+
end
|
21
|
+
add_message "sass.embedded_protocol.InboundMessage.CompileRequest" do
|
22
|
+
optional :id, :uint32, 1
|
23
|
+
optional :style, :enum, 4, "sass.embedded_protocol.OutputStyle"
|
24
|
+
optional :source_map, :bool, 5
|
25
|
+
repeated :importers, :message, 6, "sass.embedded_protocol.InboundMessage.CompileRequest.Importer"
|
26
|
+
repeated :global_functions, :string, 7
|
27
|
+
optional :alert_color, :bool, 8
|
28
|
+
optional :alert_ascii, :bool, 9
|
29
|
+
optional :verbose, :bool, 10
|
30
|
+
optional :quiet_deps, :bool, 11
|
31
|
+
optional :source_map_include_sources, :bool, 12
|
32
|
+
optional :charset, :bool, 13
|
33
|
+
oneof :input do
|
34
|
+
optional :string, :message, 2, "sass.embedded_protocol.InboundMessage.CompileRequest.StringInput"
|
35
|
+
optional :path, :string, 3
|
36
|
+
end
|
37
|
+
end
|
38
|
+
add_message "sass.embedded_protocol.InboundMessage.CompileRequest.StringInput" do
|
39
|
+
optional :source, :string, 1
|
40
|
+
optional :url, :string, 2
|
41
|
+
optional :syntax, :enum, 3, "sass.embedded_protocol.Syntax"
|
42
|
+
optional :importer, :message, 4, "sass.embedded_protocol.InboundMessage.CompileRequest.Importer"
|
43
|
+
end
|
44
|
+
add_message "sass.embedded_protocol.InboundMessage.CompileRequest.Importer" do
|
45
|
+
oneof :importer do
|
46
|
+
optional :path, :string, 1
|
47
|
+
optional :importer_id, :uint32, 2
|
48
|
+
optional :file_importer_id, :uint32, 3
|
49
|
+
end
|
50
|
+
end
|
51
|
+
add_message "sass.embedded_protocol.InboundMessage.CanonicalizeResponse" do
|
52
|
+
optional :id, :uint32, 1
|
53
|
+
oneof :result do
|
54
|
+
optional :url, :string, 2
|
55
|
+
optional :error, :string, 3
|
56
|
+
end
|
57
|
+
end
|
58
|
+
add_message "sass.embedded_protocol.InboundMessage.ImportResponse" do
|
59
|
+
optional :id, :uint32, 1
|
60
|
+
oneof :result do
|
61
|
+
optional :success, :message, 2, "sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess"
|
62
|
+
optional :error, :string, 3
|
63
|
+
end
|
64
|
+
end
|
65
|
+
add_message "sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess" do
|
66
|
+
optional :contents, :string, 1
|
67
|
+
optional :syntax, :enum, 2, "sass.embedded_protocol.Syntax"
|
68
|
+
optional :source_map_url, :string, 3
|
69
|
+
end
|
70
|
+
add_message "sass.embedded_protocol.InboundMessage.FileImportResponse" do
|
71
|
+
optional :id, :uint32, 1
|
72
|
+
oneof :result do
|
73
|
+
optional :file_url, :string, 2
|
74
|
+
optional :error, :string, 3
|
75
|
+
end
|
76
|
+
end
|
77
|
+
add_message "sass.embedded_protocol.InboundMessage.FunctionCallResponse" do
|
78
|
+
optional :id, :uint32, 1
|
79
|
+
repeated :accessed_argument_lists, :uint32, 4
|
80
|
+
oneof :result do
|
81
|
+
optional :success, :message, 2, "sass.embedded_protocol.Value"
|
82
|
+
optional :error, :string, 3
|
83
|
+
end
|
84
|
+
end
|
85
|
+
add_message "sass.embedded_protocol.OutboundMessage" do
|
86
|
+
oneof :message do
|
87
|
+
optional :error, :message, 1, "sass.embedded_protocol.ProtocolError"
|
88
|
+
optional :compile_response, :message, 2, "sass.embedded_protocol.OutboundMessage.CompileResponse"
|
89
|
+
optional :log_event, :message, 3, "sass.embedded_protocol.OutboundMessage.LogEvent"
|
90
|
+
optional :canonicalize_request, :message, 4, "sass.embedded_protocol.OutboundMessage.CanonicalizeRequest"
|
91
|
+
optional :import_request, :message, 5, "sass.embedded_protocol.OutboundMessage.ImportRequest"
|
92
|
+
optional :file_import_request, :message, 6, "sass.embedded_protocol.OutboundMessage.FileImportRequest"
|
93
|
+
optional :function_call_request, :message, 7, "sass.embedded_protocol.OutboundMessage.FunctionCallRequest"
|
94
|
+
optional :version_response, :message, 8, "sass.embedded_protocol.OutboundMessage.VersionResponse"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
add_message "sass.embedded_protocol.OutboundMessage.VersionResponse" do
|
98
|
+
optional :id, :uint32, 5
|
99
|
+
optional :protocol_version, :string, 1
|
100
|
+
optional :compiler_version, :string, 2
|
101
|
+
optional :implementation_version, :string, 3
|
102
|
+
optional :implementation_name, :string, 4
|
103
|
+
end
|
104
|
+
add_message "sass.embedded_protocol.OutboundMessage.CompileResponse" do
|
105
|
+
optional :id, :uint32, 1
|
106
|
+
oneof :result do
|
107
|
+
optional :success, :message, 2, "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess"
|
108
|
+
optional :failure, :message, 3, "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
add_message "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess" do
|
112
|
+
optional :css, :string, 1
|
113
|
+
optional :source_map, :string, 2
|
114
|
+
repeated :loaded_urls, :string, 3
|
115
|
+
end
|
116
|
+
add_message "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure" do
|
117
|
+
optional :message, :string, 1
|
118
|
+
optional :span, :message, 2, "sass.embedded_protocol.SourceSpan"
|
119
|
+
optional :stack_trace, :string, 3
|
120
|
+
optional :formatted, :string, 4
|
121
|
+
end
|
122
|
+
add_message "sass.embedded_protocol.OutboundMessage.LogEvent" do
|
123
|
+
optional :compilation_id, :uint32, 1
|
124
|
+
optional :type, :enum, 2, "sass.embedded_protocol.LogEventType"
|
125
|
+
optional :message, :string, 3
|
126
|
+
optional :span, :message, 4, "sass.embedded_protocol.SourceSpan"
|
127
|
+
optional :stack_trace, :string, 5
|
128
|
+
optional :formatted, :string, 6
|
129
|
+
end
|
130
|
+
add_message "sass.embedded_protocol.OutboundMessage.CanonicalizeRequest" do
|
131
|
+
optional :id, :uint32, 1
|
132
|
+
optional :compilation_id, :uint32, 2
|
133
|
+
optional :importer_id, :uint32, 3
|
134
|
+
optional :url, :string, 4
|
135
|
+
optional :from_import, :bool, 5
|
136
|
+
end
|
137
|
+
add_message "sass.embedded_protocol.OutboundMessage.ImportRequest" do
|
138
|
+
optional :id, :uint32, 1
|
139
|
+
optional :compilation_id, :uint32, 2
|
140
|
+
optional :importer_id, :uint32, 3
|
141
|
+
optional :url, :string, 4
|
142
|
+
end
|
143
|
+
add_message "sass.embedded_protocol.OutboundMessage.FileImportRequest" do
|
144
|
+
optional :id, :uint32, 1
|
145
|
+
optional :compilation_id, :uint32, 2
|
146
|
+
optional :importer_id, :uint32, 3
|
147
|
+
optional :url, :string, 4
|
148
|
+
optional :from_import, :bool, 5
|
149
|
+
end
|
150
|
+
add_message "sass.embedded_protocol.OutboundMessage.FunctionCallRequest" do
|
151
|
+
optional :id, :uint32, 1
|
152
|
+
optional :compilation_id, :uint32, 2
|
153
|
+
repeated :arguments, :message, 5, "sass.embedded_protocol.Value"
|
154
|
+
oneof :identifier do
|
155
|
+
optional :name, :string, 3
|
156
|
+
optional :function_id, :uint32, 4
|
157
|
+
end
|
158
|
+
end
|
159
|
+
add_message "sass.embedded_protocol.ProtocolError" do
|
160
|
+
optional :type, :enum, 1, "sass.embedded_protocol.ProtocolErrorType"
|
161
|
+
optional :id, :uint32, 2
|
162
|
+
optional :message, :string, 3
|
163
|
+
end
|
164
|
+
add_message "sass.embedded_protocol.SourceSpan" do
|
165
|
+
optional :text, :string, 1
|
166
|
+
optional :start, :message, 2, "sass.embedded_protocol.SourceSpan.SourceLocation"
|
167
|
+
optional :end, :message, 3, "sass.embedded_protocol.SourceSpan.SourceLocation"
|
168
|
+
optional :url, :string, 4
|
169
|
+
optional :context, :string, 5
|
170
|
+
end
|
171
|
+
add_message "sass.embedded_protocol.SourceSpan.SourceLocation" do
|
172
|
+
optional :offset, :uint32, 1
|
173
|
+
optional :line, :uint32, 2
|
174
|
+
optional :column, :uint32, 3
|
175
|
+
end
|
176
|
+
add_message "sass.embedded_protocol.Value" do
|
177
|
+
oneof :value do
|
178
|
+
optional :string, :message, 1, "sass.embedded_protocol.Value.String"
|
179
|
+
optional :number, :message, 2, "sass.embedded_protocol.Value.Number"
|
180
|
+
optional :rgb_color, :message, 3, "sass.embedded_protocol.Value.RgbColor"
|
181
|
+
optional :hsl_color, :message, 4, "sass.embedded_protocol.Value.HslColor"
|
182
|
+
optional :list, :message, 5, "sass.embedded_protocol.Value.List"
|
183
|
+
optional :map, :message, 6, "sass.embedded_protocol.Value.Map"
|
184
|
+
optional :singleton, :enum, 7, "sass.embedded_protocol.SingletonValue"
|
185
|
+
optional :compiler_function, :message, 8, "sass.embedded_protocol.Value.CompilerFunction"
|
186
|
+
optional :host_function, :message, 9, "sass.embedded_protocol.Value.HostFunction"
|
187
|
+
optional :argument_list, :message, 10, "sass.embedded_protocol.Value.ArgumentList"
|
188
|
+
optional :hwb_color, :message, 11, "sass.embedded_protocol.Value.HwbColor"
|
189
|
+
optional :calculation, :message, 12, "sass.embedded_protocol.Value.Calculation"
|
190
|
+
end
|
191
|
+
end
|
192
|
+
add_message "sass.embedded_protocol.Value.String" do
|
193
|
+
optional :text, :string, 1
|
194
|
+
optional :quoted, :bool, 2
|
195
|
+
end
|
196
|
+
add_message "sass.embedded_protocol.Value.Number" do
|
197
|
+
optional :value, :double, 1
|
198
|
+
repeated :numerators, :string, 2
|
199
|
+
repeated :denominators, :string, 3
|
200
|
+
end
|
201
|
+
add_message "sass.embedded_protocol.Value.RgbColor" do
|
202
|
+
optional :red, :uint32, 1
|
203
|
+
optional :green, :uint32, 2
|
204
|
+
optional :blue, :uint32, 3
|
205
|
+
optional :alpha, :double, 4
|
206
|
+
end
|
207
|
+
add_message "sass.embedded_protocol.Value.HslColor" do
|
208
|
+
optional :hue, :double, 1
|
209
|
+
optional :saturation, :double, 2
|
210
|
+
optional :lightness, :double, 3
|
211
|
+
optional :alpha, :double, 4
|
212
|
+
end
|
213
|
+
add_message "sass.embedded_protocol.Value.HwbColor" do
|
214
|
+
optional :hue, :double, 1
|
215
|
+
optional :whiteness, :double, 2
|
216
|
+
optional :blackness, :double, 3
|
217
|
+
optional :alpha, :double, 4
|
218
|
+
end
|
219
|
+
add_message "sass.embedded_protocol.Value.List" do
|
220
|
+
optional :separator, :enum, 1, "sass.embedded_protocol.ListSeparator"
|
221
|
+
optional :has_brackets, :bool, 2
|
222
|
+
repeated :contents, :message, 3, "sass.embedded_protocol.Value"
|
223
|
+
end
|
224
|
+
add_message "sass.embedded_protocol.Value.Map" do
|
225
|
+
repeated :entries, :message, 1, "sass.embedded_protocol.Value.Map.Entry"
|
226
|
+
end
|
227
|
+
add_message "sass.embedded_protocol.Value.Map.Entry" do
|
228
|
+
optional :key, :message, 1, "sass.embedded_protocol.Value"
|
229
|
+
optional :value, :message, 2, "sass.embedded_protocol.Value"
|
230
|
+
end
|
231
|
+
add_message "sass.embedded_protocol.Value.CompilerFunction" do
|
232
|
+
optional :id, :uint32, 1
|
233
|
+
end
|
234
|
+
add_message "sass.embedded_protocol.Value.HostFunction" do
|
235
|
+
optional :id, :uint32, 1
|
236
|
+
optional :signature, :string, 2
|
237
|
+
end
|
238
|
+
add_message "sass.embedded_protocol.Value.ArgumentList" do
|
239
|
+
optional :id, :uint32, 1
|
240
|
+
optional :separator, :enum, 2, "sass.embedded_protocol.ListSeparator"
|
241
|
+
repeated :contents, :message, 3, "sass.embedded_protocol.Value"
|
242
|
+
map :keywords, :string, :message, 4, "sass.embedded_protocol.Value"
|
243
|
+
end
|
244
|
+
add_message "sass.embedded_protocol.Value.Calculation" do
|
245
|
+
optional :name, :string, 1
|
246
|
+
repeated :arguments, :message, 2, "sass.embedded_protocol.Value.Calculation.CalculationValue"
|
247
|
+
end
|
248
|
+
add_message "sass.embedded_protocol.Value.Calculation.CalculationValue" do
|
249
|
+
oneof :value do
|
250
|
+
optional :number, :message, 1, "sass.embedded_protocol.Value.Number"
|
251
|
+
optional :string, :string, 2
|
252
|
+
optional :interpolation, :string, 3
|
253
|
+
optional :operation, :message, 4, "sass.embedded_protocol.Value.Calculation.CalculationOperation"
|
254
|
+
optional :calculation, :message, 5, "sass.embedded_protocol.Value.Calculation"
|
255
|
+
end
|
256
|
+
end
|
257
|
+
add_message "sass.embedded_protocol.Value.Calculation.CalculationOperation" do
|
258
|
+
optional :operator, :enum, 1, "sass.embedded_protocol.CalculationOperator"
|
259
|
+
optional :left, :message, 2, "sass.embedded_protocol.Value.Calculation.CalculationValue"
|
260
|
+
optional :right, :message, 3, "sass.embedded_protocol.Value.Calculation.CalculationValue"
|
261
|
+
end
|
262
|
+
add_enum "sass.embedded_protocol.OutputStyle" do
|
263
|
+
value :EXPANDED, 0
|
264
|
+
value :COMPRESSED, 1
|
265
|
+
end
|
266
|
+
add_enum "sass.embedded_protocol.Syntax" do
|
267
|
+
value :SCSS, 0
|
268
|
+
value :INDENTED, 1
|
269
|
+
value :CSS, 2
|
270
|
+
end
|
271
|
+
add_enum "sass.embedded_protocol.LogEventType" do
|
272
|
+
value :WARNING, 0
|
273
|
+
value :DEPRECATION_WARNING, 1
|
274
|
+
value :DEBUG, 2
|
275
|
+
end
|
276
|
+
add_enum "sass.embedded_protocol.ProtocolErrorType" do
|
277
|
+
value :PARSE, 0
|
278
|
+
value :PARAMS, 1
|
279
|
+
value :INTERNAL, 2
|
280
|
+
end
|
281
|
+
add_enum "sass.embedded_protocol.ListSeparator" do
|
282
|
+
value :COMMA, 0
|
283
|
+
value :SPACE, 1
|
284
|
+
value :SLASH, 2
|
285
|
+
value :UNDECIDED, 3
|
286
|
+
end
|
287
|
+
add_enum "sass.embedded_protocol.SingletonValue" do
|
288
|
+
value :TRUE, 0
|
289
|
+
value :FALSE, 1
|
290
|
+
value :NULL, 2
|
291
|
+
end
|
292
|
+
add_enum "sass.embedded_protocol.CalculationOperator" do
|
293
|
+
value :PLUS, 0
|
294
|
+
value :MINUS, 1
|
295
|
+
value :TIMES, 2
|
296
|
+
value :DIVIDE, 3
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
module Sass
|
302
|
+
module EmbeddedProtocol
|
303
|
+
InboundMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage").msgclass
|
304
|
+
InboundMessage::VersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.VersionRequest").msgclass
|
305
|
+
InboundMessage::CompileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.CompileRequest").msgclass
|
306
|
+
InboundMessage::CompileRequest::StringInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.CompileRequest.StringInput").msgclass
|
307
|
+
InboundMessage::CompileRequest::Importer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.CompileRequest.Importer").msgclass
|
308
|
+
InboundMessage::CanonicalizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.CanonicalizeResponse").msgclass
|
309
|
+
InboundMessage::ImportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.ImportResponse").msgclass
|
310
|
+
InboundMessage::ImportResponse::ImportSuccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess").msgclass
|
311
|
+
InboundMessage::FileImportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.FileImportResponse").msgclass
|
312
|
+
InboundMessage::FunctionCallResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.InboundMessage.FunctionCallResponse").msgclass
|
313
|
+
OutboundMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage").msgclass
|
314
|
+
OutboundMessage::VersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.VersionResponse").msgclass
|
315
|
+
OutboundMessage::CompileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.CompileResponse").msgclass
|
316
|
+
OutboundMessage::CompileResponse::CompileSuccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess").msgclass
|
317
|
+
OutboundMessage::CompileResponse::CompileFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure").msgclass
|
318
|
+
OutboundMessage::LogEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.LogEvent").msgclass
|
319
|
+
OutboundMessage::CanonicalizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.CanonicalizeRequest").msgclass
|
320
|
+
OutboundMessage::ImportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.ImportRequest").msgclass
|
321
|
+
OutboundMessage::FileImportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.FileImportRequest").msgclass
|
322
|
+
OutboundMessage::FunctionCallRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutboundMessage.FunctionCallRequest").msgclass
|
323
|
+
ProtocolError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.ProtocolError").msgclass
|
324
|
+
SourceSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.SourceSpan").msgclass
|
325
|
+
SourceSpan::SourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.SourceSpan.SourceLocation").msgclass
|
326
|
+
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value").msgclass
|
327
|
+
Value::String = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.String").msgclass
|
328
|
+
Value::Number = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Number").msgclass
|
329
|
+
Value::RgbColor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.RgbColor").msgclass
|
330
|
+
Value::HslColor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.HslColor").msgclass
|
331
|
+
Value::HwbColor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.HwbColor").msgclass
|
332
|
+
Value::List = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.List").msgclass
|
333
|
+
Value::Map = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Map").msgclass
|
334
|
+
Value::Map::Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Map.Entry").msgclass
|
335
|
+
Value::CompilerFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.CompilerFunction").msgclass
|
336
|
+
Value::HostFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.HostFunction").msgclass
|
337
|
+
Value::ArgumentList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.ArgumentList").msgclass
|
338
|
+
Value::Calculation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Calculation").msgclass
|
339
|
+
Value::Calculation::CalculationValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Calculation.CalculationValue").msgclass
|
340
|
+
Value::Calculation::CalculationOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Value.Calculation.CalculationOperation").msgclass
|
341
|
+
OutputStyle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.OutputStyle").enummodule
|
342
|
+
Syntax = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.Syntax").enummodule
|
343
|
+
LogEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.LogEventType").enummodule
|
344
|
+
ProtocolErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.ProtocolErrorType").enummodule
|
345
|
+
ListSeparator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.ListSeparator").enummodule
|
346
|
+
SingletonValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.SingletonValue").enummodule
|
347
|
+
CalculationOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("sass.embedded_protocol.CalculationOperator").enummodule
|
348
|
+
end
|
349
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
# This script drives the standalone sass_embedded package, which bundles together a
|
4
|
+
# Dart executable and a snapshot of sass_embedded.
|
5
|
+
|
6
|
+
follow_links() {
|
7
|
+
file="$1"
|
8
|
+
while [ -h "$file" ]; do
|
9
|
+
# On Mac OS, readlink -f doesn't work.
|
10
|
+
file="$(readlink "$file")"
|
11
|
+
done
|
12
|
+
echo "$file"
|
13
|
+
}
|
14
|
+
|
15
|
+
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
|
16
|
+
path=`dirname "$(follow_links "$0")"`
|
17
|
+
exec "$path/src/dart" "$path/src/dart-sass-embedded.snapshot" "$@"
|