@yr-lang/yr 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +0 -0
- package/package.json +1 -1
- package/yr.js +2 -2
- package/tests/Ciyr/A1.yr +0 -25
- package/tests/Ciyr/B1.yr +0 -11
- package/tests/Ciyr/C1.yr +0 -14
- package/tests/Yrci/A1.yr +0 -8
- package/tests/Yrci/A2.yr +0 -26
package/lib/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/yr.js
CHANGED
|
@@ -1358,7 +1358,7 @@ for (let kind in JS_KINDS) {
|
|
|
1358
1358
|
const suffix = JS_KINDS[kind].suffix;
|
|
1359
1359
|
if (section.endsWith(suffix)) {
|
|
1360
1360
|
sections[section.slice(0, -suffix.length)] +=
|
|
1361
|
-
transformJS(sections[section], kind, sections, config) + '\n';
|
|
1361
|
+
transformJS(sections[section], kind, sections, section, config) + '\n';
|
|
1362
1362
|
sections[section] = '';
|
|
1363
1363
|
if (JS_KINDS[kind].modules.includes('react')) sections.reactUsed = true;
|
|
1364
1364
|
break;
|
|
@@ -1466,7 +1466,7 @@ for (let kind in JS_KINDS) {
|
|
|
1466
1466
|
const suffix = JS_KINDS[kind].suffix;
|
|
1467
1467
|
if (section.endsWith(suffix)) {
|
|
1468
1468
|
sections[section.slice(0, -suffix.length)] +=
|
|
1469
|
-
transformJS(sections[section], kind, sections, config) + '\n';
|
|
1469
|
+
transformJS(sections[section], kind, sections, section, config) + '\n';
|
|
1470
1470
|
sections[section] = '';
|
|
1471
1471
|
if (JS_KINDS[kind].modules.includes('react')) sections.reactUsed = true;
|
|
1472
1472
|
break;
|
package/tests/Ciyr/A1.yr
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[[ attributes=["teste1", "teste2"]; setters=["ciyr:a1"]
|
|
2
|
-
!! @wrapper
|
|
3
|
-
|
|
4
|
-
++
|
|
5
|
-
|
|
6
|
-
_ .teste-a1
|
|
7
|
-
___ .teste-inner
|
|
8
|
-
_ .teste2
|
|
9
|
-
_a .teste-a href="oi"
|
|
10
|
-
_img .teste-img src="%/api/teste"
|
|
11
|
-
Teste A1
|
|
12
|
-
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
.teste-a1 {
|
|
16
|
-
min-height: 20px;
|
|
17
|
-
background: red;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@>
|
|
21
|
-
|
|
22
|
-
_@wrapper(Ciyr, A1) {
|
|
23
|
-
console.log('oiiii');
|
|
24
|
-
console.log(element._config, _config);
|
|
25
|
-
@}
|
package/tests/Ciyr/B1.yr
DELETED
package/tests/Ciyr/C1.yr
DELETED
package/tests/Yrci/A1.yr
DELETED
package/tests/Yrci/A2.yr
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
!! Yrci/j1
|
|
2
|
-
|
|
3
|
-
@@
|
|
4
|
-
|
|
5
|
-
TesteA2
|
|
6
|
-
|
|
7
|
-
++
|
|
8
|
-
|
|
9
|
-
_ .a2-first
|
|
10
|
-
_ .a2-inner
|
|
11
|
-
___ .a2-inner-inner
|
|
12
|
-
_yrci/a1 .a2-a1
|
|
13
|
-
_ .a2
|
|
14
|
-
Oi tudo bem
|
|
15
|
-
_ .a2-a2
|
|
16
|
-
_ .inner-a2
|
|
17
|
-
_ .really-long-string \\
|
|
18
|
-
#matched-by-other-really-long-string \\
|
|
19
|
-
.yet-another-really-long-string
|
|
20
|
-
_
|
|
21
|
-
Teste
|
|
22
|
-
|
|
23
|
-
><
|
|
24
|
-
|
|
25
|
-
THIS SHOULD BE ON BODY
|
|
26
|
-
TESTE QUALQUEEEEER
|