Code Monkey home page Code Monkey logo

nw-vue-cli-example's People

Contributors

dependabot[bot] avatar thejaredwilcurt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nw-vue-cli-example's Issues

Exclude or Ignore some directories or files from the build

Hello,

Is there a way to ignore some files or directories from the build ? i have a case where i need this kind of feature, that'll be quite handy, otherwiser, we have to do it manually everytime we build, but we need the files back, for development.

Thanks!

Blank screen of white in production

Hello guys, I have used this boilerplate to make an experiment app on Windows 10 x64. I ran npm run build:win, and the output distribution works on my machine (developer's machine). Then I sent the .zip version to other laptops, unzip and run the .exe, it surprisingly shows a blank screen of white. I could not figure out how to debug that situation, I therefore remade the app step by step and built after every step.

The result is it always works on my machine, and but not on others' if I import anything into the Vue components' script.

import { C_DATE, formatDate } from '@/utils/date';
import { logger } from '../utils/log';

export default {
  data() {
    return {
      dateTitle: formatDate(window.dayjs(), C_DATE.FM_YYYYMMDD_FULL),
      msg: window._getTerm('system_msg.fetch_future'),
    };
  },
  created() {
    logger.info('Đang khởi tạo trang chủ');
  }
};
/**
 * => Output normally on developer's machine
 * => Output a blank screen of white on machines with the same environment, without Node installed
 */

Any thoughts?

How to Exec Commands System

Hello!! I am trying to make system calls and execute commands from the nwjs application using its boilerplate but I can't. Without making use of Vue-cli3 / Webpack / Babel it works, but don't compile the code from vue-cli3.

As an example, so far, when I want to execute a system command to know the user who has started a graphic session, did something similar to the following:

// To execute commands asynchronously:
const util = require ("util");
const miexec = util.promisify (require ("child_process"). exec);
// Then in a vue mixin or from a vuex action I ran the following from a function:
command = "whoami"
try {
        const res = await miexec (command)
        if (res.stderr) {
          console.error (`Error with $ {command}: $ {res.stderr}`);
          return null
        }
        message = `Ok !! => $ {res.stdout.toString ()} `
        console.log (message);
        return res.stdout.toString ()
      } catch (err) {
        message = "Error:" + result.stdout.toString ()
        console.log (message)
        return "error"
      }

The problem I find is that he does not like the initial require, or does not know what I am referring to:

const util = require ("util"); ????

Would you know how to solve the previous problem?
Thank you very much in advance. Regards

Setting up E2E testing

when I run e2e test task and i get this message
捕获2
it look like my chrome version is not in 71 -- 75. that should use nw.exe . but it use my desktop chrome software. my desktop chrome version is 77.0.3865.120.

then i uninstall my desktop chrome and run e2e test task. and i get this message
捕获
that say cannot find chrome binary.

so why has this error?

Vue 3 plans - Moved to new Vite repo

Here's the current plan, though it may change as work starts in this direction.

  1. There is a vue-3 branch that will be used to work on a new Vue 3 boilerplate for NW.js
    • It will use Vue-CLI (to match the repo name), might make an nw-vite-example repo?
  2. Once the vue-3 branch meets my standards
    • It will be merged into master
    • vue-3 branch will be deleted
    • Repo will be bumped to version 2.x
  3. There is a vue-2 branch. This will continue to be maintained with the latest version of Vue 2.x and it's associated dependencies.
    • New releases will still occur, but with version 1.x

Access system resources and dev workflow

It seems to be a “standard” solution while developing to run vue’s serve service and then run nw with main set to localhost:port. While this is convenient it doesn’t work when your nw app is accessing system resources (example, file system access). One way around this is to create more complicated build setup (not too bad) and implement watch to build on file change and then have nw run on built files.

Add typescript and it gets more complicated quickly.

This template is a great start to nwjs/vue and was looking for advice on workflow/setup when accessing browser restricted resources - would be neat addition to this project,

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.