Skip to content

Commit 29cf514

Browse files
chore: cleanup post 8.0 (#188)
* chore: cleanup pass * chore: add missing aliases * chore: bump tab-navigation-ng * chore: declare __DEV__ * chore: fix version * docs: replace Slack to Discord * chore: bump webpack to beta.4 * fix: handle paths with spaces * fix: simplify actionbar * chore: hide navigation buttons * fix: simplify actionbar template-drawer-navigation * fix: simplify actionbar template-drawer-navigation-ts * chore: cleanup action-bar * chore: bump versions Co-authored-by: Janos Hrubos <[email protected]>
1 parent aa8cb32 commit 29cf514

File tree

138 files changed

+410
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+410
-1135
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This monorepo contains the following NativeScript app templates:
1212
## Get Help
1313
The NativeScript framework has a vibrant community that can help when you run into problems.
1414

15-
Try [joining the NativeScript community Slack](https://www.nativescript.org/slack-invitation-form). The Slack channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
15+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
1616

1717
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
1818

packages/template-blank-ng/.npmignore

-20
This file was deleted.

packages/template-blank-ng/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ There is a single blank component that sets up an empty layout:
3838
## Get Help
3939
The NativeScript framework has a vibrant community that can help when you run into problems.
4040

41-
Try [joining the NativeScript community Slack](https://www.nativescript.org/slack-invitation-form). The Slack channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
41+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
4242

4343
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
4444

packages/template-blank-ng/package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
"main": "src/main.ts",
44
"displayName": "Blank",
55
"templateType": "App template",
6-
"version": "8.0.2",
6+
"version": "8.0.3",
77
"description": "Blank template for NativeScript apps using Angular",
88
"author": "NativeScript Team <[email protected]>",
99
"license": "Apache-2.0",
1010
"publishConfig": {
1111
"access": "public"
1212
},
1313
"files": [
14-
"src",
1514
"App_Resources",
16-
"tools",
1715
"hooks",
16+
"src",
17+
"tools",
1818
"!tools/assets",
1919
".editorconfig",
20+
"references.d.ts",
2021
"tsconfig.json"
2122
],
2223
"keywords": [
@@ -55,7 +56,8 @@
5556
},
5657
"devDependencies": {
5758
"@angular/compiler-cli": "~11.2.7",
58-
"@nativescript/webpack": "5.0.0-beta.2",
59+
"@nativescript/types": "~8.0.0",
60+
"@nativescript/webpack": "5.0.0-beta.4",
5961
"@ngtools/webpack": "~11.2.6",
6062
"typescript": "~4.0.0"
6163
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference path="./node_modules/@nativescript/types/index.d.ts" />

packages/template-blank-ng/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
"lib": ["es2017", "dom"],
1212
"baseUrl": ".",
1313
"paths": {
14-
"~/*": ["src/*"]
14+
"~/*": ["src/*"],
15+
"@/*": ["src/*"]
1516
}
1617
},
1718
"include": ["src/tests/**/*.ts", "src/**/*.ios.ts", "src/**/*.android.ts"],
18-
"files": ["./src/main.ts"],
19+
"files": ["./src/main.ts", "./references.d.ts"],
1920
"exclude": ["node_modules", "platforms", "e2e"]
2021
}

packages/template-blank-react/.npmignore

-20
This file was deleted.

packages/template-blank-react/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ There is a single blank component located in:
6464
## Get Help
6565
The NativeScript framework has a vibrant community that can help when you run into problems.
6666

67-
Try [joining the NativeScript community Slack](https://app.slack.com/client/T0L97VCSY/). The Slack `#react` channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
67+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord `#react` channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
6868

6969
If you have found an issue with this template, please report the problem in this repository's [Issues page](https://github.com/shirakaba/tns-template-blank-react/issues).
7070

packages/template-blank-react/package.json

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/template-blank-react",
3-
"version": "7.0.11",
3+
"version": "8.0.0",
44
"description": "Blank template for NativeScript apps using React.",
55
"author": "Jamie Birch <[email protected]>",
66
"main": "src/app.ts",
@@ -22,14 +22,15 @@
2222
"access": "public"
2323
},
2424
"files": [
25-
"src",
2625
"App_Resources",
27-
"tools",
2826
"hooks",
27+
"patches",
28+
"src",
29+
"tools",
2930
"!tools/assets",
3031
".editorconfig",
31-
"tsconfig.json",
32-
"patches"
32+
"references.d.ts",
33+
"tsconfig.json"
3334
],
3435
"keywords": [
3536
"mobile",
@@ -41,21 +42,18 @@
4142
],
4243
"dependencies": {
4344
"@nativescript/core": "~8.0.0",
44-
"@react-navigation/core": "^5.13.2",
45-
"react": "^16.13.1",
46-
"react-nativescript": "^2.2.0",
47-
"react-nativescript-navigation": "^2.0.1",
48-
"react-refresh": "^0.8.3"
45+
"@react-navigation/core": "~5.13.2",
46+
"react": "~16.13.1",
47+
"react-nativescript": "~2.2.0",
48+
"react-nativescript-navigation": "~2.0.1",
49+
"react-refresh": "~0.8.3"
4950
},
5051
"devDependencies": {
51-
"@babel/core": "^7.4.5",
52-
"@nativescript/types": "^8.0.0",
53-
"@nativescript/webpack": "5.0.0-beta.2",
54-
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.0-beta.5",
52+
"@nativescript/types": "~8.0.0",
53+
"@nativescript/webpack": "5.0.0-beta.4",
54+
"@pmmmwh/react-refresh-webpack-plugin": "~0.4.0-beta.5",
5555
"@types/react": "16.9.34",
56-
"babel-loader": "8.0.6",
57-
"fork-ts-checker-webpack-plugin": "^5.1.0",
58-
"patch-package": "^6.2.2",
56+
"patch-package": "~6.2.2",
5957
"typescript": "~4.0.0"
6058
},
6159
"gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference path="./node_modules/@nativescript/types/index.d.ts" />

packages/template-blank-react/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
"lib": ["es6", "dom"],
1212
"baseUrl": ".",
1313
"paths": {
14-
"~/*": ["src/*"]
14+
"~/*": ["src/*"],
15+
"@/*": ["src/*"]
1516
}
1617
},
18+
"include": ["./src/**/*.tsx?"],
19+
"files": ["./references.d.ts"],
1720
"exclude": ["node_modules", "platforms"]
1821
}

