@nativescript/template-blank-vue 9.0.4 → 9.0.6

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.js CHANGED
@@ -1,7 +1,5 @@
1
- import Vue from 'nativescript-vue'
1
+ import { createApp } from 'nativescript-vue'
2
2
 
3
- import Home from './components/Home'
3
+ import Home from './components/Home.vue'
4
4
 
5
- new Vue({
6
- render: (h) => h('frame', [h(Home)]),
7
- }).$start()
5
+ createApp(Home).start()
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nativescript/template-blank-vue",
3
3
  "main": "app/app.js",
4
4
  "displayName": "Blank",
5
- "version": "9.0.4",
5
+ "version": "9.0.6",
6
6
  "description": "Blank template for NativeScript apps using Vue.",
7
7
  "author": "NativeScript Team <oss@nativescript.org>",
8
8
  "license": "Apache-2.0",
@@ -24,9 +24,7 @@
24
24
  "tools",
25
25
  "!tools/assets",
26
26
  ".editorconfig",
27
- "jsconfig.json",
28
- "tailwind.config.js",
29
- "webpack.config.js"
27
+ "jsconfig.json"
30
28
  ],
31
29
  "keywords": [
32
30
  "nstudio",
@@ -43,15 +41,11 @@
43
41
  ],
44
42
  "dependencies": {
45
43
  "@nativescript/core": "~9.0.0",
46
- "nativescript-vue": "~2.9.3"
44
+ "nativescript-vue": "^3.0.0"
47
45
  },
48
46
  "devDependencies": {
49
- "@nativescript/tailwind": "^2.1.0",
47
+ "@nativescript/tailwind": "^4.0.0",
50
48
  "@nativescript/webpack": "~5.0.31",
51
- "nativescript-vue-template-compiler": "~2.9.3",
52
- "tailwindcss": "~3.4.0",
53
- "vue": "~2.6.12",
54
- "vue-loader": "^15.11.1",
55
- "vue-template-compiler": "~2.6.12"
49
+ "tailwindcss": "^4.0.0"
56
50
  }
57
51
  }
@@ -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,34 +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
- }));
31
- });
32
-
33
- return webpack.resolveConfig();
34
- };