@nativescript/template-blank-vue-ts 9.0.6 → 9.0.7
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/app/app.css +1 -3
- package/app/app.ts +3 -9
- package/app/components/Home.vue +2 -10
- package/package.json +5 -11
- package/types/shims.vue.d.ts +3 -2
- package/tailwind.config.js +0 -13
- package/webpack.config.js +0 -38
package/app/app.css
CHANGED
package/app/app.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Home from './components/Home.vue'
|
|
3
|
-
|
|
4
|
-
declare let __DEV__: boolean;
|
|
1
|
+
import { createApp } from 'nativescript-vue'
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
Vue.config.silent = !__DEV__
|
|
3
|
+
import Home from './components/Home.vue'
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
render: (h) => h('frame', [h(Home)]),
|
|
11
|
-
}).$start()
|
|
5
|
+
createApp(Home).start()
|
package/app/components/Home.vue
CHANGED
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts">
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default Vue.extend({
|
|
14
|
+
export default {
|
|
17
15
|
computed: {
|
|
18
16
|
message() {
|
|
19
17
|
return "Blank {N}-Vue app";
|
|
@@ -25,11 +23,5 @@
|
|
|
25
23
|
console.log('You have tapped the message!')
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
|
-
}
|
|
26
|
+
};
|
|
29
27
|
</script>
|
|
30
|
-
|
|
31
|
-
<style>
|
|
32
|
-
/* .info {
|
|
33
|
-
font-size: 20;
|
|
34
|
-
} */
|
|
35
|
-
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nativescript/template-blank-vue-ts",
|
|
3
3
|
"main": "app/app.ts",
|
|
4
4
|
"displayName": "Blank Vue Typescript",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.7",
|
|
6
6
|
"description": "Blank Typescript template for NativeScript apps using Vue.",
|
|
7
7
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
8
8
|
"license": "Apache-2.0",
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
"!tools/assets",
|
|
26
26
|
"types",
|
|
27
27
|
".editorconfig",
|
|
28
|
-
"tailwind.config.js",
|
|
29
|
-
"webpack.config.js",
|
|
30
28
|
"tsconfig.json"
|
|
31
29
|
],
|
|
32
30
|
"keywords": [
|
|
@@ -44,18 +42,14 @@
|
|
|
44
42
|
],
|
|
45
43
|
"dependencies": {
|
|
46
44
|
"@nativescript/core": "~9.0.0",
|
|
47
|
-
"nativescript-vue": "
|
|
45
|
+
"nativescript-vue": "^3.0.0"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"@nativescript/tailwind": "^
|
|
48
|
+
"@nativescript/tailwind": "^4.0.0",
|
|
51
49
|
"@nativescript/types": "~9.0.0",
|
|
52
50
|
"@nativescript/webpack": "~5.0.31",
|
|
53
51
|
"@types/node": "^20.0.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"typescript": "~5.4.0",
|
|
57
|
-
"vue": "~2.6.12",
|
|
58
|
-
"vue-loader": "^15.11.1",
|
|
59
|
-
"vue-template-compiler": "~2.6.12"
|
|
52
|
+
"tailwindcss": "^4.0.0",
|
|
53
|
+
"typescript": "~5.4.0"
|
|
60
54
|
}
|
|
61
55
|
}
|
package/types/shims.vue.d.ts
CHANGED
package/tailwind.config.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: ['./app/**/*.{css,html,vue,ts,tsx}'],
|
|
4
|
-
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
|
|
5
|
-
darkMode: ['class', '.ns-dark'],
|
|
6
|
-
theme: {
|
|
7
|
-
extend: {},
|
|
8
|
-
},
|
|
9
|
-
plugins: [],
|
|
10
|
-
corePlugins: {
|
|
11
|
-
preflight: false, // disables browser-specific resets
|
|
12
|
-
},
|
|
13
|
-
}
|
package/webpack.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const webpack = require("@nativescript/webpack");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const VueLoaderPlugin = require("vue-loader/lib/plugin");
|
|
4
|
-
|
|
5
|
-
module.exports = (env) => {
|
|
6
|
-
webpack.init(env);
|
|
7
|
-
|
|
8
|
-
// Learn how to customize:
|
|
9
|
-
// https://docs.nativescript.org/webpack
|
|
10
|
-
|
|
11
|
-
webpack.chainWebpack((config) => {
|
|
12
|
-
// Use vue-loader@15 for Vue 2
|
|
13
|
-
config.resolve.alias.set(
|
|
14
|
-
"vue-loader",
|
|
15
|
-
path.resolve(__dirname, "node_modules/vue-loader")
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
// Remove the default VueLoaderPlugin (v17) and add v15
|
|
19
|
-
config.plugins.delete("VueLoaderPlugin");
|
|
20
|
-
config.plugin("VueLoaderPlugin").use(VueLoaderPlugin);
|
|
21
|
-
|
|
22
|
-
// Configure vue-loader for Vue 2
|
|
23
|
-
config.module
|
|
24
|
-
.rule("vue")
|
|
25
|
-
.use("vue-loader")
|
|
26
|
-
.loader(require.resolve("vue-loader"))
|
|
27
|
-
.tap((options) => ({
|
|
28
|
-
...options,
|
|
29
|
-
compiler: require("vue-template-compiler"),
|
|
30
|
-
compilerOptions: {
|
|
31
|
-
whitespace: 'condense',
|
|
32
|
-
preserveWhitespace: false,
|
|
33
|
-
},
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return webpack.resolveConfig();
|
|
38
|
-
};
|