GithubHelp home page GithubHelp logo

bluelovers / nuxtron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saltyshiomix/nuxtron

0.0 2.0 0.0 1000 KB

⚡ Electron + Nuxt.js ⚡

Home Page: https://npm.im/nuxtron

License: MIT License

JavaScript 100.00%

nuxtron's Introduction

Build an Electron + Nuxt.js app for speed ⚡

(The screenshot above is a top page of examples/with-javascript.)

Support

nuxtron nuxt
v0.x v2.x

My Belief for Nuxtron

  1. Show a way of developing desktop apps only web knowledge
  2. Easy to use
  3. Be transparent and open to OSS developers

Otherwise Specified

  • If you need more performance with Electron, you should see these boilerplates
  • If you want to use Nuxtron as production, please take responsibility for your actions
  • But, if you have any troubles, questions or ideas, I'll support you, I promise

Usage

Install

$ npm install --global nuxtron

Create Application

To create my-app, just run the command below:

$ nuxtron init my-app

Create Application with Template

You can use examples/* apps as a template.

To create the examples/with-typescript app, run the command below:

$ nuxtron init my-app --example with-typescript

Development Mode

Run npm run dev, and nuxtron automatically launches an electron app.

{
  "scripts": {
    "dev": "nuxtron"
  }
}

Production Build

Run npm run build, and nuxtron outputs packaged bundles under the dist folder.

{
  "scripts": {
    "build": "nuxtron build"
  }
}

Build Options

To build Windows 32 bit version, run npm run build:win32 like below:

{
  "scripts": {
    "build": "nuxtron build",
    "build:all": "nuxtron build --all",
    "build:win32": "nuxtron build --win --ia32",
    "build:win64": "nuxtron build --win --x64",
    "build:mac": "nuxtron build --mac --x64",
    "build:linux": "nuxtron build --linux"
  }
}

CAUTION: To build macOS binary, your host machine must be macOS!

Build Configuration

Edit electron-builder.yml properties for custom build configuration.

appId: com.example.nuxtron
productName: My Nuxtron App
copyright: Copyright © 2019 Shiono Yoshihide
directories:
  output: dist
  buildResources: resources
files:
  - from: .
    filter:
      - package.json
      - app
publish: null

For more information, please check out electron-builder official configuration documents.

Examples

See examples folder for more information.

Or you can start the example app by nuxtron init <app-name> --example <example-dirname>.

To list all examples, just type the command below:

$ nuxtron list
$ nuxtron init my-app --example custom-build-options
$ nuxtron init my-app --example with-javascript
$ nuxtron init my-app --example with-typescript

Develop examples/*

$ git clone https://github.com/saltyshiomix/nuxtron.git
$ cd nuxtron
$ yarn
$ yarn dev <EXAMPLE-FOLDER-NAME>

Related

  • Nextron - ⚡ Electron + NEXT.js ⚡

nuxtron's People

Contributors

saltyshiomix avatar gimanh avatar agrozyme avatar

Watchers

James Cloos avatar  avatar

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.