Skip to content

Commit 4d7020d

Browse files
committed
test: demo update
1 parent 9dd63ae commit 4d7020d

File tree

4 files changed

+22
-25
lines changed

4 files changed

+22
-25
lines changed

demo-vue/app.webpack.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ module.exports = (env, params = {}) => {
227227
config.plugins = config.plugins.filter(p => ['CopyWebpackPlugin'].indexOf(p.constructor.name) === -1);
228228
// we add our rules
229229
config.plugins.unshift(
230-
new CopyWebpackPlugin({
231-
patterns: [
230+
new CopyWebpackPlugin([
232231
{ from: 'fonts/!(ios|android)/**/*', to: 'fonts', flatten: true, noErrorOnMissing: true },
233232
{ from: 'fonts/*', to: 'fonts', flatten: true, noErrorOnMissing: true },
234233
{ from: `fonts/${platform}/**/*`, to: 'fonts', flatten: true, noErrorOnMissing: true },
@@ -245,8 +244,7 @@ module.exports = (env, params = {}) => {
245244
to: 'fonts',
246245
noErrorOnMissing: true
247246
}
248-
]
249-
})
247+
])
250248
);
251249

252250
if (!!production) {

demo-vue/app/examples/Sliders.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
minValue="0" maxValue="100"
2020
:value="value" @valueChange="onValueChanged" />
2121
<MDSlider
22-
minValue="0" maxValue="100"
22+
minValue="5" maxValue="200"
2323
rippleColor="red"
24+
backgroundColor="black"
2425
:value="value" @valueChange="onValueChanged" />
2526
<MDSlider
2627
minValue="0" maxValue="100"

demo-vue/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"repository": "http://www.github.com/NativeScript/nativescript-ui-sidedrawer.git",
66
"dependencies": {
77
"@mdi/font": "4.9.95",
8-
"@nativescript/core": "7.0.13",
9-
"@nativescript-community/text": "1.3.6",
8+
"@nativescript/core": "7.3.0",
9+
"@nativescript-community/text": "1.4.9",
1010
"@nativescript-community/ui-material-activityindicator": "file:../packages/activityindicator",
1111
"@nativescript-community/ui-material-bottom-navigation": "file:../packages/bottom-navigation",
1212
"@nativescript-community/ui-material-bottomnavigationbar": "file:../packages/bottomnavigationbar",
@@ -25,27 +25,27 @@
2525
"@nativescript-community/ui-material-textfield": "file:../packages/textfield",
2626
"@nativescript-community/ui-material-textview": "file:../packages/textview",
2727
"@nativescript/iqkeyboardmanager": "^2.0.0",
28-
"@nativescript/theme": "3.0.0",
29-
"nativescript-vue": "~2.8.1",
30-
"nativescript-vue-template-compiler": "~2.8.1"
28+
"@nativescript/theme": "3.0.1",
29+
"nativescript-vue": "~2.8.4",
30+
"nativescript-vue-template-compiler": "~2.8.4"
3131
},
3232
"devDependencies": {
33-
"@babel/core": "^7.12.3",
33+
"@babel/core": "^7.13.10",
3434
"@nativescript/android": "7.0.1",
35-
"@nativescript/types": "7.0.4",
36-
"@nativescript/webpack": "3.0.8",
37-
"babel-loader": "^8.1.0",
38-
"nativescript-vue-template-compiler": "~2.8.1",
35+
"@nativescript/types": "7.3.0",
36+
"@nativescript/webpack": "4.1.0",
37+
"babel-loader": "^8.2.2",
38+
"nativescript-vue-template-compiler": "~2.8.4",
3939
"sass-loader": "^10.0.2",
4040
"scss-symbols-parser": "^2.0.1",
41-
"string-replace-loader": "^2.3.0",
42-
"tns-ios":"6.5.3",
43-
"typescript": "^3.9.7",
41+
"string-replace-loader": "^3.0.1",
42+
"tns-ios":"6.5.4",
43+
"typescript": "^4.2.3",
4444
"vue": "^2.6.12",
45-
"vue-i18n": "^8.21.0",
46-
"vue-loader": "^15.9.3",
45+
"vue-i18n": "^8.24.1",
46+
"vue-loader": "^15.9.6",
4747
"vue-property-decorator": "^8.5.1",
48-
"webpack": "^4.44.1",
48+
"webpack": "^4.46.0",
4949
"webpack-cli": "^3.3.12"
5050
},
5151
"scripts": {

demo-vue/webpack.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,11 @@ module.exports = env => {
302302
verbose: !!verbose
303303
}),
304304
// Copy assets
305-
new CopyWebpackPlugin({
306-
patterns: [
305+
new CopyWebpackPlugin([
307306
{ from: 'assets/**', noErrorOnMissing: true, globOptions: { dot: false, ...copyIgnore } },
308307
{ from: 'fonts/**', noErrorOnMissing: true, globOptions: { dot: false, ...copyIgnore } },
309308
{ from: '**/*.+(jpg|png)', noErrorOnMissing: true, globOptions: { dot: false, ...copyIgnore } }
310-
],
311-
}),
309+
]),
312310
new nsWebpack.GenerateNativeScriptEntryPointsPlugin('bundle'),
313311
// For instructions on how to set up workers with webpack
314312
// check out https://github.com/nativescript/worker-loader

0 commit comments

Comments
 (0)