Skip to content

Commit c9f739a

Browse files
sis0k0rigor789
authored andcommitted
docs(en): remove the mentions of the bundle and hmr flags (#285)
Starting with NativeScript 6.0, the `bundle` and `hmr` flags are now enabled by default. This PR should be merged after nativescript-vue/vue-cli-template#134.
1 parent 67b4aa8 commit c9f739a

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

content/docs/en/getting-started/1-quick-start.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ $ npm install
2323
$ # or
2424
$ yarn install
2525
$
26-
$ tns run android --bundle
26+
$ tns preview
2727
$ # or
28-
$ tns run ios --bundle
29-
$
30-
$ # You may also try the new HMR mode by replacing --bundle
31-
$ # with --hmr, but note that this is a beta feature.
28+
$ tns run
3229
```
3330

3431
This set of commands performs the following operations on your system:
@@ -37,4 +34,5 @@ This set of commands performs the following operations on your system:
3734
2. Creates a project using the [vue-cli-template](https://github.com/nativescript-vue/vue-cli-template).
3835
3. Switches to the directory containing the newly created project.
3936
4. Installs any npm dependencies locally.
40-
5. Builds and runs the project on any connected devices or installed emulators for the selected platform. The `--bundle` option triggers a webpack build, which compiles `.vue` files and watches for changes.
37+
5. If executing `tns preview`, produces a QR code which can be used to preview the app on a device.
38+
6. If executing `tns run`, builds and runs the project on all connected devices or in native emulators.

content/docs/en/getting-started/4-upgrade-guide.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ $ npm install -g @vue/cli @vue/cli-init
3131
$ vue init nativescript-vue/vue-cli-template <project-name>
3232
$ cd <project-name>
3333
$ npm install
34-
$ tns run android --bundle
34+
$ tns preview
3535
$ # or
36-
$ tns run ios --bundle
36+
$ tns run
3737
```
3838

3939
## Step 2: Replace `App_Resources`
@@ -181,12 +181,10 @@ Run the following command to clean the new app's folders and reinstall any depen
181181
$ cd <project-name>
182182
$ rm -rf platforms
183183
$ npm install
184-
$ tns run android --bundle
185-
$ # or
186-
$ tns run ios --bundle
184+
$ tns run
187185
```
188186

189-
## (Optional) Step 8: Try HMR
187+
## (Optional) Step 9: Try HMR
190188

191189
NativeScript now provides support for HMR (Hot Module Replacement). The latest version of NativeScript-Vue provides out-of-the-box HMR support as well but requires the NativeScript CLI.
192190

@@ -196,7 +194,5 @@ Run the following command to get HMR support by installing the latest and greate
196194
$ npm install -g nativescript@next
197195
$ cd <project-name>
198196
$ rm -rf platforms
199-
$ tns run android --hmr
200-
$ # or
201-
$ tns run ios --hmr
197+
$ tns run
202198
```

content/docs/en/getting-started/5-vue-devtools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Run the following command:
6565

6666
```shell
6767
$ rm -rf platforms
68-
$ tns run android --bundle
68+
$ tns run android
6969
$ # or
70-
$ tns run ios --bundle
70+
$ tns run ios
7171
```
7272

7373
If your machine and app are configured properly, you should see a few components in the component tree of Vue DevTools.

0 commit comments

Comments
 (0)