📦 Linx.vue is a vue boilerplate to create applications that run on Web, Mobile Phones and Standalone Devices in a go.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
app move unnecessary files Oct 3, 2018
build
config
dist/static/js
docs
src
static
test
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitattributes
.gitignore
.postcssrc.js
README.md
index-app.html
index.html
package-lock.json
package.json

README.md

linx.vue


Linx.vue is a boilerplate to create applications that run on Web, Mobile Phones and Standalone Devices in a go.

Set Up

You can use an CLI tool.

npm install linx-cli -g
linx g myproject

Build Setup

# install dependencies
npm install

# cordova setup
# first edit the project name in app/config.xml
cd app
npm install
cordova platform add ios
cordova platform add android
cordova platform add browser

# 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

# run Cordova tests
npm run cdev
cd app
cordova run ios

# build for Cordova
npm run cbuild
cd app
cordova run ios

# run Electron tests
npm run edev

# build for Electron
npm run ebuild

Then

Then edit your information in:

package.json
README.md
app/package.json

Now it is time to build your webapp.

Just use it like using vue-cli. (with vue-router and element-ui)

You will find it easy to use.

Emm ... One thing left. You can use process.env.LINX_AGENT to get which mode is 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 answer or get nothing, mark it as in the web environment.


Dominik Qiu from Scris Studio