Coder Social home page Coder Social logo

tonetechnician / nw-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nwutils/nw-builder

0.0 1.0 0.0 1.9 MB

Build NW.js applications for Mac, Windows and Linux

Home Page: https://www.npmjs.com/package/nw-builder

License: MIT License

JavaScript 98.99% HTML 1.01%

nw-builder's Introduction

nw-builder

npm Join the chat at https://gitter.im/nwjs/nw-builder

Build NW.js applications for Mac, Windows and Linux.

Installation

Install via npm or your package manager of choice:

npm install nw-builder

Usage

At a glance module usage:

import { nwbuild } from "nw-builder";

nwbuild({
  srcDir: "./nwapp", // directory to store nw app files
  version: "0.69.1", // latest or stable or 0.x.y
  flavour: "sdk", //sdk (dev) or normal (prod)
  platform: "linux", //linux, osx, win
  arch: "x64", //ia32 or x64
  outDir: "./build",
  // flags with their default values
  cacheDir: "./cache", //directory to store nw binaries and shared libraries
  downloadUrl: "https://dl.nwjs.io",
  manifestUrl: "https://nwjs.io/versions",
  run: false, //run app to quickly demo it
  noCache: false, //delete and redownload nw version
  zip: false, // optionally zip files
});

At a glance CLI usage:

nwbuild ./nwapp --version=0.70.1 --flavour=sdk --platform=linux --arch=x64 --outDir=./build

Contributing

  1. Pick and install a Node version manager
    • Linux/OSX - nvm
    • Win 7+/Linux/OSX - volta
  2. Use your version manager to install Node 14.19 or above
  3. Run npm install
  4. npm run demo to test your changes at first glance
  5. npm t to run unit tests
  6. Don't forget to run npm run format && npm run lint before commiting your changes
  7. Whenever possible, open an issue before submitting a pull request
  8. Ensure there are tests that cover your changes

License

MIT

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.