-
-
Notifications
You must be signed in to change notification settings - Fork 158
Update/quickstart #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploy preview for nativescript-vue ready! Built with commit 2d8f4b2 |
$ tns create my-app --template nativescript-vue-template | ||
$ cd my-app | ||
### Scaffold project | ||
```sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep it shell
for proper syntax highlighting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
$ cd my-app | ||
### Scaffold project | ||
```sh | ||
$ npm install -g vue-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably start advising vue-cli 3.x (@vue/cli
with @vue/cli-init
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not following you entirely, should I change the command or just suggest that this is the we would do it in vue-cli 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think vue cli 3.x will be the default very soon, so we might as well make the users install it right off the bat.
If both @vue/cli
and @vue/cli-init
are installed globally, we can use the 2.x templates like normal (vue init nativescript-vue/vue-cli-template <ProjectName>
).
So just change this line to
$ npm install -g @vue/cli @vue/cli-init
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
```shell | ||
$ tns create my-app --template nativescript-vue-template | ||
$ cd my-app | ||
### Scaffold project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need these headings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
$ tns run android # for android | ||
### Install dependencies | ||
```sh | ||
$ npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can go in the previous code block, maybe separated by a new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
### Build, watch for changes and run the application | ||
Platform below would be `ios` or `android` | ||
```sh | ||
$ npm run watch:<platform> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a good idea to mention the build
command as well, and then link to the template for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I purposely left out the build command because its instructions to install / get started what do you think?. But I think the link should be there I'll add it
Updating quickstart for to use first vue-cli-template