packages/template-blank-svelte/.npmignore

-18
This file was deleted.

packages/template-blank-svelte/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ns create my-blank-svelte --template nativescript-app-templates/packages/templat
2525
## Get Help
2626
The NativeScript framework has a vibrant community that can help when you run into problems.
2727

28-
Try [joining the NativeScript community Slack](https://www.nativescript.org/slack-invitation-form). The Slack channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
28+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
2929

3030
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
3131

packages/template-blank-svelte/package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
"files": [
1414
"app",
1515
"App_Resources",
16-
"tools",
1716
"hooks",
17+
"tools",
1818
"!tools/assets",
1919
".editorconfig",
20-
"tsconfig.json",
21-
"svelte.config.js"
20+
"references.d.ts",
21+
"svelte.config.js",
22+
"tsconfig.json"
2223
],
2324
"keywords": [
2425
"nstudio",
@@ -45,7 +46,8 @@
4546
"svelte-native": "~0.9.5"
4647
},
4748
"devDependencies": {
48-
"@nativescript/webpack": "5.0.0-beta.2",
49+
"@nativescript/types": "~8.0.0",
50+
"@nativescript/webpack": "5.0.0-beta.4",
4951
"svelte": "~3.35.0",
5052
"svelte-loader-hot": "~0.3.1",
5153
"svelte-native-preprocessor": "^0.2.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference path="./node_modules/@nativescript/types/index.d.ts" />

packages/template-blank-svelte/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
"types": ["svelte"],
1515
"baseUrl": ".",
1616
"paths": {
17-
"~/*": ["app/*"]
17+
"~/*": ["app/*"],
18+
"@/*": ["app/*"]
1819
}
1920
},
2021
"include": ["app/**/*"],
22+
"files": ["./references.d.ts"],
2123
"exclude": ["node_modules", "platforms"]
2224
}

