-
Notifications
You must be signed in to change notification settings - Fork 12
/
crafty-preset-postcss-gulp.js.snap
527 lines (420 loc) · 20.2 KB
/
crafty-preset-postcss-gulp.js.snap
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Compiles CSS 1`] = `
Object {
"status": 0,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/compiles/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css' ...
[__:__:__] Starting 'css_myBundle' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] Finished 'css_myBundle' after ____ ms
[__:__:__] Finished 'css' after ____ ms
[__:__:__] Starting 'css__lint' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] Finished 'css__lint' after ____ ms
[__:__:__] Finished 'default' after ____ ms
",
}
`;
exports[`Compiles CSS, configuration has overrides 1`] = `
Object {
"status": 0,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/compiles-with-overrides/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css' ...
[__:__:__] Starting 'css_myBundle' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] Finished 'css_myBundle' after ____ ms
[__:__:__] Finished 'css' after ____ ms
[__:__:__] Starting 'css__lint' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] Finished 'css__lint' after ____ ms
[__:__:__] Finished 'default' after ____ ms
",
}
`;
exports[`Doesn't compile without a task, but lints (doesn't throw in development) 1`] = `
Object {
"status": 0,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/no-bundle-dev/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css__lint' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
css/imported.scss
1:1 ✖ Types are allowed only inside a scope swissquote/no-type-outside-scope
css/style.scss
4:1 ✖ Types are allowed only inside a scope swissquote/no-type-outside-scope
6:14 ⚠ Unexpected unit length-zero-no-unit
10:1 ✖ Expected class selector \\".notAComponent\\" to match specified pattern selector-class-pattern
15:1 ✖ A state must be linked to a component swissquote/no-state-without-component
20:1 ✖ Expected \\"#no-id\\" to have no more than 0 ID selectors selector-max-id
28:13 ✖ Expected nesting depth to be no more than 2 max-nesting-depth
31:6 ⚠ Insert \\"⏎\\" prettier/prettier
[__:__:__] Finished 'css__lint' after ____ ms
[__:__:__] Finished 'default' after ____ ms
",
}
`;
exports[`Doesn't compile without a task, but lints 1`] = `
Object {
"status": 1,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/no-bundle/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css__lint' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
css/imported.scss
1:1 ✖ Types are allowed only inside a scope swissquote/no-type-outside-scope
css/style.scss
4:1 ✖ Types are allowed only inside a scope swissquote/no-type-outside-scope
6:14 ✖ Unexpected unit length-zero-no-unit
10:1 ✖ Expected class selector \\".notAComponent\\" to match specified pattern selector-class-pattern
15:1 ✖ A state must be linked to a component swissquote/no-state-without-component
20:1 ✖ Expected \\"#no-id\\" to have no more than 0 ID selectors selector-max-id
28:13 ✖ Expected nesting depth to be no more than 2 max-nesting-depth
31:6 ✖ Insert \\"⏎\\" prettier/prettier
[__:__:__] 'css__lint' errored after ____ ms
[__:__:__] Stylelint: Errors were found
[__:__:__] 'default' errored after ____ ms
",
}
`;
exports[`Experiment with all CSS 1`] = `
Object {
"status": 0,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/experiment/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css' ...
[__:__:__] Starting 'css_myBundle' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] Finished 'css_myBundle' after ____ ms
[__:__:__] Finished 'css' after ____ ms
[__:__:__] Starting 'css__lint' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
css/foo.scss
1:8 ⚠ Replace \\"·background:·#eee;·\\" with \\"⏎····background:·#eee;⏎\\" prettier/prettier
css/math.scss
6:37 ✖ Using \\"-\\" in front of \\"var()\\" doesn't work, use \\"calc(var(...) * -1)\\" swissquote/no-negative-var
css/style.scss
104:5 ⚠ Unexpected browser feature \\"css-resize\\" is not supported by IE 11, Edge 17,18, iOS Safari 14,11.0-11.2,11.3-11.4,12.0-12.1,12.2-12.4,13.0-13.1,13.2,13.3,13.4-13.7, Samsung Internet 4 plugin/no-unsupported-browser-features
274:5 ⚠ Unexpected browser feature \\"flexbox\\" is only partially supported by IE 11 plugin/no-unsupported-browser-features
295:5 ⚠ Unexpected browser feature \\"wordwrap\\" is only partially supported by IE 11, Edge 17 plugin/no-unsupported-browser-features
[__:__:__] Finished 'css__lint' after ____ ms
[__:__:__] Finished 'default' after ____ ms
",
}
`;
exports[`Experiment with all CSS 2`] = `
"/* Import CSS Files (postcss-import, postcss-url) */
.Body { background: #eee; }
.Component {
margin: 5px -var(--Component-margin);
}
@media (min-width: 25em) {
.Button {
background: url(\\"../images/buttons/background.png\\");
} }
/* Nested Styles (postcss-nesting, postcss-nested, postcss-atroot) */
.Child {
background: black;
}
.Parent {
background: white;
}
.Parent--before {
color: #333;
}
.Parent--after {
color: #eee;
}
/* Mixins (postcss-advanced-variables) */
.Search {
padding-left: 16px;
}
.Search:after {
content: \\"\\";
background: url(\\"/icons/search.png\\");
}
/* Comments (postcss-scss) */
/* single line comment*/
.Button {
color: orange;
}
/* Variables (postcss-advanced-variables, postcss-custom-properties) */
.Menu {
width: 800px;
}
.MenuLink {
color: #f00;
background: #056ef0;
width: 200px;
}
/* Property Lookup (postcss-property-lookup) */
.Heading {
margin: 20px;
padding: 20px;
}
/* Images in CSS (postcss-assets) */
.Card {
background: url(../images/background.jpg?CACHEBUST); /* use only on small files */
}
.Button {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAAAiCAYAAADmvn/1AAAKnmlDQ1BJQ0MgUHJvZmlsZQAASImVlgdUU9kWhs+96Y0AAaQTehOkCASQXkPvTVRCAiSUEAKh2ZVBBcaCiggqgkgRBUelyFixYGFQUMA+IIOCOg4WsKDyLvAI7731Zr31dtbO+dZe+/zZ9+SetX4AyF0sgSAZlgQghZ8hDPJwpkdERtFxQwACGIAHEkCKxU4XOAUE+IC/jcl+pBuJe0YzWn/f919DihOXzgYACkA4lpPOTkH4zEyyBcIMAFBcpK6ZlSGY4SKEZYTIgAgfnuGEOT4zw7FzfGO2JyTIBeEnAODJLJYwAQDSKFKnZ7ITEB0yHmETPofHR5iBsD2by+IgnI3w4pSU1BmuRlgv9l90Ev5NM1asyWIliHnuWWYD78pLFySzcv7P4/jfkZIsmv8NDSTJXKFn0MyKnFldUqq3mPmxfv7zzOPM9s8yV+QZOs/sdJeoeeawXL3nWZQU6jTPLOHCXl4GM2SehalBYv24dLdgsX4c00c8Q7KfmON57sx5zuWGhM9zJi/Mb57Tk4K9F3pcxHWhKEg8c7zQXfyMKekLs7FZCzNkcEM8F2aLEM/AiXN1E9f5oeJ+QYazWFOQHCDuj0v2ENfTM4PFezOQF2yeE1leAQs6AeLzAYHADFgAK+QTnhGXnTEzqEuqIEfIS+Bm0J2QmxJHZ/LZxovpZiamVgDM3Lu5v/XDg9n7BMnhF2qpdwGwqkegdqHGigGgDTk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AZLSaohZF45Suj+2dSMBQ2n4aAP4/MStnJvsFIHNLT4ARsiOwIIUIa9Ws0TYKKtOtQRIK/XthEJcPRSRBdLU1HMbOG3tIT5nQB2I/Vo9TAbO3eDpWOac4f5qCtZS4aqUibmNX6pg8G0XCBMEglFxTQGQkGBqXTifSFqM4+ysq5qq+kIEIFS2+ttDHFkZB1a4SdIuQJUAqQRshmLirJMfNjsP90anjkYE9C05WhqAZ/MLrU1ffiNOJiqr0n/b9iOakjriWpQFBYNpwfEe5lFU6CqjBxTM/FT9HAIgyKFo+YiWc0jRaD+8KyTp07wdV1HgGT29nB0lEU2y7YDJCPTSBEgk5EQweCG4PfTTWMLeyclVEoFJKYX6MbaRDXilQzS2ROU9Ts1E8hI7xzgMwmEyTdUooHVV1EcFEooFbKI/RwnHz7EpkaaHLWyzJMdsjdl3OzKUej7EuKPqqoPMyvrePfSq+tHpt4hnJqHtDBLsx7wTc4gnE9D5Y0UEMJv4d9cwOavC1C3PyLmC2POn0ZqcxV5VUA2FsD7P9YRp7vIanRW90kVA2sfkghSCBo9GX+ZWNm2Rz2np6f3wWDQ3tFtHkV/ZOuW7HnFLn0LH8+du1AowF6GPOfZou8ECNPVt/Bh+nqq7aiGPOX4e9U5gFiunAOIA4gFAUvXyRAHEAsClq6LfbVjX++6ndhXO/b1zsU+dF9dXXU7Hvp/OmxZhIuti2BLAS4vL7tubQjLApYZbOwMA4ZFj7Ng5vGCmX8AN5Wg6khTJSoAAAAASUVORK5CYII=');
background-size: 68px 34px;
width: 68px;
height: 34px;
}
/* Image set (postcss-image-set-polyfill) */
.BigImage {
background-image: url(img/test.png);
}
/* Help with RTL languages (postcss-logical, postcss-dir-pseudo-class) */
.Banner:dir(ltr) {
padding-left: 20px;
padding-right: 40px; }
.Banner:dir(rtl) {
padding-right: 20px;
padding-left: 40px; }
.Banner {
color: #222;
top: 0;
left: 5px;
bottom: 10px;
right: 5px;
resize: vertical;
}
[dir=\\"rtl\\"] .Banner__title {
margin-right: 10px;
}
[dir=\\"ltr\\"] .Banner__title {
margin-left: 10px;
}
/* Math in your CSS (postcss-calc) */
.Header {
font-size: 16px;
}
.Header {
font-size: 32px;
height: calc(100px - 2em);
margin-top: 24px;
}
/* Conditionals (postcss-advanced-variables) */
.Notice--clear {
background: green
}
/* Loops (postcss-advanced-variables) */
.icon-foo {
background: url(\\"icons/foo.png\\");
}
.icon-bar {
background: url(\\"icons/bar.png\\");
}
.icon-baz {
background: url(\\"icons/baz.png\\");
}
.Button--1 {
width: 1px;
}
.Button--2 {
width: 2px;
}
.Button--3 {
width: 3px;
}
/* Initial Values (postcss-initial) */
.Link {
animation: none 0s ease 0s 1 normal none running;
animation: initial;
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
background: initial;
white-space: normal;
white-space: initial;
}
/* Colors:
* postcss-color-function
* postcss-color-gray
* postcss-color-hex-alpha
* postcss-color-hsl
* postcss-color-hwb
* postcss-color-rebeccapurple
* postcss-color-rgb
* postcss-color-rgba-fallback
*/
.Quote {
/* This will create a fallback without the alpha*/
background: rgba(153, 221, 153, .8);
/* This will be transformed to rgba*/
border-color: rgba(153,221,153,0.8);
/* ... sad story, homage to Eric Meyer*/
color: #639;
}
.Quote--clear {
/* Allows to declare colors with rgb() level 4*/
background: rgb(251, 255, 255);
/* This will declare colors with hsl() level 4*/
color: hsla(180, 100%, 50%, .2);
/* This will transform colors to rgba()*/
border-color: rgba(128, 255, 0, .5);
}
/* Color manipulation */
.Link {
/* Change the opacity of red*/
color: rgba(255, 0, 0, 0.9);
}
.Link:hover {
/* Darken the color*/
color: rgb(51, 0, 0);
}
.Link {
/* This will be transformed to rgba*/
color: rgba(128, 255, 0, .6);
}
/* Levels of gray */
.Text {
/* Level of gray*/
color: rgb(212,212,212);
/* Level of gray with opacity*/
background: gray(10%, 50%);
}
/* Selectors:
* postcss-selector-matches
* postcss-selector-not
* postcss-pseudo-class-any-link
* postcss-custom-selectors
* postcss-attribute-case-insensitive
*/
button,.button {
/* styles for your buttons */
}
button:hover,button:focus,.button:hover,.button:focus {
/* hover/focus styles for your button */
}
.Text:not(:first-child):not(.Special) {
color: red;
}
.Text:first-child, .Text.Special {
color: red;
}
.Navigation :link,.Navigation :visited {
background-color: yellow;
}
.Navigation :-webkit-any-link {
background-color: yellow;
}
.Navigation :any-link {
background-color: yellow;
}
[frame=\\"hsides\\"],[frame=\\"Hsides\\"],[frame=\\"hSides\\"],[frame=\\"HSides\\"],[frame=\\"hsIdes\\"],[frame=\\"HsIdes\\"],[frame=\\"hSIdes\\"],[frame=\\"HSIdes\\"],[frame=\\"hsiDes\\"],[frame=\\"HsiDes\\"],[frame=\\"hSiDes\\"],[frame=\\"HSiDes\\"],[frame=\\"hsIDes\\"],[frame=\\"HsIDes\\"],[frame=\\"hSIDes\\"],[frame=\\"HSIDes\\"],[frame=\\"hsidEs\\"],[frame=\\"HsidEs\\"],[frame=\\"hSidEs\\"],[frame=\\"HSidEs\\"],[frame=\\"hsIdEs\\"],[frame=\\"HsIdEs\\"],[frame=\\"hSIdEs\\"],[frame=\\"HSIdEs\\"],[frame=\\"hsiDEs\\"],[frame=\\"HsiDEs\\"],[frame=\\"hSiDEs\\"],[frame=\\"HSiDEs\\"],[frame=\\"hsIDEs\\"],[frame=\\"HsIDEs\\"],[frame=\\"hSIDEs\\"],[frame=\\"HSIDEs\\"],[frame=\\"hsideS\\"],[frame=\\"HsideS\\"],[frame=\\"hSideS\\"],[frame=\\"HSideS\\"],[frame=\\"hsIdeS\\"],[frame=\\"HsIdeS\\"],[frame=\\"hSIdeS\\"],[frame=\\"HSIdeS\\"],[frame=\\"hsiDeS\\"],[frame=\\"HsiDeS\\"],[frame=\\"hSiDeS\\"],[frame=\\"HSiDeS\\"],[frame=\\"hsIDeS\\"],[frame=\\"HsIDeS\\"],[frame=\\"hSIDeS\\"],[frame=\\"HSIDeS\\"],[frame=\\"hsidES\\"],[frame=\\"HsidES\\"],[frame=\\"hSidES\\"],[frame=\\"HSidES\\"],[frame=\\"hsIdES\\"],[frame=\\"HsIdES\\"],[frame=\\"hSIdES\\"],[frame=\\"HSIdES\\"],[frame=\\"hsiDES\\"],[frame=\\"HsiDES\\"],[frame=\\"hSiDES\\"],[frame=\\"HSiDES\\"],[frame=\\"hsIDES\\"],[frame=\\"HsIDES\\"],[frame=\\"hSIDES\\"],[frame=\\"HSIDES\\"] {
border-style: solid none;
}
/* Media Queries (postcss-custom-media, postcss-media-minmax) */
@media (min-width: 500px) and (max-width: 1200px) {
/* your styles */
}
/* or coupled with custom media queries */
@media (max-width: 499px) or (min-width: 1201px) {
/* your styles */
}
/* Vendor Prefixes (autoprefixer) */
:-webkit-full-screen .Link {
display: flex;
}
:-moz-full-screen .Link {
display: flex;
}
:-ms-fullscreen .Link {
display: flex;
}
:fullscreen .Link {
display: flex;
}
/*
* Browser Support:
* postcss-font-family-system-ui
* postcss-pseudoelements
* postcss-replace-overflow-wrap
* postcss-filter-gradient
* postcss-font-variant
*/
.Body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;
}
.Button:before {
content: attr(href);
}
.Foo {
word-wrap: break-word;
}
.Buy {
background: linear-gradient(to bottom, #1e5799, #7db9e8);
}
.Heading.Heading--small {
-webkit-font-feature-settings: \\"smcp\\";
font-feature-settings: \\"smcp\\";
font-variant-caps: small-caps;
}
.Table {
-webkit-font-feature-settings: \\"lnum\\";
font-feature-settings: \\"lnum\\";
font-variant-numeric: lining-nums;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.BigImage {
background-image: url(img/test-2x.png);
} }
@media (-webkit-min-device-pixel-ratio: 6.25), (min-resolution: 600dpi) {
.BigImage {
background-image: url(my-img-print.png);
} }
/*# sourceMappingURL=myBundle.min.css.map */
"
`;
exports[`Fails gracefully on broken markup 1`] = `
Object {
"status": 1,
"stdall": "
[__:__:__] Starting Crafty __version__...
[__:__:__] Files will be stored in:
css: __PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/fails/dist/css
[__:__:__] Starting 'default' ...
[__:__:__] Starting 'css' ...
[__:__:__] Starting 'css_myBundle' ...
postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
[__:__:__] 'css_myBundle' errored after ____ ms
[__:__:__] CssSyntaxError in plugin \\"gulp-postcss\\"
Message:
__PATH__/packages/integration/fixtures/crafty-preset-postcss-gulp/fails/css/style.scss:3:5: Unknown word
1 |
2 | .BodyComponent
> 3 | margin: 0;
| ^
4 | }
5 |
[__:__:__] 'css' errored after ____ ms
[__:__:__] 'default' errored after ____ ms
",
}
`;