Giter Site home page Giter Site logo

Comments (7)

centrual avatar centrual commented on May 12, 2024 11

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.

luckynum7 avatar luckynum7 commented on May 12, 2024 1

May I mention two JavaScript database here,

  1. PouchDB: PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser.
  2. 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.

strixy avatar strixy commented on May 12, 2024

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.

strixy avatar strixy commented on May 12, 2024

Thank you!

from cordova-template-framework7-vue-webpack.

yipcma avatar yipcma commented on May 12, 2024

cordova-template-framework7-vue-vuex-babel-webpack +1

from cordova-template-framework7-vue-webpack.

lroal avatar lroal commented on May 12, 2024

cordova-template-framework7-vue-vuex-babel-webpack +1

from cordova-template-framework7-vue-webpack.

caiobiodere avatar caiobiodere commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.