packages/template-blank-ts/.npmignore

-19
This file was deleted.

packages/template-blank-ts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ There is a single blank page module that sets up an empty layout:
3838
## Get Help
3939
The NativeScript framework has a vibrant community that can help when you run into problems.
4040

41-
Try [joining the NativeScript community Slack](https://www.nativescript.org/slack-invitation-form). The Slack channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
41+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
4242

4343
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
4444

packages/template-blank-ts/package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "app/app.ts",
44
"displayName": "Blank",
55
"templateType": "App template",
6-
"version": "8.0.2",
6+
"version": "8.0.3",
77
"description": "Blank template for Vanilla NativeScript apps using TypeScript",
88
"author": "NativeScript Team <[email protected]>",
99
"license": "Apache-2.0",
@@ -13,10 +13,11 @@
1313
"files": [
1414
"app",
1515
"App_Resources",
16-
"tools",
1716
"hooks",
17+
"tools",
1818
"!tools/assets",
1919
".editorconfig",
20+
"references.d.ts",
2021
"tsconfig.json"
2122
],
2223
"keywords": [
@@ -41,7 +42,8 @@
4142
"@nativescript/theme": "~3.0.1"
4243
},
4344
"devDependencies": {
44-
"@nativescript/webpack": "5.0.0-beta.2",
45+
"@nativescript/types": "~8.0.0",
46+
"@nativescript/webpack": "5.0.0-beta.4",
4547
"typescript": "~4.0.0"
4648
}
4749
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference path="./node_modules/@nativescript/types/index.d.ts" />

packages/template-blank-ts/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
"lib": ["es6", "dom"],
1212
"baseUrl": ".",
1313
"paths": {
14-
"~/*": ["app/*"]
14+
"~/*": ["app/*"],
15+
"@/*": ["app/*"]
1516
}
1617
},
18+
"files": ["./references.d.ts"],
1719
"exclude": ["node_modules", "platforms"]
1820
}

packages/template-blank-vue-ts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ There is a single blank component located in:
3535
## Get Help
3636
The NativeScript framework has a vibrant community that can help when you run into problems.
3737

38-
Try [joining the NativeScript community Slack](https://www.nativescript.org/slack-invitation-form). The Slack channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
38+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
3939

4040
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
4141

packages/template-blank-vue-ts/app/app.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Vue from 'nativescript-vue'
22
import Home from './components/Home.vue'
33

4+
declare let __DEV__: boolean;
5+
46
// Prints Vue logs when --env.production is *NOT* set while building
57
Vue.config.silent = !__DEV__
68

packages/template-blank-vue-ts/package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@nativescript/template-blank-vue-ts",
33
"main": "app/app.ts",
44
"displayName": "Blank Vue Typescript",
5-
"version": "8.0.2",
5+
"version": "8.0.1",
66
"description": "Blank Typescript template for NativeScript apps using Vue.",
77
"author": "NativeScript Team <[email protected]>",
88
"license": "Apache-2.0",
@@ -20,12 +20,12 @@
2020
"files": [
2121
"app",
2222
"App_Resources",
23-
"tools",
2423
"hooks",
24+
"tools",
2525
"!tools/assets",
26+
"types",
2627
".editorconfig",
27-
"tsconfig.json",
28-
"types"
28+
"tsconfig.json"
2929
],
3030
"keywords": [
3131
"nstudio",
@@ -47,10 +47,9 @@
4747
},
4848
"devDependencies": {
4949
"@nativescript/types": "~8.0.0",
50-
"@nativescript/webpack": "5.0.0-beta.2",
50+
"@nativescript/webpack": "5.0.0-beta.4",
5151
"@types/node": "~14.6.2",
5252
"nativescript-vue-template-compiler": "~2.9.0",
53-
"sass": "^1.32.8",
5453
"typescript": "~4.0.0",
5554
"vue": "~2.6.12"
5655
}

0 commit comments

Comments
 (0)