Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 986bf0b

Browse files
author
Vasil Chimev
authored
chore(demos): update dependencies (#597)
* chore(TypeScriptApp): update .gitignore file * chore(AngularApp): update to nativescript-angular@next * chore(demos): update to nativescript-dev-sass@next * chore(demos): add preinstall script Refer `nativescript-dev-webpack` from a local `.tgz` file. * chore(demos): rename preinstall to setup script Update `CONTRIBUTINГ.md` file.
1 parent a68778e commit 986bf0b

File tree

7 files changed

+30
-26
lines changed

7 files changed

+30
-26
lines changed

Diff for: CONTRIBUTING.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,21 @@ You are good to go! You're strongly encouraged to follow the official NativeScri
6262
6363
NOTE: There are three test apps in the repository, located in the `/demo` directory. The steps below describe how to run the tests for the `AngularApp`, but the same approach can be used to run any other `e2e` tests.
6464
65-
1. Navigate to `demo/AngularApp`
65+
1. Navigate to `demo/AngularApp`.
6666
``` bash
6767
cd demo/AngularApp
6868
```
6969
70-
2. Install dependencies. This also installs your local copy of the nativescript-angular plugin.
71-
``` bash
72-
npm install
70+
2. Install your local copy of the `nativescript-dev-webpack` plugin.
71+
```bash
72+
npm run setup
7373
```
74+
7475
3. Make sure to have an emulator set up or connect a physical Android/iOS device.
7576
76-
4. Build the app for Android or iOS
77+
4. Build the app for Android or iOS.
7778
``` bash
78-
tns run android/ios
79+
tns run android/ios --bundle
7980
```
8081
8182
5. Install [appium](http://appium.io/) globally.

Diff for: demo/AngularApp/package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313
}
1414
},
1515
"dependencies": {
16-
"@angular/common": "~6.0.0",
17-
"@angular/compiler": "~6.0.0",
18-
"@angular/core": "~6.0.0",
19-
"@angular/forms": "~6.0.0",
20-
"@angular/http": "~6.0.0",
21-
"@angular/platform-browser": "~6.0.0",
22-
"@angular/platform-browser-dynamic": "~6.0.0",
23-
"@angular/router": "~6.0.0",
24-
"nativescript-angular": "~6.0.0",
16+
"@angular/common": "~6.1.0-beta.3",
17+
"@angular/compiler": "~6.1.0-beta.3",
18+
"@angular/core": "~6.1.0-beta.3",
19+
"@angular/forms": "~6.1.0-beta.3",
20+
"@angular/http": "~6.1.0-beta.3",
21+
"@angular/platform-browser": "~6.1.0-beta.3",
22+
"@angular/platform-browser-dynamic": "~6.1.0-beta.3",
23+
"@angular/router": "~6.1.0-beta.3",
24+
"nativescript-angular": "next",
2525
"nativescript-theme-core": "~1.0.2",
2626
"reflect-metadata": "~0.1.8",
27-
"rxjs": "~6.0.0-beta.1",
27+
"rxjs": "~6.0.0 || >=6.1.0",
2828
"tns-core-modules": "next",
29-
"zone.js": "^0.8.4"
29+
"zone.js": "^0.8.26"
3030
},
3131
"devDependencies": {
32+
"@angular/compiler-cli": "~6.1.0-beta.3",
3233
"@ngtools/webpack": "6.1.0-rc.0",
33-
"@angular/compiler-cli": "~6.1.0-beta.1",
3434
"@types/chai": "^4.0.2",
3535
"@types/mocha": "^2.2.41",
3636
"@types/node": "^7.0.5",
@@ -44,12 +44,13 @@
4444
"mocha-junit-reporter": "^1.13.0",
4545
"mocha-multi": "^0.11.0",
4646
"nativescript-dev-appium": "next",
47-
"nativescript-dev-sass": "^1.3.5",
47+
"nativescript-dev-sass": "next",
4848
"nativescript-dev-typescript": "next",
49-
"nativescript-dev-webpack": "file:../..",
49+
"nativescript-dev-webpack": "next",
5050
"typescript": "~2.7.2"
5151
},
5252
"scripts": {
53+
"setup": "npm pack ../../ && npm i -D nativescript-dev-webpack*.tgz",
5354
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
5455
"compile-tests": "tsc -p e2e --watch"
5556
}

Diff for: demo/JavaScriptApp/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
"mocha-junit-reporter": "^1.13.0",
2929
"mocha-multi": "^0.11.0",
3030
"nativescript-dev-appium": "next",
31-
"nativescript-dev-sass": "^1.3.5",
32-
"nativescript-dev-webpack": "file:../..",
31+
"nativescript-dev-sass": "next",
32+
"nativescript-dev-webpack": "next",
3333
"node-sass": "^4.7.1"
3434
},
3535
"scripts": {
36+
"setup": "npm pack ../../ && npm i -D nativescript-dev-webpack*.tgz",
3637
"e2e": "mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json"
3738
}
3839
}

Diff for: demo/TypeScriptApp/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
app/**/*.js
22
e2e/**/*.js
33

4+
app/app.android.css
5+
app/app.ios.css
46
app/main-page.android.css
57
app/main-page.ios.css

Diff for: demo/TypeScriptApp/app/app.android.css

-1
This file was deleted.

Diff for: demo/TypeScriptApp/app/app.ios.css

-1
This file was deleted.

Diff for: demo/TypeScriptApp/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
"mocha-junit-reporter": "^1.13.0",
2929
"mocha-multi": "^0.11.0",
3030
"nativescript-dev-appium": "next",
31-
"nativescript-dev-sass": "^1.3.5",
31+
"nativescript-dev-sass": "next",
3232
"nativescript-dev-typescript": "next",
33-
"nativescript-dev-webpack": "file:../..",
33+
"nativescript-dev-webpack": "next",
3434
"typescript": "~2.7.2"
3535
},
3636
"scripts": {
37+
"setup": "npm pack ../../ && npm i -D nativescript-dev-webpack*.tgz",
3738
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
3839
"compile-tests": "tsc -p e2e --watch"
3940
}

0 commit comments

Comments
 (0)