All Projects → nwutils → Nw Vue Cli Example

nwutils / Nw Vue Cli Example

Licence: mit
NW.js, Vue-CLI 4, Vue-DevTools

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nw Vue Cli Example

Dva Boot Admin
🍰 react admin dashboard ui LANIF-ADMIN --- react 16 + react-router 4 + dva 2 + antd 4 后台管理 脚手架
Stars: ✭ 1,553 (+2365.08%)
Mutual labels:  boilerplate, desktop
Nw.js
Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
Stars: ✭ 38,611 (+61187.3%)
Mutual labels:  nwjs, desktop
Popcorn Desktop
Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player ( Windows / Mac / Linux ) A Butter-Project Fork
Stars: ✭ 6,470 (+10169.84%)
Mutual labels:  nwjs, desktop
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-14.29%)
Mutual labels:  boilerplate
Meteor Skeleton
A simple boilerplate for creating Meteor applications with Blaze and SASS
Stars: ✭ 55 (-12.7%)
Mutual labels:  boilerplate
Overcast Mac
Unofficial Overcast Mac app.
Stars: ✭ 59 (-6.35%)
Mutual labels:  desktop
Jekyll Netlify Boilerplate
A simple Jekyll template for creating a fast, static website on Netlify
Stars: ✭ 62 (-1.59%)
Mutual labels:  boilerplate
Vanilla Css
A minimal baseline stylesheet for any web project
Stars: ✭ 53 (-15.87%)
Mutual labels:  boilerplate
Nestjs Monorepo Starter
A full-stack nestjs starter project. Includes authorization, authentication, MongoDB, Redis queue support, Crons jobs, and end-to-end testing.
Stars: ✭ 58 (-7.94%)
Mutual labels:  boilerplate
Docker Desktop
Docker Desktop enables you to create virtual desktops that can be accessed remotely. It comes with Firefox and Libreoffice already installed!
Stars: ✭ 1,098 (+1642.86%)
Mutual labels:  desktop
Quickapp Boilerplate Template
🔨致力于构建更为优雅的「快应用」开发脚手架模板。https://quickapp.lovejade.cn/tag/quickapp/
Stars: ✭ 58 (-7.94%)
Mutual labels:  boilerplate
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+1619.05%)
Mutual labels:  boilerplate
Cookiecutter Django Rest
Build best practiced apis fast with Python3
Stars: ✭ 1,108 (+1658.73%)
Mutual labels:  boilerplate
Fullstack Apollo Express Postgresql Boilerplate
💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
Stars: ✭ 1,079 (+1612.7%)
Mutual labels:  boilerplate
Koa React Notes Web
🤓 A simple SPA built using Koa (2.5.1) as the backend and React (16.4.1) as the frontend. Features MySQL integration, user authentication, CRUD note actions, and more.
Stars: ✭ 61 (-3.17%)
Mutual labels:  boilerplate
Tiddlydesktop
A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
Stars: ✭ 1,075 (+1606.35%)
Mutual labels:  nwjs
Rocket.chat.electron
Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
Stars: ✭ 1,108 (+1658.73%)
Mutual labels:  desktop
Js Boilerplate
Modern JavaScript Application Boilerplate
Stars: ✭ 57 (-9.52%)
Mutual labels:  boilerplate
Netcore Postgres Oauth Boiler
A basic .NET Core website boilerplate using PostgreSQL for storage, Adminer for db management, Let's Encrypt for SSL certificates and NGINX for routing.
Stars: ✭ 57 (-9.52%)
Mutual labels:  boilerplate
React Redux Typescript Boilerplate
A bare minimum frontend boilerplate with React 16, Typescript 3 and Webpack 4
Stars: ✭ 1,100 (+1646.03%)
Mutual labels:  boilerplate

nw-vue-cli-example

Build Status

NW.js + Vue 2.x + Vue-CLI 4 example

A screenshot of the default app running on Windows

  • NW.js 0.48.2
    • Chrome 85
    • Node 14.10.1
  • Vue-CLI 4.5.6
  • Vue 2.6.12
  • Vue-DevTools (latest)
  • Babel
  • ESLint
    • Vue Linting
    • A11Y Linting
    • Jest Linting
  • Jest (100% test coverage)
  • Jest Serializer Vue (TJW)

Why not include Vue-Router or Vuex?

Those are both very easily added from the Vue-CLI. There is also no custom styling libraries (Bulma, Bootstrap, etc), or meta-languages (Sass, TS, Pug, etc), or component libraries (Vuetify, Inkline, etc). This repo is meant to be the "go to" option for building all desktop apps with Vue. So it avoids pushing any particular choices on to you. With the exception of testing being set up for Jest, and Linting being set up to ensure minumum quality of this boilerplate repo itself. Both of which can be easily modified, ignored, or removed.

If you want to load the app with a splash screen, check the nw-splasher branch.

Running Locally for development

  1. npm install
  2. npm start
  3. Once Webpack finishes starting up your app will appear in a window

Building for distribution

  1. npm run build:clean will delete your ./dist and ./dist-vue folders
  2. npm run build:vue will build just your Vue app for distribution (./dist-vue)
  3. npm run build:nw will build just your NW.js app (./dist)
  4. npm run build is your all-in-one command. It will clean out the old dist folders and build your Vue and NW.js app

IMPORTANT NOTE ABOUT BUILDS!!!

They take a long time. If you do npm run build expect it to take 10-30 minutes. This can be adjusted by changing the build params in the package.json. The more platforms and build types, the longer it takes. You can also remove the --concurrent from the build:nw script to see a status of what has been completed. This will allow individual pieces to finish faster, but the entire build will take longer.

Automated quality enforcment

  1. Linting: npm run lint - Uses rules in ./eslint.json
  2. Unit tests: npm run test:unit - Jest.
  3. End-to-end: npm run test:e2e - Accepting PR to make tests run in NW.js. - Nightwatch.

Customize configuration

Want Vue-Router? Vuex? Use the Vue-CLI to add them:


Updating Vue-DevTools

To update your version of Vue-DevTools run npm run update:vue-devtools.

This will download the source code for the latest version of Vue-DevTools and do a custom build for NW.js. This ensures you always have the latest version.


Alternatives

  • nwjs-vue - Uses Vue-CLI 2
  • vue-desktop-basic - Does not use a build system at all, all .vue files run directly in the browser context

Maintainence of this repo

This is not for those using this repo, but for those maintaining it.

  1. When updating the version of NW.js devDependency, also update these:
    • package.json devDeps, build nwVersion
    • tests/unit/setup.js
    • tests/unit/components/__snapshots__/HelloWorld.test.js.snap
    • .browserslistrc
  2. Update the version numbers at the top of the README
  3. Bump the version number, and all the npm scripts that reference the version number
  4. Run npm run regression after updating dependencies or other major changes to verify builds still work correctly
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].