File tree 18 files changed +65
-178
lines changed
18 files changed +65
-178
lines changed Original file line number Diff line number Diff line change @@ -868,6 +868,9 @@ const renderDirectoryStructure = (module.exports.renderDirectoryStructure = asyn
868
868
case 'sass' :
869
869
if ( rawPath . slice ( - 5 ) == '.scss' || rawPath . slice ( - 5 ) == '.sass' ) files . push ( rawPath ) ;
870
870
break ;
871
+ case 'dart-sass' :
872
+ if ( rawPath . slice ( - 5 ) == '.scss' || rawPath . slice ( - 5 ) == '.sass' ) files . push ( rawPath ) ;
873
+ break ;
871
874
case 'less' :
872
875
if ( rawPath . slice ( - 5 ) == '.less' ) files . push ( rawPath ) ;
873
876
break ;
Original file line number Diff line number Diff line change 128
128
<%_ } _%>
129
129
<!-- Add "scoped" attribute to limit CSS to this component only -->
130
130
<%_ if (rootOptions.cssPreprocessor) { _%>
131
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
132
- <%# -------------------- IS Using scss OR sass -------------------- -%>
133
- <%- rootOptions.cssPreprocessor
134
- ? `<style web lang="${
135
- rootOptions.cssPreprocessor === 'sass'
136
- ? 'scss'
137
- : rootOptions.cssPreprocessor
138
- }"` + `>`
139
- : ``
140
- %>
131
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
132
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
133
+ <style web lang="scss">
141
134
@import '~styles/style-one';
142
135
143
136
.w-page {
150
143
}
151
144
152
145
</style>
153
- <%- rootOptions.cssPreprocessor
154
- ? `<style native lang="${
155
- rootOptions.cssPreprocessor === 'sass'
156
- ? 'scss'
157
- : rootOptions.cssPreprocessor
158
- }"` + `>`
159
- : ``
160
- %>
146
+ <style native lang="scss">
161
147
@import '~styles/style-one';
162
148
</style>
163
149
<%_ } else if (rootOptions.cssPreprocessor == 'stylus') { _%>
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 32
32
<%_ } _%>
33
33
<!-- Add "scoped" attribute to limit CSS to this component only -->
34
34
<%_ if (rootOptions.cssPreprocessor) { _%>
35
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
36
- <%# -------------------- IS Using scss OR sass -------------------- -%>
37
- <%- rootOptions.cssPreprocessor
38
- ? `<style scoped lang="${
39
- rootOptions.cssPreprocessor === 'sass'
40
- ? 'scss'
41
- : rootOptions.cssPreprocessor
42
- }"` + `>`
43
- : ``
44
- %>
35
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
36
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
37
+ <style scoped lang="scss">
45
38
.message {
46
39
color: #42b983;
47
40
display: block;
Original file line number Diff line number Diff line change 41
41
<%_ } _%>
42
42
<!-- Add "scoped" attribute to limit CSS to this component only -->
43
43
<%_ if (rootOptions.cssPreprocessor) { _%>
44
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
45
- <%# -------------------- IS Using scss OR sass -------------------- -%>
46
- <%- rootOptions.cssPreprocessor
47
- ? `<style scoped lang="${
48
- rootOptions.cssPreprocessor === 'sass'
49
- ? 'scss'
50
- : rootOptions.cssPreprocessor
51
- }"` + `>`
52
- : ``
53
- %>
44
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
45
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
46
+ <style scoped lang="scss">
54
47
@import '~styles/style-two';
55
48
@import '~styles/style-one';
56
49
Original file line number Diff line number Diff line change 61
61
<%_ } _%>
62
62
<!-- Add "scoped" attribute to limit CSS to this component only -->
63
63
<%_ if (rootOptions.cssPreprocessor) { _%>
64
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
65
- <%# -------------------- IS Using scss OR sass -------------------- -%>
66
- <%- rootOptions.cssPreprocessor
67
- ? `<style scoped lang="${
68
- rootOptions.cssPreprocessor === 'sass'
69
- ? 'scss'
70
- : rootOptions.cssPreprocessor
71
- }"` + `>`
72
- : ``
73
- %>
64
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
65
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
66
+ <style scoped lang="scss">
74
67
@import '~styles/style-one';
75
68
@import '~styles/style-two';
76
69
Original file line number Diff line number Diff line change 130
130
}
131
131
132
132
public goToAboutPage() {
133
- VUE_APP_MODE == 'web' ? this.$router.push('about') : Vue.prototype.$navigateTo(About);
133
+ VUE_APP_MODE === 'web' ? this.$router.push('about') : Vue.prototype.$navigateTo(About);
134
134
}
135
135
<%_ } _%>
136
136
}
140
140
141
141
<!-- Add "scoped" attribute to limit CSS to this component only -->
142
142
<%_ if (rootOptions.cssPreprocessor) { _%>
143
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
144
- <%# -------------------- IS Using scss OR sass -------------------- -%>
145
- <%- rootOptions.cssPreprocessor
146
- ? `<style web lang="${
147
- rootOptions.cssPreprocessor === 'sass'
148
- ? 'scss'
149
- : rootOptions.cssPreprocessor
150
- }"` + `>`
151
- : ``
152
- %>
143
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
144
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
145
+ <style web lang="scss">
146
+ @import '~styles/style-one';
147
+
148
+ .w-page {
149
+ height: 100%;
150
+ width: 100%;
151
+ }
152
+
153
+ </style>
154
+ <style native lang="scss">
153
155
@import '~styles/style-one';
154
156
155
157
.w-page {
158
160
}
159
161
160
162
</style>
161
- <%- rootOptions.cssPreprocessor
162
- ? `<style native lang="${
163
- rootOptions.cssPreprocessor === 'sass'
164
- ? 'scss'
165
- : rootOptions.cssPreprocessor
166
- }"` + `>`
167
- : ``
168
- %>
169
163
@import '~styles/style-one';
170
164
</style>
171
165
<%_ } else if (rootOptions.cssPreprocessor == 'stylus') { _%>
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 31
31
<%_ } _%>
32
32
<!-- Add "scoped" attribute to limit CSS to this component only -->
33
33
<%_ if (rootOptions.cssPreprocessor) { _%>
34
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
35
- <%# -------------------- IS Using scss OR sass -------------------- -%>
36
- <%- rootOptions.cssPreprocessor
37
- ? `<style scoped lang="${
38
- rootOptions.cssPreprocessor === 'sass'
39
- ? 'scss'
40
- : rootOptions.cssPreprocessor
41
- }"` + `>`
42
- : ``
43
- %>
34
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
35
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
36
+ <style scoped lang="scss">
44
37
.message {
45
38
color: #42b983;
46
39
}
Original file line number Diff line number Diff line change 29
29
<%_ } _%>
30
30
<!-- Add "scoped" attribute to limit CSS to this component only -->
31
31
<%_ if (rootOptions.cssPreprocessor) { _%>
32
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
33
- <%# -------------------- IS Using scss OR sass -------------------- -%>
34
- <%- rootOptions.cssPreprocessor
35
- ? `<style scoped lang="${
36
- rootOptions.cssPreprocessor === 'sass'
37
- ? 'scss'
38
- : rootOptions.cssPreprocessor
39
- }"` + `>`
40
- : ``
41
- %>
32
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
33
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
34
+ <style scoped lang="scss">
42
35
.message {
43
36
color: #42b983;
44
37
display: block;
Original file line number Diff line number Diff line change 52
52
<%_ } _%>
53
53
<!-- Add "scoped" attribute to limit CSS to this component only -->
54
54
<%_ if (rootOptions.cssPreprocessor) { _%>
55
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
56
- <%# -------------------- IS Using scss OR sass -------------------- -%>
57
- <%- rootOptions.cssPreprocessor
58
- ? `<style scoped lang="${
59
- rootOptions.cssPreprocessor === 'sass'
60
- ? 'scss'
61
- : rootOptions.cssPreprocessor
62
- }"` + `>`
63
- : ``
64
- %>
55
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
56
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
57
+ <style scoped lang="scss">
65
58
@import '~styles/style-two';
66
59
@import '~styles/style-one';
67
60
</style>
Original file line number Diff line number Diff line change 64
64
<%_ } _%>
65
65
<!-- Add "scoped" attribute to limit CSS to this component only -->
66
66
<%_ if (rootOptions.cssPreprocessor) { _%>
67
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
68
- <%# -------------------- IS Using scss OR sass -------------------- -%>
69
- <%- rootOptions.cssPreprocessor
70
- ? `<style scoped lang="${
71
- rootOptions.cssPreprocessor === 'sass'
72
- ? 'scss'
73
- : rootOptions.cssPreprocessor
74
- }"` + `>`
75
- : ``
76
- %>
67
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass' ) { _%>
68
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
69
+ <style scoped lang="scss">
77
70
@import '~styles/style-one';
78
71
@import '~styles/style-two';
79
72
Original file line number Diff line number Diff line change 34
34
<%_ } _%>
35
35
<!-- Add "scoped" attribute to limit CSS to this component only -->
36
36
<%_ if (rootOptions.cssPreprocessor) { _%>
37
- <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss') { _%>
38
- <%# -------------------- IS Using scss OR sass -------------------- -%>
39
- <%- rootOptions.cssPreprocessor
40
- ? `<style web lang="${
41
- rootOptions.cssPreprocessor === 'sass'
42
- ? 'scss'
43
- : rootOptions.cssPreprocessor
44
- }"` + `>`
45
- : ``
46
- %>
37
+ <%_ if (rootOptions.cssPreprocessor == 'sass' || rootOptions.cssPreprocessor == 'scss' || rootOptions.cssPreprocessor == 'dart-sass') { _%>
38
+ <%# -------------------- IS Using sass, scss OR dart-sass -------------------- -%>
39
+ <style web lang="scss">
47
40
</style>
48
- <%- rootOptions.cssPreprocessor
49
- ? `<style native lang="${
50
- rootOptions.cssPreprocessor === 'sass'
51
- ? 'scss'
52
- : rootOptions.cssPreprocessor
53
- }"` + `>`
54
- : ``
55
- %>
41
+ <style native lang="scss">
56
42
</style>
57
43
<%_ } else if (rootOptions.cssPreprocessor == 'stylus') { _%>
58
44
<%# -------------------- IS Using stylus -------------------- -%>
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-cli-plugin-nativescript-vue" ,
3
- "version" : " 0.0.11 " ,
3
+ "version" : " 0.0.12 " ,
4
4
"description" : " A vue cli 3.x plugin for NativeScript-Vue" ,
5
5
"main" : " index.js" ,
6
6
"files" : [
7
7
" index.js" ,
8
8
" lib" ,
9
9
" generator" ,
10
10
" LICENSE" ,
11
- " prompts.js"
11
+ " prompts.js" ,
12
+ " ui.js" ,
13
+ " logo.png"
12
14
],
13
15
"scripts" : {
14
16
"test" : " echo \" Error: no test specified\" && exit 1"
You can’t perform that action at this time.
0 commit comments