Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/vue-ionic-example

How to start new Vue Ionic project
https://github.com/daggerok/vue-ionic-example

gh-pages ionic vue

Last synced: 6 days ago
JSON representation

How to start new Vue Ionic project

Awesome Lists containing this project

README

        

# vue-ionic-example [![Build Status](https://travis-ci.org/daggerok/vue-ionic-example.svg?branch=master)](https://travis-ci.org/daggerok/vue-ionic-example)
How to start new Vue Ionic project

## Project setup

```bash
npm i -g @vue/cli
vue create vue-ionic-example
cd vue-ionic-example
vue add router
npm i -E @ionic/core @ionic/vue
```

edit `src/main.js` file:

```js
import '@ionic/core/css/ionic.bundle.css';
// import Ionic from '@ionic/vue';
import { defineCustomElements as Ionic } from "@ionic/core/loader"; // add a direct link to @ionic/core

Vue.use(Ionic);
Vue.config.ignoredElements = [/^ion-/];
```

finally use ionic in your root `Aoo.vue` component:

```vue




My App




Home |
About



export default {
name: 'app',
};

```

## npm scripts

### Compiles and hot-reloads for development

```bash
npm start
```

### Compiles and minifies for production

```bash
npm run build
```

### Run your unit tests

```bash
npm t
```
## other repositories

* https://github.com/daggerok/typescript-ionic-nuxt-app
* https://github.com/daggerok/webflux-kotlin-nuxt-app
* https://github.com/daggerok/spring-boot-nuxt-spa
* https://github.com/daggerok/ionic-nuxt-app
* https://github.com/daggerok/nuxt-examples
* https://github.com/daggerok/vue-examples

## resources

* https://forum.ionicframework.com/t/is-it-possible-to-use-ionic-with-nuxt/163202/3
* https://ionicframework.com/docs/installation/cdn
* [Nuxt.js docs](https://nuxtjs.org)
* https://github.com/ionic-team/ionic/issues/18640#issuecomment-506304099
* [Configuration Reference](https://cli.vuejs.org/config/)