Comments (7)
Hello @strixy
Vuex not for everybody. So i haven't plan to add vuex into the template. But you can do it yourself. Check #40 please.
I changed my mind, adding different versions of the template soon:
cordova-template-framework7-vue-vuex-babel-webpack
cordova-template-framework7-vue-vuex-webpack
cordova-template-framework7-vue-babel-webpack
cordova-template-framework7-babel-webpack
cordova-template-framework7-webpack
cordova-template-vue-vuex-babel-webpack
cordova-template-vue-vuex-webpack
cordova-template-vue-babel-webpack
cordova-template-vue-webpack
cordova-template-babel-webpack
cordova-template-webpack
Have a great day!
from cordova-template-framework7-vue-webpack.
May I mention two JavaScript database here,
- PouchDB: PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser.
- LokiJS: LokiJS is an in-memory database which prioritises performance over everything
I think both are very popular database for now. I used LokiJS in my project, with IndexedDb adapter (there's a file adapter also.)
When use lokijs, there is a gotcha when build with webpack (Cannot resolve module 'fs'
). And the solution: pugjs/pug-loader#8 (comment)
node: {
fs: "empty"
}
There also someone mentioned config like target: "electron"
can solve the fs
problem webpack/webpack#3012 (comment) for electron. And I found the target
config here
"target": {
"anyOf": [
{
"enum": [
"web",
"webworker",
"node",
"async-node",
"node-webkit",
"atom",
"electron",
"electron-main",
"electron-renderer"
]
},
Will try to use taget: "web"
to see if I can solve the fs
module not found thing someday.
from cordova-template-framework7-vue-webpack.
Thank you for agreeing to add Vuex. It appears in the official Vue documentation as the only alternative to DIY state management.
Good idea to mention Babel. Come to think of it, don't you have Vueify already included as well? You should maybe mention that in the docs. That's a big win too.
When you say "Vuex not for everybody", what other options are there besides creating your own? I'm curious, is there a cool toy I haven't played with yet?
from cordova-template-framework7-vue-webpack.
Thank you!
from cordova-template-framework7-vue-webpack.
cordova-template-framework7-vue-vuex-babel-webpack +1
from cordova-template-framework7-vue-webpack.
cordova-template-framework7-vue-vuex-babel-webpack +1
from cordova-template-framework7-vue-webpack.
I created a new release that is using Vuex and babel features :)
you can check on (2.0.3):
https://github.com/caiobiodere/cordova-template-framework7-vue-webpack/releases/tag/2.0.3
from cordova-template-framework7-vue-webpack.
Related Issues (20)
- f7 components
- Version 2.3.9 - ES Module HOT 3
- overswipe event bug in any device HOT 7
- cordova build ios --release bug HOT 2
- How to update template? HOT 2
- Live reload & API requests HOT 5
- white screen on fresh template android/ios HOT 2
- webpack out file question HOT 2
- how do use admob HOT 1
- Error webpack build android release HOT 3
- platform browser on macos HOT 2
- Error for cordova build browser --release HOT 1
- Not work in Linux
- not work reload HOT 1
- How do I get to the cordova object to access plugins in this template? HOT 1
- Can't connect to livereload from android device HOT 2
- Tapable.plugin is deprecated. Use new API on `.hooks` instead HOT 1
- lazy dynamic component import not working. HOT 5
- Sourcemap can't locate the right Line when Debug.
- Noob, cannot add plugin, what am I doing wrong?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-template-framework7-vue-webpack.