-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66d8970
commit 5683c7a
Showing
15 changed files
with
3,215 additions
and
1,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
{ | ||
"presets": [ | ||
["es2015", { | ||
"modules": false, | ||
"loose": true | ||
}], | ||
"stage-2" | ||
["env", { | ||
"es2015": { "modules": false } | ||
}] | ||
], | ||
"plugins": ["transform-runtime", "syntax-dynamic-import"], | ||
"comments": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
extends: 'standard', | ||
// required to lint *.vue files | ||
plugins: [ | ||
'html' | ||
], | ||
// add your custom rules here | ||
rules: {}, | ||
globals: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "cordovue", | ||
"description": "Cordova template using VueJS, Webpack, ES2015", | ||
"version": "1.0.2", | ||
"version": "1.0.5", | ||
"author": { | ||
"name": "Gabriel Cueto <@Mushr00m_Dev>", | ||
"email": "[email protected]", | ||
|
@@ -22,8 +22,10 @@ | |
"cordova:template", | ||
"phonegap:template", | ||
"vue.js", | ||
"vuejs", | ||
"webpack", | ||
"hot-reload" | ||
"hot-reload", | ||
"eslint" | ||
], | ||
"cordova": { | ||
"id": "cordovue", | ||
|
@@ -41,34 +43,45 @@ | |
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules", | ||
"android": "cordova run android", | ||
"ios": "cordova run ios", | ||
"serve": "cordova serve --port 8080" | ||
"serve": "cordova serve --port 8080", | ||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .", | ||
"precommit": "npm run lint" | ||
}, | ||
"engine": "node >= 6.0.0", | ||
"dependencies": { | ||
"autoprefixer": "^7.1.1", | ||
"cordova": "^7.0.1", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"friendly-errors-webpack-plugin": "^1.6.1", | ||
"vue": "^2.3.3", | ||
"vue-router": "^2.5.3", | ||
"vuex": "^2.3.1", | ||
"vuex-router-sync": "^4.1.2", | ||
"cordova-android": "~6.1.2", | ||
"cordova-plugin-whitelist": "1" | ||
"cordova": "^7.1.0", | ||
"cordova-android": "^6.3.0", | ||
"cordova-plugin-whitelist": "^1.3.2", | ||
"vue": "^2.5.2", | ||
"vue-router": "^3.0.1", | ||
"vuex": "^3.0.1", | ||
"vuex-router-sync": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.24.1", | ||
"babel-loader": "^7.0.0", | ||
"autoprefixer": "^7.1.6", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.1", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-stage-2": "^6.24.1", | ||
"cross-env": "^5.0.0", | ||
"css-loader": "^0.28.1", | ||
"file-loader": "^0.11.1", | ||
"vue-loader": "^12.1.0", | ||
"vue-template-compiler": "^2.3.3", | ||
"webpack": "^2.5.1", | ||
"webpack-dev-server": "^2.4.5" | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"cross-env": "^5.1.1", | ||
"css-loader": "^0.28.7", | ||
"eslint": "^4.10.0", | ||
"eslint-config-standard": "^10.2.1", | ||
"eslint-loader": "^1.9.0", | ||
"eslint-plugin-html": "^3.2.2", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"extract-text-webpack-plugin": "^3.0.2", | ||
"file-loader": "^1.1.5", | ||
"friendly-errors-webpack-plugin": "^1.6.1", | ||
"vue-loader": "^13.3.0", | ||
"vue-template-compiler": "^2.5.2", | ||
"webpack": "^3.8.1", | ||
"webpack-dev-server": "^2.9.4" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import 'babel-polyfill' | ||
import Vue from 'vue' | ||
import App from './App.vue' | ||
import Cordova from './Cordova.js' | ||
|
||
import store from './store'; | ||
import router from './router'; | ||
import { sync } from 'vuex-router-sync'; | ||
import store from './store' | ||
import router from './router' | ||
import { sync } from 'vuex-router-sync' | ||
|
||
sync(store, router); | ||
sync(store, router) | ||
|
||
// Load Vue instance | ||
new Vue({ | ||
export default new Vue({ | ||
router, | ||
store, | ||
el: '#app', | ||
render: h => h(App), | ||
mounted() { | ||
mounted () { | ||
Cordova.initialize() | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import Vue from 'vue'; | ||
import Router from 'vue-router'; | ||
import Vue from 'vue' | ||
import Router from 'vue-router' | ||
|
||
// const Foo = resolve => require(['../views/hello.vue'], resolve); | ||
// import hello from '../views/hello.vue'; | ||
|
||
import main from '../views/main.vue'; | ||
import about from '../views/about.vue'; | ||
import main from '../views/main.vue' | ||
import about from '../views/about.vue' | ||
|
||
Vue.use(Router); | ||
Vue.use(Router) | ||
|
||
export default new Router({ | ||
mode: 'hash', | ||
scrollBehavior: () => ({ y: 0 }), | ||
routes: [ | ||
{ name: 'home', path: '/', component: main }, | ||
{ name: 'about', path: '/about', component: about }, | ||
], | ||
}); | ||
{ name: 'about', path: '/about', component: about } | ||
] | ||
}) |
Oops, something went wrong.