@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 CHANGED
@@ -1,6 +1,4 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import "tailwindcss";
4
2
 
5
3
  ActionBar {
6
4
  background-color: #65adf1;
package/app/app.ts CHANGED
@@ -1,11 +1,5 @@
1
- import Vue from 'nativescript-vue'
2
- import Home from './components/Home.vue'
3
-
4
- declare let __DEV__: boolean;
1
+ import { createApp } from 'nativescript-vue'
5
2
 
6
- // Prints Vue logs when --env.production is *NOT* set while building
7
- Vue.config.silent = !__DEV__
3
+ import Home from './components/Home.vue'
8
4
 
9
- new Vue({
10
- render: (h) => h('frame', [h(Home)]),
11
- }).$start()
5
+ createApp(Home).start()
@@ -11,9 +11,7 @@
11
11
  </template>
12
12
 
13
13
  <script lang="ts">
14
- import Vue from "nativescript-vue";
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.6",
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": "~2.9.3"
45
+ "nativescript-vue": "^3.0.0"
48
46
  },
49
47
  "devDependencies": {
50
- "@nativescript/tailwind": "^2.1.0",
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
- "nativescript-vue-template-compiler": "~2.9.3",
55
- "tailwindcss": "~3.4.0",
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
  }
@@ -1,4 +1,5 @@
1
1
  declare module '*.vue' {
2
- import Vue from 'vue'
3
- export default Vue
2
+ import { DefineComponent } from 'nativescript-vue'
3
+ const component: DefineComponent<{}, {}, any>
4
+ export default component
4
5
  }
@@ -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
- };