Giter Site home page Giter Site logo

fuse-box-electron-seed's Introduction

LIMITED SUPPORT. USE AT YOUR OWN RISK

A bundler that does it right

Downloads Circle ci npm version monthly downloads from npm code style: prettier
Backers on Open Collective Sponsors on Open Collective Follow FuseBox on Twitter

FuseBox on slack

FUSEBOX v4 is out!

Install:

npm install fuse-box --save-dev
import { fusebox } from 'fuse-box';
fusebox({
  target: 'browser',
  entry: 'src/index.tsx',
  webIndex: {
    template: 'src/index.html',
  },
  devServer: true,
}).runDev();

fuse-box-electron-seed's People

Contributors

carloslfu avatar challenger532 avatar devmondo avatar gltgrzegorz avatar jas99 avatar kfiku avatar nchanged avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

fuse-box-electron-seed's Issues

Errors with Typescript call stacks

When there's an error from the main process, errors are reported referencing line numbers of JS files in the dist folder, e.g. the compiled output:

(node:59233) UnhandledPromiseRejectionWarning: TypeError: settings_1.Settings.get(...) is not a function or its return value is not iterable
    at SomeCode (/<project path>/dist/main/main.js:231:44)
...etc
    at process._tickCallback (internal/process/next_tick.js:68:7)

It'd be awesome if these could be reported back to the developer with source maps so there's a Typescript file and line number there.

Add package process

Hi!

First, thanks for this cool starter, electron + fusebox is just blazing fast and it produce a very good dx 😍

For a complete electron starter, we need to add the package process! (essential for an electron app)

I'm trying to do this process on my current project (private repo, sorry) but it's not really easy to deal with main.ts/app.tsx/vendors and all assets (icons, images…) to have the perfect bundle!

So if someone have already do this job before, it can be very cool to consolidate this really good starter πŸ˜„ (otherwise, I will probably considate this myself, when my stack will working)

Note: I think https://github.com/electron-userland/electron-builder can do the job, but it's just a suggestion

Wrong command to launch the app?

I'm not sure if other platforms behave differently but on Windows the app won't launch after running npm start in the console. But I already found why:

Line 31 in fuse.js says the following:

spawn(`${__dirname}/node_modules/electron/cli.js`, [__dirname])

It works if I change it to:

spawn('node', [`${ __dirname }/node_modules/electron/cli.js`,  __dirname ])

Basically running node .../cli.js dist instead of just .../cli.js dist.

Minimum or maximum supported Node version?

I'm curious if there is a minimum or maximum supported Node version. I found I had to add async...await for "'build:main'" to get the Fuse dev server to start after the fuse.run() for spawning Electron. I'm happy to create a PR but only if there's an understanding that the supported Node version is a minimum of version 8. At this point, β‰₯ version 8 seems safe but I don't want to assume.

electron.ts

It would be nice to use typescript in electron.js(main process) πŸ‘

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.