In a short period, it won't be continued, to find a good framework, you may see Quasar or cordova-electron
Linx.vue is a boilerplate to create applications that run on Web, Mobile Phones and Standalone Devices in one go.
- It is the modified environment that was used in developing https://github.com/scris/scristask 1.10+.
- Some code is from https://github.com/halfrost/vue-objccn, so I currently choose to use GPL v3, however I will rewrite these 3 files one day and change the project into MIT.
vue init scris/linx.vuetemplate myproj
yarn
cd app
yarn
cordova platform add ios
cordova platform add android
cordova platform add browser
Now it is time to build your web app. Just use it like using vue-cli 3. You will find it easy to use.
You can use process.env.LINX_AGENT
to get which kind of devices is the user currently using.
if you get electron
, do things in standalone devices.
if you get cordova
, do things in mobile phones.
if you get other answers or get nothing, mark it as in the web environment.
If you wanna make some changes for electron, go to see dist/electron.js
as the main part and dist/renderer.electron.js
as the renderer part.
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
# build for Cordova (Browser)
npm run cbrowser
# build for iOS
npm run cios
# build for Android
npm run candroid
# run Electron tests
npm run edev
# build for Mac X64
npm run emac
# build for Windows X64
npm run ewin
# build for Linux X64
npm run elinux
Dominik Qiu from Scris Studio